By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,122 Members | 1,689 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,122 IT Pros & Developers. It's quick & easy.

configuration problem (very urgent)

P: n/a
I'm doing asp.net application. In my web.config file i have added key as
following
<appSettings>
<add key="Provider" value="3"></add>
<add key="OracleClient" value="data source=global;user
id=atms_user;password=sql"></add>
<add key="Connection" value="server=global;user
Id=atms_user;password=sql"></add>
</appSettings>

Now when I run my application and trying to get the provider from web.config
as below

string provider = ConfigurationSettings.AppSettings["Provider"];

I'm getting the following error
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)
It seems instead of reading from web.config the application is trying to
read from machine.config.
please help me out in this aspect i'm stuck at this point from yesterday
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Give this a shot:

- Install .NET Framework 1.1 (looks like you're using 1.0)...
www.microsoft.com/net
- Go to Control Panel > Administrative Tools > Microsoft .NET Framework 1.1
Wizards > Adjust .NET Security. Under there, "make changes to this
computer", and TEMPORARILY click on each different zone and slide the slider
up to 'full trust'.

See if that gets you going temporarily, and then check out:

http://msdn.microsoft.com/library/de...amesecover.asp

There you can read up on .NET's security features and why you're getting
this error.

HTH,
Brandon
"Sai Pavan" <Sa******@discussions.microsoft.com> wrote in message
news:A2**********************************@microsof t.com...
I'm doing asp.net application. In my web.config file i have added key as
following
<appSettings>
<add key="Provider" value="3"></add>
<add key="OracleClient" value="data source=global;user
id=atms_user;password=sql"></add>
<add key="Connection" value="server=global;user
Id=atms_user;password=sql"></add>
</appSettings>

Now when I run my application and trying to get the provider from web.config as below

string provider = ConfigurationSettings.AppSettings["Provider"];

I'm getting the following error
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)
It seems instead of reading from web.config the application is trying to
read from machine.config.
please help me out in this aspect i'm stuck at this point from yesterday

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.