Error loading machine.config

J

Jeff

Hello,

I've run into a problem with my asp.net application and would like to know
whether the error is likely with my remote host. The problem is an unhandled
exception, and the exception details are as follows:

System.Configuration.ConfigurationException: Error loading XML file
c:\winnt\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:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config)

This page works fine on my local server, but gives the error when run on my
remote host. All the files are synchronized between both servers. This page
has worked in the past on the remote host, and I can't identify a specific
change I made which would have caused the error. Other pages on my site work
just fine. I've compiled everything in version 1.1, and the host runs
version 1.1.

Thank you for your help.
 
A

Andrea D'Onofrio [MSFT]

This could be a .NET Framework version issue, which can be resolved by
adding entries in the web.config file as shown below:

<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

HtH,
Andrea
 
J

Jeff

Andrea D'Onofrio said:
This could be a .NET Framework version issue, which can be resolved by
adding entries in the web.config file as shown below:

<configuration>
<startup>
<supportedRuntime version="v1.1.4322" />
</startup>
</configuration>

HtH,
Andrea

The problem was indeed a version issue. I thought my remote host was on
version 1.1, but they were still on 1.0. As soon as they changed to 1.1, the
issue was resolved.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top