an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Installation > Security Exception after Install Win 7 IIS 7...
Last Post 1/21/2010 4:53:33 PM By mamacig. 4 replies.
1/21/2010 4:03:13 PM
mamacig
Posts: 3
Joined: 1/21/2010
Security Exception after Install Win 7 IIS 7 SQL 2008 Express
WIndows 7  -  SQL Server 2008 Express -  IIS 7
INSTDSC.EXE ran successfully
NETWORK SERVICE has permissions to all folders needed (no built-in NT AUTHORITY\NETWORK SERVICE)
Website (dscweb) / install path is under inetpub\wwwroot\.....
App pool is classic .net
(FYI, can successfully launch a different localhost webstore app using SQL and ASP)
Receiving the following when I attempt to launch http://localhost/dscweb/admin/default.aspx:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
Stack Trace:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Reflection.Assembly._GetExportedTypes() +0
   System.Web.Compilation.BuildResultMainCodeAssembly.FindAppInitializeMethod() +41
   System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +11196986
   System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +185
   System.Web.Compilation.BuildManager.CompileCodeDirectories() +654
   System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +658
 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
 
1/21/2010 4:18:46 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Security Exception after Install Win 7 IIS 7 SQL 2008 Express
Have you done step 4 and 5 described in the Installation Guide?
DotShoppingCart Staff
1/21/2010 4:25:41 PM
mamacig
Posts: 3
Joined: 1/21/2010
Re: Security Exception after Install Win 7 IIS 7 SQL 2008 Express
4) Configure IIS and point the site or virtual directory to Web subdirectory

5) Grant the Modify permission of the file Web\DSC.config and sub folders web\App_Data, web\App_Themes, web\Files and web\Images to "NT AUTHORITY\NETWORK SERVICE
 
Yes, but only for NETWORK SERVICE - there is no NT AUTHORITY\NETWORK SERVICE user
1/21/2010 4:37:36 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Security Exception after Install Win 7 IIS 7 SQL 2008 Express
Do you have Visual Studio? Try running it inside VS. We haven't tested it running on Window7 IIS.
DotShoppingCart Staff
1/21/2010 4:53:33 PM
mamacig
Posts: 3
Joined: 1/21/2010
Re: Security Exception after Install Win 7 IIS 7 SQL 2008 Express
No, I don't have Visual Studio.  I will play around with this and let you know any progress.