Softsys Hosting hakkında iyi şeyler duydum ve bu yüzden ASP.NET MVC çözümümüzü onlara aktarmaya karar verdim. Ama onlar üzerinde koşmazdı. Sorunu BeginRequest olay işleyicilere doğru tespit edebildim. Onlarda olsaydım, bir hata alırdım. İşte benim kodum.Neden ana bilgisayarım (softsyshosting.com) BeginRequest ve EndRequest olay işleyicilerini desteklemiyor?
Sorunu, yalnızca varsayılan ASP.NET MVC uygulamasını oluşturarak ve yukarıdaki kodu ekleyerek yeniden oluşturabilirim. Garip olan şey, bu kod eski sunucumda iyi çalıştı ve sadece yeni (paylaşılan) ana bilgisayarımda çöküyor. Benim kodunda bu olay işleyicileri varsa bu hatayı alıyorum:
Server Error in '/' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] System.Web.PipelineModuleStepContainer.GetStepArray(RequestNotification notification, Boolean isPostEvent) +27 System.Web.PipelineModuleStepContainer.GetEventCount(RequestNotification notification, Boolean isPostEvent) +11 System.Web.PipelineStepManager.ResumeSteps(Exception error) +205 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) +91 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +514
Ben Softsys ile bu sorun giderme çalıştım ama onlar temelde onlar sadece ben "ASP.NET Boru Hattı dönmüştü doğruladı çok yararlı değildi (MVC) "yönetici kontrol panelimdeki işlevsellik.
birisi Can: Yanlış bir şey kodlanmış verdiyseniz
- bu hata diğeri ana bilgisayarda ortaya çıkan ve neden bana bana
- -etrafında çalışmalarını açıklar göster bana.
bu oldukça size barındırma desteği için bir soru olmaz mı? –
NHibernate'i herhangi bir şansla kullanıyor musunuz? –
Oliver, evet Softsys Hosting'den destek almaya çalıştım ama çok yardımcı olmadılar. Bu sorunu gidermek için bana 95 $/HR tutarında ödeme yapmak istediler. Onlarla ilgili her şeyden memnun kaldım ve yanlış yaptığım bir şey varsa onları vermek istemiyorum. Dreas, hayır NHibernate kullanmıyorum. – Whozumommy