Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / September 2006

Tip: Looking for answers? Try searching our database.

Code Access Security error for a Site from Network share

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Navnit - 22 Sep 2006 12:47 GMT
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 ...
Phill W. - 26 Sep 2006 13:43 GMT
> 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.
Navnit - 29 Sep 2006 21:01 GMT
Thanks Phill

I'll check it out.

Thanks again...

> > I want to create a website in IIS which has its ApplicationPath or Virtual
> > Directory from a network share.
[quoted text clipped - 12 lines]
> Regards,
>     Phill  W.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.