Version Affected: All
Overview
When a realm fails to load, and Custom Errors is turned off, the error displayed is "Compiler Error Message: BC30451: 'DatabaseFactory' is not declared. It may be inaccessible due to its protection level."
Cause
This error is typically caused by one or more files missing from the realm's own folder, D:\SecureAuth\SecureAuthXXX.
Resolution:
- Save a copy of the realm's web.config file.
- Copy a working realm's folder over the non-working realm's folder.
- Copy the saved web.config back into the folder, overwriting the one that came from the working realm, so the realm's own settings are restored.
- Run an IISRESET, or recycle the realm's Application Pool, to refresh the .NET cache.
Special Considerations
If the affected realm is a member of the default Application Pool, recycling it refreshes every realm in that Application Pool. It's better to create a new, dedicated Application Pool, move the affected realm to it, recycle that new Application Pool, then move the realm back to its original Application Pool. See Microsoft's New-WebAppPool documentation for how to create a new Application Pool.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
Please sign in to leave a comment.