all groups > dotnet clr > september 2006 >
You're in the

dotnet clr

group:

Code Access Security error for a Site from Network share


Code Access Security error for a Site from Network share Navnit
9/22/2006 4:47:02 AM
dotnet clr:
Hello,

I want to create a website in IIS which has its ApplicationPath or Virtual
Directory from a network share.

Its a ASP.Net 2.0 website. I've the site percompiled (One Assembly Per Page).

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. which is
not alowed.

Now I have a requirement where I have to go the above way. Is there a way to
do it ?

Re: Code Access Security error for a Site from Network share Phill W.
9/26/2006 1:43:20 PM
[quoted text, click to view]

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,
Re: Code Access Security error for a Site from Network share Navnit
9/29/2006 1:01:01 PM
Thanks Phill

I'll check it out.

Thanks again...

[quoted text, click to view]
AddThis Social Bookmark Button