G
Guest
Hi
I've written custom configuration section (inherits from
System.Configuration.ConfigurationSection) to simplify the contents of the
config file and to make life easier when accessing them in code.
The configuration section is contained within the exe (it's a simple test
case!) and everything works well debugging within the IDE or if the
application is deployed on a drive or share that has been granted full trust.
For the share the code group is identified by a url
//servername/share/folder/*.
However if the assembly is given a strong name and a code group with full
trust is created using the public key then it fails with the following
message:
An error occurred creating the configuration section hander for
<sectionhandlername>: That assembly does not allow partially trusted callers.
If I add the AllowPartiallyTrustedCallers to the assembly then it works but
I'd rather not do this!
Any ideas why this exception occurs and how to fix it?
I can't see anything in the documentation that mentions or explains this.
Thanks for your help.
Cheers
Doug
I've written custom configuration section (inherits from
System.Configuration.ConfigurationSection) to simplify the contents of the
config file and to make life easier when accessing them in code.
The configuration section is contained within the exe (it's a simple test
case!) and everything works well debugging within the IDE or if the
application is deployed on a drive or share that has been granted full trust.
For the share the code group is identified by a url
//servername/share/folder/*.
However if the assembly is given a strong name and a code group with full
trust is created using the public key then it fails with the following
message:
An error occurred creating the configuration section hander for
<sectionhandlername>: That assembly does not allow partially trusted callers.
If I add the AllowPartiallyTrustedCallers to the assembly then it works but
I'd rather not do this!
Any ideas why this exception occurs and how to fix it?
I can't see anything in the documentation that mentions or explains this.
Thanks for your help.
Cheers
Doug