I configured everything on my test servers to make sure I understood how everything worked. Everything worked like a champ right after a little tweaking of the security.
I then copied it out to our production server. I set the web.config file to use impersonation and I used the aspnet_setreg utility to place the encrypted username and password in the registry. Everything worked like a charm to a point.
It seems like the admin pages do not work properly. I can login with the admin user but when I select an administrator to edit, I get the error listed below. The test server displays the user /editadministrator.aspx without the error.
SIDE NOTE: The only way to actual see the error is by viewing the pages on the server via localhost. When viewed via our true URL, an error page is displayed that says to check the "ExceptionLog.config" file. This file does not exist in the logging folder.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [NullReferenceException: Object reference not set to an instance of an object.] InstantKB.InstantKB_AdminManageAdministrators.BindData() +219 InstantKB.InstantKB_AdminManageAdministrators.Page_Load(Object sender, EventArgs e) +210 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[NullReferenceException: Object reference not set to an instance of an object.] InstantKB.InstantKB_AdminManageAdministrators.BindData() +219 InstantKB.InstantKB_AdminManageAdministrators.Page_Load(Object sender, EventArgs e) +210 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +731
Dear WellerEE,
I would like to suggest you to try adding the key below to your web.config:
<pages autoEventWireup="true" enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />