473,473 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with access to MACHINE.CONFIG

I have a simple page or two and a simple global.asax file that loads some configuration from the web.config file.

I developed this on a Windows XP box with framework version 1.1 installed. I run it on a 2003 box with both version 1.0 and 1.1 installed.
This appears to work.

When move the page and code to my clients hosting service (Earthlink) which only supports version 1.0 of the framework, I get the error
below. I know that my WEB.CONFIG file is being read because if I put something bad in it like <?xml version="1.0"?>, I get an error. I
have even signed the assembly that is created from the code behind pages. I have tried to not supply an assembly (and let IIS do a JITC on
the pages), but then I get an inherit error in the global.asax set of files.

I really don't understand enough of this to fix it. Can someone please point me in the right direction?

Thanks

Below is my web.config file
<!-- Web.Config Configuration File -->
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v1.0.3705"/>
<requiredRuntime version="v1.0.3705"/>
</startup>
<appSettings>
<add key="subject_welcome" value="Henry's Crawfish Club - Welcome" />
<add key="subject_remove" value="Henry's Crawfish Club - Remove" />
<add key="subject_password" value="Henry's Crawfish Club - Password" />
</appSettings>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
Error loading XML file c:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed. (c:\winnt\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:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission of type
System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed. (c:\winnt\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:\winnt\microsoft.net\framework\v1.0.3705\Config\ machine.config Request for the permission
of type System.Security.Permissions.StrongNameIdentityPerm ission, mscorlib, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 failed. (c:\winnt\microsoft.net\framework\v1.0.3705\Config \machine.config)]
System.Configuration.ConfigurationRecord.OpenXmlTe xtReader(String configFileName) +425
System.Configuration.ConfigurationRecord.Load(Stri ng filename) +205
System.Configuration.DefaultConfigurationSystem.Sy stem.Configuration.IConfigurationSystem.Init() +164
System.Configuration.ConfigurationSettings.SetConf igurationSystem(IConfigurationSystem configSystem) +117
System.Configuration.ConfigurationSettings.GetConf ig(String sectionName) +114
System.Configuration.ConfigurationSettings.get_App Settings() +16
CrawfishClub.Global.Application_Start(Object sender, EventArgs e) in c:\documents and
settings\roy\vswebcache\henry.sohotech.biz\crawfis hclub\global.asax.cs:78
-------------------------------------------
Roy Chastain
Nov 18 '05 #1
0 1483

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Wolfgang Kaml | last post by:
Hello All, I have been researching newsgroups and knowledgebase all morning and not found a solution that would solve the problem I have. I am having an ASP or ASPX web page that implement a...
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine to Windows 2003 server hosting SQL server 2000...
8
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local...
15
by: Ron L | last post by:
We are working on a distributed VB.Net application which will access a SQL database located on a known server. Each client will run on the user's local machine. To implement this, we are trying...
2
by: Ian | last post by:
Hi, I am trying to use machine.config to store database settings for a connection wrapper class I am using as part of the data layer of an n-tier system. Have added the following section to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.