config file


T

Tony

Any hint for this error?
It appears while trying to read a config file.


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=** failed.
(c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config)
 
Ad

Advertisements

B

Benjamin Wootton

Any hint for this error?
It appears while trying to read a config file.


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=** failed.
(c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config)
This is saying that your attempt to acceess a config file was
disallowed. You might have heard of code access security.

Here, the attempt to access the config file is producing a demand for
a strong named assembly, which your assembly isnt. You have two
choices - 1) Sign your assembly, 2) Alter local policy.

Caspol is a utility for managing CAS policy.
You can read up on caspol here
http://msdn.microsoft.com/library/e...fcodeaccesssecuritypolicyutilitycaspolexe.asp

CAS is a pretty big topic, but worth reading up on.

HTH
Ben
 

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

Similar Threads

Config Files 2
Config files 2
Config file 2
the config file 10
reading .config file 2
Config File Question 2
config file with a service 2
config file ?n 1

Top