网站致命错误9001

时间:2012-11-22 04:25:45

标签: sql-server asp.net-mvc

我知道之前已经在这里提出过这个问题,但这些建议都没有对我有用。

我在共享服务器上有一个ASP.NET MVC(v.3)网站。该网站现在正常运行几周,直到我在登录后直接收到Fatal Error 9001错误。

因为这是一个共享服务器,所以我可以对数据库做的事情非常有限(而且我对数据库知之甚少)。服务台坚持认为他们的服务器没有任何问题。我从他们那里得到了各种建议:

  • 升级到商业计划,因为我没有空间
  • 即使mdb文件很小,ldb也可以非常快速地增长。 ldb文件可能占用了所有空间。我有100MB可用,数据库大小为16.5MB。 ldb文件可以占用剩余空间吗?
  • 我的SQL查询有问题,我应该查看网站。我正在使用带有linq的EF到sql。到目前为止,一切工作正常......导致此类错误的查询中是否会出现问题?
  • 在db日志中没有任何错误,因此不可能发生此错误。我应该在下次发生时记录它并再次联系。

我在SO上发现了一些帖子,建议恢复数据库备份可以摆脱这个问题。我没有最近的备份,因为发生了fatal error 9001而无法使用新备份。

我还能做些什么/尝试让我的网站再次移动?

更新:

我今天从托管该网站的服务台收到了回复。他们告诉我以下错误信息。

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 11/23/2012 6:50:03 AM 
Event time (UTC): 11/23/2012 12:50:03 PM 
Event ID: 55fd03ff030d4d05bf791aa57b726df4 
Event sequence: 8 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/9891/ROOT-1-129981485984030000 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\ClientSites\friedemannallgayer.com\httpdocs\ 
    Machine name: ASPHOST94 

Process information: 
    Process ID: 87868 
    Process name: w3wp.exe 
    Account name: ASPHOST94\IWPD_293(friedemann) 

Exception information: 
    Exception type: SqlException 
    Exception message: Warning: Fatal error 9001 occurred at Nov 23 2012  6:50AM. Note the error and time, and contact your system administrator.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.CloseInternal(Boolean closeReader)
   at System.Data.SqlClient.SqlDataReader.Close()
   at System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate)
   at System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat)
   at System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password)
   at PapaFilmsDB.Models.AccountMembershipService.ValidateUser(String userName, String password) in C:\Users\david.DOMAIN_GIS\Dropbox\Programming\PapaFilmsDB\PapaFilmsDB_20121029\PapaFilmsDB\Data\Models\AccountModels.cs:line 119
   at PapaFilmsDB.Controllers.AccountController.LogOn(LogOnModel model, String returnUrl) in C:\Users\david.DOMAIN_GIS\Dropbox\Programming\PapaFilmsDB\PapaFilmsDB_20121029\PapaFilmsDB\Controllers\AccountController.cs:line 40
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
   at System.Web.Mvc.Controller.ExecuteCore()
   at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
   at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
   at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()
   at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)



Request information: 
    Request URL: http://www.friedemannallgayer.com/Account/LogOn?ReturnUrl=/ 
    Request path: /Account/LogOn 
    User host address: 93.219.156.103 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: ASPHOST94\IWPD_293(friedemann) 

Thread information: 
    Thread ID: 9 
    Thread account name: ASPHOST94\IWPD_293(friedemann) 
    Is impersonating: False 
    Stack trace:    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlDataReader.CloseInternal(Boolean closeReader)
   at System.Data.SqlClient.SqlDataReader.Close()
   at System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Boolean updateLastLoginActivityDate, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved, DateTime& lastLoginDate, DateTime& lastActivityDate)
   at System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat)
   at System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password)
   at PapaFilmsDB.Models.AccountMembershipService.ValidateUser(String userName, String password) in C:\Users\david.DOMAIN_GIS\Dropbox\Programming\PapaFilmsDB\PapaFilmsDB_20121029\PapaFilmsDB\Data\Models\AccountModels.cs:line 119
   at PapaFilmsDB.Controllers.AccountController.LogOn(LogOnModel model, String returnUrl) in C:\Users\david.DOMAIN_GIS\Dropbox\Programming\PapaFilmsDB\PapaFilmsDB_20121029\PapaFilmsDB\Controllers\AccountController.cs:line 40
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
   at System.Web.Mvc.Controller.ExecuteCore()
   at System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
   at System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
   at System.Web.Mvc.MvcHandler.<>c__DisplayClass6.<>c__DisplayClassb.<BeginProcessRequest>b__5()
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
   at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _)
   at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End()
   at System.Web.Mvc.MvcHandler.<>c__DisplayClasse.<EndProcessRequest>b__d()
   at System.Web.Mvc.SecurityUtil.<GetCallInAppTrustThunk>b__0(Action f)
   at System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action)
   at System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

关于9001错误,有人能理解这一点吗?他们声称我的网站或.net 4.0存在问题。这可能吗?

3 个答案:

答案 0 :(得分:8)

我今天得到了这个并通过使数据库脱机然后再次联机来“修复”它。它只是处理症状而不是原因,所以问题可能会再次跳起来,但至少数据库可以再次写入操作。

答案 1 :(得分:5)

You may check this out

由于您使用共享服务器,因此数据库损坏的发生率很高,您几乎没有服务器配置的权限。

答案 2 :(得分:1)

我在没有使用一个数据库的情况下发生了这个错误。它后来升级了几天到两个数据库,今天它发生在所有数据库上。我通过重新启动Windows服务实例修复了症状,但仍然不知道为什么它首先发生在它身上!