Re: Code Access Security error for a Site from Network share



Navnit wrote:

I want to create a website in IIS which has its ApplicationPath or Virtual Directory from a network share.
.. . .
When I try to do the above I get a "Code Access Security" error, which is justified since I am trying to execute code from a network share.

You need set up the Code Access Security Policy (ob the web server machine) to allow code to run from the network share where the assemblies reside.

Either use the Framework Configuration "thing" in [Control Panel/] Adminstrative Tools or read up on caspol.exe, which does all the same things, just from the command line.

Regards,
Phill W.
.



Relevant Pages

  • Re: Any known probs running Access 2000 with win XP?
    ... Tips for Access users - http://allenbrowne.com/tips.html ... Network or drive error' - I ... > bear not being able to execute code (mine or the automatic ...
    (microsoft.public.access.formscoding)
  • Re: Flaw in RPC Endpoint Mapper - NT 4.0 FIX
    ... More to close the doors to the network that have been left ... user education problem. ... execute code of their choosing, ...
    (microsoft.public.security)
  • Any known probs running Access 2000 with win XP?
    ... When I start adding buttons to forms I get all sorts of ... Network or drive error' - I ... bear not being able to execute code (mine or the automatic ...
    (microsoft.public.access.formscoding)
  • Re: project security issue
    ... This is because of .NET's Code Access Security which is configured to ... share and assign appropiate permissions. ... > The project location is not fully trusted by the .NET runtime. ... This is> usually because it is either a network share or mapped to a network> share not on the local machine. ...
    (microsoft.public.dotnet.framework)
  • Re: Grant Application Write Access to Network Share - No User Permissions
    ... IsolatedStorage or Code Access Security will not help here. ... > share without giving the user permissions at the same time. ... > I have an application that writes to a network share, ... > I've been reading up on Isolated Storage and Code Access Security and I ...
    (microsoft.public.dotnet.security)

Loading