Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Migrate DW9 site to Production

Migrate DW9 site to Production

Kevin O'Driscoll
Reply

DW 9.5.0.0

We have an upgraded DW9 site ready for release to Production from staging. All is good in staging.

We copy all the files into Production (a different folder on the same server). We dont change the connection string yet in Global Settings so we still point to the same database, all folder permission settings are the same, we just change the root in IIS to point to the new folder:

Stack Trace: 

[NullReferenceException: Object reference not set to an instance of an object.]
   Dynamicweb.Data.Database.CreateConnection() +29
   Dynamicweb.Data.Database.ExecuteScalar(CommandBuilder commandBuilder, IDbConnection connection) +213
   Dynamicweb.Data.GeneralLogRepository.SaveEvent(LogEvent logEvent) +884
   Dynamicweb.Logging.LogEvents.LogEventService.SaveEvent(LogEvent logEvent) +83
   Dynamicweb.Logging.LoggerBase.Log(LogLevel level, String message, Exception ex) +21
   Dynamicweb.Mailing.EmailHandler.Send(MailMessage mailMessage, Boolean logging, Boolean throwException) +5150
   Dynamicweb.Frontend.GlobalAsaxHandler.SetupLicenseManager() +1040
   Dynamicweb.Frontend.GlobalAsaxHandler.Application_Start(Object sender, EventArgs e) +191

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +520
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +176
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +165
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +353
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +341

[HttpException (0x80004005): Object reference not set to an instance of an object.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +523
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +688

Can anyone tell me what is going on here? looks like DW is checking the Licence??

Rgds


Replies

 
Nicolai Pedersen
Reply

My guess is that your /Files is setup wrong.

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

This could also be caused by the license. Try to remove the .license(s) file from the Files folder and then reset the IIS.

This bug has been been fixed in a later version of 9.5

 
Kevin O'Driscoll
Reply

Thanks Steffan and Nicholi. Was a bug, I installed 9.5.7 and setup the License OK thanks. Will need now to do the same in staging and local.

 

You must be logged in to post in the forum