Answered by:
vb.net 2010 web link in reportviewer control not working

Question
-
User-127506019 posted
In an existing vb.net 2010 web form application, a reportviewer control is being used to display 6 ssrs 2008 reports. Between these reports, there are 'links' where a user can click on for each detailed row and a different report is displayed. Within each of these ssrs reports, I do not see the 'actions' being used to tell the report where to link to.
I do not believe the reports that are 'jumped to' (linked to) are subreports.
Most of these links work except for one. In one report called 'School letter' on of the links work. There is another link in the 'School Letter' that does not work. There is an error message saying, 'The permissions for a user are not authorized'. The user is the value obtained from the web.config file for ReportViewerUser.
Thus can you tell me what to look for so that I can try to determine what is causing the problem?
Wednesday, March 23, 2016 10:36 PM
Answers
-
User-219423983 posted
Hi peggy_girl,
Most of these links work except for one. In one report called 'School letter' on of the links work. There is another link in the 'School Letter' that does not work. There is an error message saying, 'The permissions for a user are not authorized'. The user is the value obtained from the web.config file for ReportViewerUser.
Could you first check the item “School Letter” and compare this with other normal item to find out the differences?
According to the error message, I think you’d better have a try to directly access the address of link “School Letter”. If the error still exists, you could debug the page behind code or the Web.config to see whether it’s allowed to access for current user. Or, you could share an image to clarify how you call the link and the detailed error message.
Best Regards,
Weibo Zhang
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 24, 2016 6:06 AM -
User-219423983 posted
Hi peggy_girl,
1. I tried to get an image to paste to this question, but I am unable to. I tried the web site edit image and it wanted me to point to a url. However I do not have a url since this is an application only within the school system.
For this, you could have a look at blow thread to know how to add images in your post in the ASP.NET forums.
http://forums.asp.net/t/1660762.aspx?how+to+insert+image+in+asp+net+forum+post+
When the user clicks on the link under student number, that is when the error message occurs. What confuses me is one link works and the other link does not work.
Thus is there something I can look at in the application to debug to see why one link works and the other link does not work? If so, would you let me know what I should be looking for while the application is in debug mode?
All the links are directing to special URL, so you could first check whether you could access the URL directly without ReportViewer.
If so, maybe it’s related to the RDLC file, you should grant the right permissions for the user to access this file and the folder of it.
If not, you could first check whether there are some codes to stop accessing.
About how to check the permission for a file or a path in asp.net, you could have a look at below link to learn the authorization in ASP.NET.
http://weblogs.asp.net/gurusarkar/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config --Web.config
http://www.iis.net/learn/manage/configuring-security/understanding-iis-url-authorization --IIS
Best Regards,
Weibo Zhang
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 29, 2016 8:22 AM
All replies
-
User-219423983 posted
Hi peggy_girl,
Most of these links work except for one. In one report called 'School letter' on of the links work. There is another link in the 'School Letter' that does not work. There is an error message saying, 'The permissions for a user are not authorized'. The user is the value obtained from the web.config file for ReportViewerUser.
Could you first check the item “School Letter” and compare this with other normal item to find out the differences?
According to the error message, I think you’d better have a try to directly access the address of link “School Letter”. If the error still exists, you could debug the page behind code or the Web.config to see whether it’s allowed to access for current user. Or, you could share an image to clarify how you call the link and the detailed error message.
Best Regards,
Weibo Zhang
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, March 24, 2016 6:06 AM -
User-127506019 posted
In response to your answer, I want to mention the following:
1. I tried to get an image to paste to this question, but I am unable to. I tried the web site edit image and it wanted me to point to a url. However I do not have a url since this is an application only within the school system.
2. I would paste a screen shot of the report, but all the information is confidential. The report looks like the following
student name student number days absent
joe smith 1234 10
When the user clicks on the link for days absent, the link works. When the user clicks on the link under student number, that is when the error message occurs. What confuses me is one link works and the other link does not work.
Thus is there something I can look at in the application to debug to see why one link works and the other link does not work? If so, would you let me know what I should be looking for while the application is in debug mode?
Monday, March 28, 2016 3:54 PM -
User-219423983 posted
Hi peggy_girl,
1. I tried to get an image to paste to this question, but I am unable to. I tried the web site edit image and it wanted me to point to a url. However I do not have a url since this is an application only within the school system.
For this, you could have a look at blow thread to know how to add images in your post in the ASP.NET forums.
http://forums.asp.net/t/1660762.aspx?how+to+insert+image+in+asp+net+forum+post+
When the user clicks on the link under student number, that is when the error message occurs. What confuses me is one link works and the other link does not work.
Thus is there something I can look at in the application to debug to see why one link works and the other link does not work? If so, would you let me know what I should be looking for while the application is in debug mode?
All the links are directing to special URL, so you could first check whether you could access the URL directly without ReportViewer.
If so, maybe it’s related to the RDLC file, you should grant the right permissions for the user to access this file and the folder of it.
If not, you could first check whether there are some codes to stop accessing.
About how to check the permission for a file or a path in asp.net, you could have a look at below link to learn the authorization in ASP.NET.
http://weblogs.asp.net/gurusarkar/setting-authorization-rules-for-a-particular-page-or-folder-in-web-config --Web.config
http://www.iis.net/learn/manage/configuring-security/understanding-iis-url-authorization --IIS
Best Regards,
Weibo Zhang
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, March 29, 2016 8:22 AM