HighTechTalks DotNet Forums  

Code Access Security error for a Site from Network share

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Code Access Security error for a Site from Network share in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Navnit
 
Posts: n/a

Default Code Access Security error for a Site from Network share - 09-22-2006 , 07:47 AM






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 ?

Thanks in advance ...

Reply With Quote
  #2  
Old   
Phill W.
 
Posts: n/a

Default Re: Code Access Security error for a Site from Network share - 09-26-2006 , 08:43 AM






Navnit wrote:

Quote:
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.


Reply With Quote
  #3  
Old   
Navnit
 
Posts: n/a

Default Re: Code Access Security error for a Site from Network share - 09-29-2006 , 04:01 PM



Thanks Phill

I'll check it out.

Thanks again...

"Phill W." wrote:

Quote:
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.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.