Error loading XML file machine.config

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Guest

Error loading XML file machine.config

Post by Guest » Sun Feb 15, 2004 10:54 am

Just after installing the freely downloadable Vault 2.0 server, when trying to connect to the service, I receive the error message pasted below.

The machine runs Windows XP SP1 and the database is on the MSDE server installed by Visual Studio .net 2003, and I can access it with VS Server Explorer.

Vault has been configured with the default security model (machine).

Any suggestions on how to get past this problem?


Here is the error message:

Unable to connect to http://localhost/VaultService. No server was found at the specified URL. Web Exception: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>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)</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/VaultService' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>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)</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>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.

<br><br>

<b> Exception Details: </b>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)<br><br>

<b>Source Error:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code>

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.</code>

</td>
</tr>
</table>

<br>

<b>Stack Trace:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

[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) +31
VaultServiceAPILib.VaultServiceAPISystem.GetApplicationSettingString(HttpApplicationState theApp, String strResource, Boolean bEncrypted) +160
VaultServiceAPILib.VaultServiceAPISystem.GetWorkingFolder() +309
VaultService.Global.Application_Start(Object sender, EventArgs e) +2652
</pre></code>

</td>
</tr>
</table>

<br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

</font>

</body>
</html>
<!--
[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)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at System.Configuration.ConfigurationSettings.get_AppSettings()
at VaultServiceAPILib.VaultConfigReader.GetConfigSetting(String strSection, Boolean bEncrypted)
at VaultServiceAPILib.VaultServiceAPISystem.GetApplicationSettingString(HttpApplicationState theApp, String strResource, Boolean bEncrypted)
at VaultServiceAPILib.VaultServiceAPISystem.GetWorkingFolder()
at VaultService.Global.Application_Start(Object sender, EventArgs e)
-->
--.

Guest

Post by Guest » Sun Feb 15, 2004 2:47 pm

Fixed by running aspnet_regiis -i from .Net 1.1.
Apparently .Net 1.0 was used instead of 1.1 in some place.

Guest

Re: Error loading XML file machine.config

Post by Guest » Mon Oct 03, 2005 7:05 am

Anonymous wrote:Just after installing the freely downloadable Vault 2.0 server, when trying to connect to the service, I receive the error message pasted below.

The machine runs Windows XP SP1 and the database is on the MSDE server installed by Visual Studio .net 2003, and I can access it with VS Server Explorer.

Vault has been configured with the default security model (machine).

Any suggestions on how to get past this problem?


Here is the error message:

Unable to connect to http://localhost/VaultService. No server was found at the specified URL. Web Exception: Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>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)</title>
<style>
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
</style>
</head>

<body bgcolor="white">

<span><H1>Server Error in '/VaultService' Application.<hr width=100% size=1 color=silver></H1>

<h2> <i>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)</i> </h2></span>

<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

<b> Description: </b>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.

<br><br>

<b> Exception Details: </b>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)<br><br>

<b>Source Error:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code>

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.</code>

</td>
</tr>
</table>

<br>

<b>Stack Trace:</b> <br><br>

<table width=100% bgcolor="#ffffcc">
<tr>
<td>
<code><pre>

[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) +31
VaultServiceAPILib.VaultServiceAPISystem.GetApplicationSettingString(HttpApplicationState theApp, String strResource, Boolean bEncrypted) +160
VaultServiceAPILib.VaultServiceAPISystem.GetWorkingFolder() +309
VaultService.Global.Application_Start(Object sender, EventArgs e) +2652
</pre></code>

</td>
</tr>
</table>

<br>

<hr width=100% size=1 color=silver>

<b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:1.0.3705.288; ASP.NET Version:1.0.3705.288

</font>

</body>
</html>
<!--
[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)
at System.Configuration.ConfigurationSettings.GetConfig(String sectionName)
at System.Configuration.ConfigurationSettings.get_AppSettings()
at VaultServiceAPILib.VaultConfigReader.GetConfigSetting(String strSection, Boolean bEncrypted)
at VaultServiceAPILib.VaultServiceAPISystem.GetApplicationSettingString(HttpApplicationState theApp, String strResource, Boolean bEncrypted)
at VaultServiceAPILib.VaultServiceAPISystem.GetWorkingFolder()
at VaultService.Global.Application_Start(Object sender, EventArgs e)
-->
--.

Post Reply