Hi,
In my SSRS report in assemblies property I added a reference to System.Web and in code property I created an extremely simple function as shown below.
Public Function getFirstLink(searchedStr As String) As String
Dim webClient As New System.Net.WebClient
Dim loadedPage As String = webClient.DownloadString("https://www.youtube.com/")
Return "https://www.google.pl/"
End Function
Obviously id doesn't work because of the security issues. I get an error: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Can anyone tell me what to get rid of it? I'm a noob and honestly I don't give a sh... about security. I just want this stupid code work then I will worry about the rest.
Not that I'm that lazy. I know that I have to modify
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config
and use
Microsoft .NET Framework 1.1 Configuration
to generate sample sections that have to be paste there as it is written here
http://support.microsoft.com/kb/842419
But as a noob still I can't make it work. Actually I don't even know what means "appriopriate permissions" in this case.
And there are some other issues:
1. I get the same error whether I add the reference to the report or not. How without the reference does this stupid thing know what is System.Net.WebClient? Maybe my problem is somewhere else?
2. If I apply changes to the rssrvpolicy.config will it be applied to the BIDS as well? I read that there are separate configs for BIDS and for server.
Thanks,
Rafael
In my SSRS report in assemblies property I added a reference to System.Web and in code property I created an extremely simple function as shown below.
Public Function getFirstLink(searchedStr As String) As String
Dim webClient As New System.Net.WebClient
Dim loadedPage As String = webClient.DownloadString("https://www.youtube.com/")
Return "https://www.google.pl/"
End Function
Obviously id doesn't work because of the security issues. I get an error: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Can anyone tell me what to get rid of it? I'm a noob and honestly I don't give a sh... about security. I just want this stupid code work then I will worry about the rest.
Not that I'm that lazy. I know that I have to modify
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config
and use
Microsoft .NET Framework 1.1 Configuration
to generate sample sections that have to be paste there as it is written here
http://support.microsoft.com/kb/842419
But as a noob still I can't make it work. Actually I don't even know what means "appriopriate permissions" in this case.
And there are some other issues:
1. I get the same error whether I add the reference to the report or not. How without the reference does this stupid thing know what is System.Net.WebClient? Maybe my problem is somewhere else?
2. If I apply changes to the rssrvpolicy.config will it be applied to the BIDS as well? I read that there are separate configs for BIDS and for server.
Thanks,
Rafael
Rafal