Server Error in '/' Application.

Value cannot be null.
Parameter name: String

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.ArgumentNullException: Value cannot be null.
Parameter name: String

Source Error:


Line 330:            if (string.IsNullOrEmpty(ApplicationName))
Line 331:            {
Line 332:                dr = oDb.GetRegistrationType(int.Parse(regTypeId));
Line 333:                if (dr.HasRows)
Line 334:                {

Source File: d:\webdata\Gettaxnetpro40\Controls\NewsLettersForm.ascx    Line: 332

Stack Trace:


[ArgumentNullException: Value cannot be null.
Parameter name: String]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +14542446
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +174
   ASP.NewsletterRegistrationForm.Page_Load(Object sender, EventArgs e) in d:\webdata\Gettaxnetpro40\Controls\NewsLettersForm.ascx:332
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   Carswell.Web.UI.Base.ControlBase.OnLoad(EventArgs e) +1411
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Control.LoadRecursive() +185
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4682.0