C
CSharpner
I had many ASP.NET web applications that I created before I had to
rebuild my machine. After a fresh install of XP Pro, VS.NET 2003,
etc, I now get the following when running them. Note that I've
already added the following to the web.config file just before the
<appsettings> section:
<startup>
<supportedRuntime version="v1.1.4322"/>
<requiredRuntime version="v1.1.4322"/>
</startup>
Here's the error (I've replaced the references to publickeytoken with
"*"):
Server Error in '/TestApp' 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=* 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=* 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=* 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
System.Configuration.AppSettingsReader..ctor() +8
assessments.LoginForm.InitializeComponent()
assessments.LoginForm.OnInit(EventArgs e)
System.Web.UI.Control.InitRecursive(Control namingContainer) +235
System.Web.UI.Page.ProcessRequestMain() +171
rebuild my machine. After a fresh install of XP Pro, VS.NET 2003,
etc, I now get the following when running them. Note that I've
already added the following to the web.config file just before the
<appsettings> section:
<startup>
<supportedRuntime version="v1.1.4322"/>
<requiredRuntime version="v1.1.4322"/>
</startup>
Here's the error (I've replaced the references to publickeytoken with
"*"):
Server Error in '/TestApp' 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=* 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=* 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=* 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
System.Configuration.AppSettingsReader..ctor() +8
assessments.LoginForm.InitializeComponent()
assessments.LoginForm.OnInit(EventArgs e)
System.Web.UI.Control.InitRecursive(Control namingContainer) +235
System.Web.UI.Page.ProcessRequestMain() +171