Web Part Development - Permissions Error
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Web Part Development - Permissions Error

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
datadavethediode
Guest





Posted: Tue Oct 25, 2005 4:51 pm    Post subject: Web Part Development - Permissions Error Reply with quote

Why do I get this error.

Request for the permission of type System.Net.WebPermission, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
Back to top
Nikander & Margriet Brugg
Guest





Posted: Thu Oct 27, 2005 8:51 am    Post subject: Re: Web Part Development - Permissions Error Reply with quote

Hello datadavethediode,


Sounds like your security configuration file is missing this permission.
The nice way to do is create your own security policy file and add the permission
to it (look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/smpscCodeAccessSecurityDevs_SV01071445.asp
and the sdk provides more info oabout how to do this
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/SPSDKWelcome_SV01017094.asp).
The easy (and insecure) way is to change the web.config file trust level
to , for example, Full, and notice that the problem is gone.

Kind regards,
Nikander & Margriet Bruggeman

d> Why do I get this error.
d>
d> Request for the permission of type System.Net.WebPermission, System,
d> Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
d> failed.
d>
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB