Server Error in '/' Application.
--------------------------------------------------------------------------------SHUTDOWN is in progress.
Login failed for user 'bill'. Only administrators may connect at this time. 
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.Data.SqlClient.SqlException: SHUTDOWN is in progress.
Login failed for user 'bill'. Only administrators may connect at this time.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: 
[SqlException (0x80131904): SHUTDOWN is in progress.
Login failed for user 'bill'. Only administrators may connect at this time.]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4849719
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
   System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +165
   NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() +42
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) +118
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory sessionFactory) +152
   NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) +980
   NHibernate.Cfg.Configuration.BuildSessionFactory() +171
   Z.Core.NHibernateCore.NHibernateHelper..cctor() in E:\Projects\Z.SnatchScore\Z.Core.NHibernateCore\NHibernateHelper.cs:17[TypeInitializationException: The type initializer for 'Z.Core.NHibernateCore.NHibernateHelper' threw an exception.]
   Z.Core.NHibernateCore.NHibernateHelper.GetCurrentSession() in E:\Projects\Z.SnatchScore\Z.Core.NHibernateCore\NHibernateHelper.cs:47
   Z.Core.NHibernateCore.AbstractNHibernateDao`1.get_NHibernateSession() in E:\Projects\Z.SnatchScore\Z.Core.NHibernateCore\AbstractNHibernateDao.cs:32
   Z.Core.NHibernateCore.AbstractNHibernateDao`1.FirstResult(Expression`1 predicate) in E:\Projects\Z.SnatchScore\Z.Core.NHibernateCore\AbstractNHibernateDao.cs:340
   _dynamic_Z.Core.NHibernateCore.AbstractNHibernateDao`1[[Z.SnatchScore.Model.Snt.User, Z.SnatchScore.Model, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].FirstResult(Object , Object[] ) +141
   Spring.Reflection.Dynamic.SafeMethod.Invoke(Object target, Object[] arguments) +343
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() +188
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +137
   Z.SnatchScore.Proxy.Snt.UserProxy.Invoke(IMethodInvocation invocation) +577
   Spring.Aop.Framework.AbstractMethodInvocation.Proceed() +399
   Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(Object proxy, Object target, Type targetType, MethodInfo targetMethod, MethodInfo proxyMethod, Object[] args, IList interceptors) +184
   CompositionAopProxy_2f3a07c4dce741bcbddb5d718a9cbd33.FirstResult(Expression`1 predicate) +162
   Z.SnatchScore.WebUI.Index.btnSend_Click(Object sender, EventArgs e) +1058
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565 这是SQL的什么错误,如何解决 
谢谢

解决方案 »

  1.   

    翻译成  中文
    服务器错误'/'应用。
    -------------------------------------------------- ------------------------------关机正在进行。
    用户登录失败'法案'。 只有管理员可以连接在这个时候。  
    说明:未处理的异常发生在当前Web请求的执行。 请检查堆栈跟踪信息,该错误以及代码中起源。  异常详细信息:System.Data.SqlClient.SqlException:关闭工作正在进行中。
    用户登录失败'法案'。 只有管理员可以连接在这个时候。源错误:  生成了未处理的异常,在当前Web请求的执行。 信息源和异常的位置可确定使用下面的异常堆栈跟踪。   堆栈跟踪:  
    [SQLException的(0x80131904):关机正在进行。
    用户登录失败'法案'。 只有管理员可以连接在这个时候。]
      System.Data.SqlClient.SqlInternalConnection.OnError(SqlException异常,布尔breakConnection)4849719
      System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)194
      System.Data.SqlClient.TdsParser.Run(但未提供该参数的SqlCommand cmdHandler,SqlDataReader的数据流,操作失败bulkCopyHandler,TdsParserStateObject stateObj)2392
      System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(布尔enlistOK)+35
      System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo,Newpassword的字符串,布尔ignoreSniOpenTimeout,Int64的timerExpire,SqlConnection的owningObject)+144
      System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(弦乐主机,Newpassword的字符串,布尔redirectedUserInstance,SqlConnection的owningObject,SqlConnectionString connectionOptions,Int64的timerStart)342
      System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection的owningObject,SqlConnectionString connectionOptions,Newpassword的字符串,布尔redirectedUserInstance)221
      System.Data.SqlClient.SqlInternalConnectionTds ..构造函数(DbConnectionPoolIdentity身份,SqlConnectionString connectionOptions,对象providerInfo,弦乐Newpassword的,的SqlConnection owningObject,布尔redirectedUserInstance)189
      System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions选项,对象poolGroupProviderInfo,DbConnectionPool池,DbConnection的owningConnection)185
      System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection的owningConnection,DbConnectionPool池,DbConnectionOptions选项)+31
      System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection的owningObject)433
      System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection的owningObject)+66
      System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection的owningObject)+499
      System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection的owningConnection)65
      System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection的outerConnection,DbConnectionFactory ConnectionFactory的)117
      System.Data.SqlClient.SqlConnection.Open()+122
      NHibernate.Connection.DriverConnectionProvider.GetConnection()165
      NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare()+42
      NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(方言方言,IConnectionHelper connectionHelper)118
      NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactory SessionFactory的)152
      NHibernate.Impl.SessionFactoryImpl ..构造函数(配置CFG桩,IMapping映射,设置设置,EventListeners听众)980
      NHibernate.Cfg.Configuration.BuildSessionFactory()171
      Z.Core.NHibernateCore.NHibernateHelper .. cctor()在E:\项目\ z的SnatchScore \ Z.Core.NHibernateCore \ NHibernateHelper.cs:17[TypeInitializationException:对'Z.Core.NHibernateCore.NHibernateHelper'抛出异常的类型初始值。]
      Z.Core.NHibernateCore.NHibernateHelper.GetCurrentSession()在E:\项目\ z的SnatchScore \ Z.Core.NHibernateCore \ NHibernateHelper.cs:47
      Z.Core.NHibernateCore.AbstractNHibernateDao`1.get_NHibernateSession()在E:\项目\ z的SnatchScore \ Z.Core.NHibernateCore \ AbstractNHibernateDao.cs:32
      Z.Core.NHibernateCore.AbstractNHibernateDao`1.FirstResult(谓词表达`1)在E:\项目\ z的SnatchScore \ Z.Core.NHibernateCore \ AbstractNHibernateDao.cs:340
      _dynamic_Z.Core.NHibernateCore.AbstractNHibernateDao`1 [[Z.SnatchScore.Model.Snt.User,Z.SnatchScore.Model,版本= 1.0.0.0,Culture =非特定,PublicKeyToken =空。]] FirstResult(对象,对象[] )141
      Spring.Reflection.Dynamic.SafeMethod.Invoke(对象的目标,对象[]参数)343
      Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint()188
      Spring.Aop.Framework.AbstractMethodInvocation.Proceed()137
      Z.SnatchScore.Proxy.Snt.UserProxy.Invoke(IMethodInvocation调用)577
      Spring.Aop.Framework.AbstractMethodInvocation.Proceed()399
      Spring.Aop.Framework.DynamicProxy.AdvisedProxy.Invoke(对象的代理,对象的目标,类型的TargetType,MethodInfo的targetMethod,MethodInfo的proxyMethod,Object []的参数,IList的拦截器)184
      CompositionAopProxy_2f3a07c4dce741bcbddb5d718a9cbd33.FirstResult(表达式`1谓词)162
      Z.SnatchScore.WebUI.Index.btnSend_Click(对象发件人,EventArgs五)1058
      System.Web.UI.WebControls.Button.OnClick(声明)111
      System.Web.UI.WebControls.Button.RaisePostBackEvent(弦乐eventArgument)+110
      System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(弦乐eventArgument)+10
      System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl,弦乐eventArgument)+13
      System.Web.UI.Page.RaisePostBackEvent(的NameValueCollection postData)+36
      System.Web.UI.Page.ProcessRequestMain(布尔includeStagesBeforeAsyncPoint,布尔includeStagesAfterAsyncPoint)1565
      

  2.   

    按字面意思,你要连的server正在shutdown,所以只有管理员才能登录
      

  3.   

    我也看出是这个问题,但Server从昨天就开始这样了,到现在还没好
      

  4.   

    Login failed for user 'bill'. Only administrators may connect at this time.如果你没有SA账号,默认的情况下你可以加入本地管理员组,让后用服务器管理或域管理员权限的账户对SQL SERVER服务器进行管理,但前提是,服务器里面有默认的本地管理员权限,并未在安装或人为的删除