469,289 Members | 2,156 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,289 developers. It's quick & easy.

Security Exception

Hello.

If I use a web service that I created through a custom
control on a windows form it works fine. However, if iput this control on a
webform usinf the <object...classid..> label, i get an security error when i
call the web service
saying:

"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


Nov 23 '05 #1
1 3229
Hi,

I think you're dealing with "Trust Level" security.

The level under which the page is run does not allow for Web Access.

Hope this helps,

Marvin Smit.

On Mon, 29 Aug 2005 23:04:01 +0200, "Corchano" <co******@hotmail.com>
wrote:
Hello.

If I use a web service that I created through a custom
control on a windows form it works fine. However, if iput this control on a
webform usinf the <object...classid..> label, i get an security error when i
call the web service
saying:

"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


Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James B | last post: by
reply views Thread by James B | last post: by
19 posts views Thread by Diego F. | last post: by
reply views Thread by Carl Gilbert | last post: by
8 posts views Thread by =?Utf-8?B?TWFuanJlZSBHYXJn?= | last post: by
5 posts views Thread by Henry Stock | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.