Security Problem

A

Aurelio

Hello.

I use a web service that I created through a custom control on a windows
form and it works fine.
However, if usethis control through a webform , i get an security error
when i call the web service
aying:

"The application attempted to perform an operation not
allowed by the security policy. The operation required the
SecurityException. To grant this application the required
permission please contact your system administrator, or
use the Microsoft .NET security policy administration tool.

Request for the permission of type
System,Net.WebPermission..."

What can i do?
I don't know how to explicitly trust the assembly.

Thanks
 
P

Pat

I guess it could be a "The request failed with HTTP status 401:
Unauthorized" Error
Maybe try giving it a System.Net.CredentialCache.DefaultCredentials.
Patrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Security Exception 0
Web Service 1
Security issue on Windows7 1
Security exception 0
Web Service Security Problem 0
Debug Session on localhost 5
security execption 3
Security Exception 1

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top