Saturday, May 08, 2010

 

FullTrust network share for .Net 3.5 in VS2010

Running a .NET 3.5 WCF based Silverlight application in Visual Studio 2010 stored in a network share (despite VS2010 supposably being nice to local shares) still gives me the following error: request for the permission of type 'system.web.aspnethostingpermission' failed

Running the same application locally produces no error at all.

This is because of what ShawnFa explains on his blog: http://blogs.msdn.com/shawnfa/archive/2008/05/12/fulltrust-on-the-localintranet.aspx#9968863

The Fix I found for this is to do the same CasPol that was necessary in VS2008. I ran both of these, not sure which one took because it did not work until VS 2010 was restarted. "S:" is a drive letter mapped to a network share.
CasPol.exe -m -ag 1.2 -url file://S:\FilePath\* FullTrust

From http://support.microsoft.com/?id=320268
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>CasPol.exe -m -ag 1 -url file://S:\FilePath\* FullTrust -exclusive on

I also read about an option for installing the Framework SDK option. I didn't bother pursuing this since the CasPol did the trick.
So First the .NET Framework SDK needs to be installed so that I can grant fullTrust rights to the remote share: http://support.microsoft.com/?id=320268

the .NET Framework SDK can be found here: http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en

http://www.15seconds.com/issue/040121.htm

Labels: , ,


Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]