Runtime Security Policy Question


S

SD

Hi,

I have an assembly (.exe) started at logon of each computer of my company
and for each user. (Through PDC scripts)

This assembly use web services in order to request any informations.

When my exe is executed, i have this exception :
_________________________________________________________________
Échec de la demande pour une autorisation de type System.Net.WebPermission,
Syst
em, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
mscorlib
at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet
granted
Set, PermissionSet deniedSet, CodeAccessPermission demand, PermissionToken
permT
oken)

at System.Security.CodeAccessSecurityEngine.Check(PermissionToken
permToken,
CodeAccessPermission demand, StackCrawlMark& stackMark, Int32 checkFrames,
Int32
unrestrictedOverride)

at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission
cap, S
tackCrawlMark& stackMark)

at System.Security.CodeAccessPermission.Demand()

at System.Net.HttpRequestCreator.Create(Uri Uri)

at System.Net.WebRequest.Create(Uri requestUri, Boolean useUriBase)

at System.Net.WebRequest.Create(Uri requestUri)

at System.Web.Services.Protocols.WebClientProtocol.GetWebRequest(Uri uri)

at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest(Uri
uri)

at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest(Uri
uri)

at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)

at ManageWebFolders.Webs.Webs.GetAllSubWebCollection()

at
ACFCIHexagone.ManageWebFolders.ManageWebFolders.GetWebCollection(String
sUrl, Hashtable ht)

at ACFCIHexagone.ManageWebFolders.ManageWebFolders.Main(String[] args)
_________________________________________________________________
I understand it's a code access security pb but i don't know how to
configure my assembly to be authorized to run under my domain.

Need help please

Thanks

SD
 
Ad

Advertisements


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

Top