Encrypt custom web.config section / cannot load custom handler?
- From: "MichaelS" <chgowiz@xxxxxxxxx>
- Date: 22 Nov 2006 08:11:36 -0800
I am attempting to encrypt a custom section of my web.config. The error
I am getting is that aspnet_regiis can't find/load my custom assembly
which contains my custom handler.
The custom section and handler was created using this example:
The custom section is very simple:
<myCustomSection myattrib1="value" myattrib2="value" />
The handler declaration in my web.config looks as such:
I've confirmed that the custom handler works in a web application.
The problem I am running into is when I am attempting to encrypt the
web.config custom section. I use the command: aspnet_regiis -pe
"myCustomSection" -app "/MyWebApp".
I get the following error:
Encrypting configuration section...
An error occurred creating the configuration section handler for
myCustomSection: Could not load file or assembly 'MyCustomHandler' or
one of its dependencies. The system cannot find the file specified.
(C:\PATHTOSITE\web.config line 5)
Could not load file or assembly 'MyCustomHandler' or one of its
dependencies. The system cannot find the file specified.
Installing the Custom Handler into the GAC is not an option.
Suggestions or pointers to what I am doing wrong would be most
- Prev by Date: Re: ASP.NET Custom Identity bad environment !
- Next by Date: Re: How to use PKI in web service?
- Previous by thread: Access Denied opening word within a web application
- Next by thread: Re: How to use PKI in web service?