I am receiving the “A critical error has occurred…” message when trying to view the previous newsletter page by using the view in browser link in sent emails. I have two production installations on separate servers that this is affecting.
The first is a dnn 6.2.8 instance that I just did a new clean install of Opt-in 5 on Monday. Everything works as expected except when you try to view the sent emails in the browser.
The second is a dnn 6.2.7 instance that has been running Opt-in 4.1 which I recently upgraded to 5.0. After the upgrade all was working correctly as it had in the past. Clicking on the view in browser link did display the email in the browser correctly. This morning when trying to trouble shoot what might be wrong with the above new install, I was viewing the settings in the Opt-in module control panel, when I noticed that I was hiding the “Opt in management feature” for end users. I deselected that one option and updated the module. After updating the module the critical error started happening with this install. Setting the opt in management feature back to being hidden did not resolve the problem.
Here is the message from the event log which is almost identical on both servers:
AssemblyVersion: 6.2.8
PortalID: 0
PortalName: TealBrook
UserID: -1
UserName:
ActiveTabID: 109
ActiveTabName: Newsletter
RawURL: /Default.aspx?TabID=109&ShowWeb=True&PreviousNewsletterID=0bf8976c-d584-47b8-af5b-7b38b1d04ba0&OptInID=c7257364-23f3-41e8-8b34-f29a78587f51
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 3538f197-69b5-4a23-bda2-8aaf580487dc
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Dataspring.DNN.Modules.OptInEmail.__OptIn.DisplayWebVersion
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Dataspring.DNN.Modules.OptInEmail.__OptIn.DisplayWebVersion() at Dataspring.DNN.Modules.OptInEmail.__OptIn.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: Generic130