First problem I experienced was that the .aspx file wouldn't run within the VaultService virtual directory. This is the first ASP.NET application we've run, that I know of. So I went into the Web Service Extensions area and added a new allowed extension which I named ASP.NET, and specified c:\windows\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll as an allowed file to run for this extension.
Once the .aspx file loaded after I did that, I got an exception on that page saying the ASP.NET user did not have access to the c:\windows\system32\inetsrv directory, so I gave full access to that folder to the {machinename}\ASPNET user.
Restarted IIS and refreshed the page (http://myserver/VaultService/VaultWeb/login.aspx), and now I am seeing an error I don't understand at all:
Code: Select all
Server Error in '/VaultService' Application.
Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. (c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Configuration.ConfigurationException: Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. (c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config)
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:
[ConfigurationException: Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config Request for the permission of type System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. (c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config)]
System.Configuration.ConfigurationSettings.GetConfig(String sectionName) +210
System.Configuration.ConfigurationSettings.get_AppSettings() +16
VaultServiceAPILib.VaultConfigReader.GetConfigSetting(String strSection, Boolean bEncrypted) +27
VaultService.Global.Application_Start(Object sender, EventArgs e) +1626
Version Information: Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288