Hi there,
I have a user control embedded into an aspx page. In this control I'm trying to get a WebProxy object by using WebProxy.GetDefaultProxy()... However, I am getting an "Request for permission of the type System.Net.WebPermission...failed". Anyone know why? I have created an instance of WebPermission using new WebPermission(PermissionState.Unrestricted). I have also tried creating an instance of WebPermission and then adding the address of the proxy server to the list by using wp.AddPermission(NetworkAccess.Connect, " same error.
Anyone know how I can fix this problem?
Thanks
I have a user control embedded into an aspx page. In this control I'm trying to get a WebProxy object by using WebProxy.GetDefaultProxy()... However, I am getting an "Request for permission of the type System.Net.WebPermission...failed". Anyone know why? I have created an instance of WebPermission using new WebPermission(PermissionState.Unrestricted). I have also tried creating an instance of WebPermission and then adding the address of the proxy server to the list by using wp.AddPermission(NetworkAccess.Connect, " same error.
Anyone know how I can fix this problem?
Thanks