Last post Dec 24, 2009 01:26 AM by firojshaikh
May 09, 2008 03:53 PM|goncalomarcos|LINK
Password - Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=220.127.116.11, Culture=neutral,
As String = sapWS.GetVendorName("0000100002")
The funny thing is that when I access the WS threw the asmx page, everything works just fine.
I don't know if what I said was confusing. I hope not because I can really use the help
Thanks in advance
May 13, 2008 07:07 AM|XiaoYong Dai – MSFT|LINK
By default, the "security" permission set that is applied to the internet zone does not allow calls to unmanaged code, So you need to adjust trust level of your app (and any .dlls you made with it) using .NET Framework Configuration Tool.
Hope it helps
May 13, 2008 09:55 AM|goncalomarcos|LINK
It didn't work. I tried to set full trust at all code groups and it also didn't work.
Something I forgot to mention was that I've already tried to run this while the caspol security was off (with the command caspol -s off) and it also didn't work.
Any more ideas? Is it possible that this is not a security problem? I find this very odd due to the nature of the exceptions.
May 14, 2008 03:50 PM|goncalomarcos|LINK
I just added these lines to my web.config file and it worked.
May 20, 2008 05:07 PM|tieppn|LINK
Everything done, but for the security is not sure.
Dec 24, 2009 01:26 AM|firojshaikh|LINK
In WPF browser application follow given steps to give full trust permission
1. Select project
2. Right click and select properties.
3. Select security tab from left panel.
4. Now select/ check the radio button that says " This is full trust application"
5. Save and run application.
This will solve ur problem of permission on System.Net.WebPermission.