I wrote a custom secure configuration provider for my web.config.
When I try to encrypt my web.config file, I get the following error from aspnet_iisreg
aspnet_regiis.exe -pef appSettings. -prov CustomProvider (runs in my MSBuild)
Failed to load file or assembly "MyCustomProviderNamespace" or one of its dependencies. The system cannot find the specified file.
After checking in the Fusion log, I confirm that it checks both the GAC and the "C: /WINNT/Microsoft.NET/Framework/v2.0.50727/" (aspnet_iisreg location). But he cannot find a supplier.
I do not want to move my component to the GAC, I want to leave the custom assembly in my ApplicationBase to copy to different servers without the need to pull / pop from the GAC.
Here is my provider configuration in web.config file.
<configProtectedData> <providers> <add name="CustomProvider" type="MyCustomProviderNamespace.MyCustomProviderClass, MyCustomProviderNamespace" /> </providers> </configProtectedData>
I want aspnet_iisreg to check my ApplicationBase database folder for this assembly. Anyone got any ideas?
James
source share