Error when deploying ASP.NET MVC NHibernate app to IIS7 -
I have an ASP.Net MVC application that works in vs. development web server when I publish IIS7 I get the following error. I have spent many hours and there is still no solution! [NullReferenceException: Object references are not set to an instance of an object.] System.Web.PipelineStepManager.ResumeSteps (exception error) +929 System Web.HttpApplication.BeginProcessRequestNotification (HttpContext reference, AsyncCallback cb) +91 system. Web. HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerRequest wr, HttpContext reference) +508
Here is the application_start
protected zero application_Start () {ConfigureLogging (); ComponentRegistrar.RegisterComponents (); NHibernate session InitSqlServer2005 (New WebSessionStorage (this), Settings.Default.DefaultConnString); CacheManager.InitCaches (); }} I came late for this application and do not know the best practices of MVC and NHibernate
You can not configure the nhibernate at the beginning of the application, but I also had this problem.
You can start it in Init (). Apart from this, you can see that it is done here
Comments
Post a Comment