G
Guest
I'm developing a web application i.e. asp.net. I have added a key named
"Provider" in web.config file as follows
<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>
And while coding when I wanted to retrive the provider as below
string provider = ConfigurationSettings.AppSettings["Provider"];
the application is giving 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.StrongNameIdentityPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
(c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config)
It seems that application instead of getting the key from web.config i think
it is trying to get from machine.config
Please respond me as soon as possible
thanks in advance
"Provider" in web.config file as follows
<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>
And while coding when I wanted to retrive the provider as below
string provider = ConfigurationSettings.AppSettings["Provider"];
the application is giving 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.StrongNameIdentityPermission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
(c:\winnt\microsoft.net\framework\v1.0.3705\Config\machine.config)
It seems that application instead of getting the key from web.config i think
it is trying to get from machine.config
Please respond me as soon as possible
thanks in advance