In my SSRS report 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/")
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=220.127.116.11, 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 and didn't try. I know that I have to modify
C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\rssrvpolicy.config
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\RSPreviewPolicy.config
Microsoft .NET Framework 2.0 Configuration tool
to generate sample sections that have to be paste there as it is written here
But I still can't make it work.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.