I am moving a 7.2 site from Windows Server 2008 to Server 2012 and I am getting the following error in the browser:
DNN Error
Connection To The Database Failed
If I look at the Event Viewer on the server I see this error:
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at DotNetNuke.Entities.Urls.AdvancedUrlRewriter.Handle404OrException(FriendlyUrlSettings settings, HttpContext context, Exception ex, UrlAction result, Boolean transfer, Boolean showDebug)
at DotNetNuke.Entities.Urls.AdvancedUrlRewriter.RewriteUrl(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I have been able to setup a new DNN 7 site from scratch just fine and I have been able to move another existing DNN 5.x site to the new server. I can connect to the db in SSMS using the credentials in the web.config and BOTH of the connection strings in the web.config are correct. I don't think this is really a db connection problem due to the exception logged in the Event Viewer. Has anyone seen this before or can anyone provide any assistance? I'm at a loss on this one.