So here is the current situation:
- The original deployment of the program on the host machine works well.
- The original and modified versions of the program work well on my laptop computer (which is the computer being used to develop the code, apart from the host machine - the program will be deployed back to the host machine after my work is complete).
- The modified program works only within Visual Studio itself. If I run it in debugging mode (F5), run it without debugging (Ctrl+F5), or View -> View page in browser, it works fine.
- The original and modified verions of the code will *not* work outside of Visual Studio; this also applies on the host machine, if I try to redeploy either the old or modified versions (yes, it won't work even if I try redeploying with the exact same version as the original). After building the program, if I run the program via the URL http://localhost/Pro...nReporting.aspx, it errors out with the following details:
Server Error in '/ProductionReporting' Application. Length cannot be less than zero. Parameter name: length 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.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length 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: [ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10084024 _Login.Page_Init(Object sender, EventArgs e) +163 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42 System.Web.UI.Control.OnInit(EventArgs e) +132 System.Web.UI.Page.OnInit(EventArgs e) +16 System.Web.UI.Control.InitRecursive(Control namingContainer) +143 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477
I have verified IIS and .NET framework are successfully installed and running. If there are other specific parts of the code you need to see, let me know. I sincerely appreciate any help or guidance; I have been beating my head against this stone wall for one long weekend and several work days. THANK YOU! - - AJ