New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Error Moving Site to Windows Server 2012

Return to previous page

  • 7/15/2014
  • 2996 Views

Question:

Richard Gold long time ago

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.

Sign In to Participate
Or register to become a member