On Wed, 4 Feb 2004 00:44:25 +0100, "Tony" <to**@hotmail.com> wrote:
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\Conf ig\machine.config Request
for the permission of type
System.Security.Permissions.StrongNameIdentityPer mission, mscorlib,
Version=1.0.3300.0, Culture=neutral, PublicKeyToken=** failed.
(c:\windows\microsoft.net\framework\v1.0.3705\Con fig\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/en...ycaspolexe.asp
CAS is a pretty big topic, but worth reading up on.
HTH
Ben