System.Data.SqlClient.SqlException:用户'SERVER\Guest'登录失败。 [英] System.Data.SqlClient.SqlException: Login failed for user 'SERVER\Guest'.
问题描述
大家好我需要帮助。我尝试在我的计算机上安装我们的系统,安装时遇到了这个问题。 plsss帮助我。
我的问题是我们系统的源代码丢失了,但我有系统和数据库的安装程序。
有关调用&bbsp
实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾。
**************异常文本**************
System.Data.SqlClient .SqlException:用户'SERVER\Guest'登录失败。
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at warehouse.rooming.get_settings()
at warehouse.rooming.rooming_Load(Object sender,EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
$
* *************已装载的装配**************
$
mscorlib
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9035(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------- -----------------------
仓库
 汇编版本:1.0.0.0
  Win32版本:1.0.0.0
  CodeBase:file:/// C:/Users/Denmark-pc/AppData/Local/Apps/2.0/25AZH1N1.26G/8DZP31PT.PQJ/ware..tion_2b8cd6b94fa7b745_0001.0000_28218492c553cf9a/warehouse.exe
----------------------------------------
Microsoft。 VisualBasic
 汇编版本:8.0.0.0
$
  Win32版本:8.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
------------ ----------------------------
$
系统
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9037(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
---------------- ------------------------
$
System.Windows.Forms
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
-------- --------------------------------
$
System.Drawing
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
------------ ----------------------------
$
System.Configuration
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
------------ ----------------------------
$
System.Xml
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
------------ ----------------------------
$
System.Runtime.Remoting
  ;  汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
-------- --------------------------------
$
System.Data
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
------------ ----------------------------
Interop.Excel
 汇编版本:1.4.0.0
  Win32版本:1.4.0.0
  CodeBase:file:/// C:/Users/Denmark-pc/AppData/Local/Apps/2.0/25AZH1N1.26G/8DZP31PT.PQJ/ware..tion_2b8cd6b94fa7b745_0001.0000_28218492c553cf9a/Interop.Excel.DLL
----------------------------------------
System.Transactions
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
------------ ----------------------------
$
System.EnterpriseServices
 汇编版本:2.0.0.0
  Win32版本:2.0.50727.9031(WinRelRS5.050727-9000)
  CodeBase:file:/// C:/WINDOWS/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
------------ ----------------------------
$
****** ******** JIT调试**************
要启用实时(JIT)调试,请使用.config文件
应用程序或计算机(machine.config)必须在system.windows.forms部分设置
jitDebugging值。
应用程序必须也可以通过调试编译
启用。
例如:
$
<配置>
&NBSP; < system.windows.forms jitDebugging =" true" />
$
< / configuration>
启用JIT调试后,任何未处理的异常
将被发送到计算机上注册的JIT调试器
而不是由此对话框处理。
用户'SERVER \ 来宾'登录失败。
信息非常少,所以我们只能猜测:当前Windows用户在SQL Server中没有登录/访问权限时会使用来宾登录点。
Hi guys i need help. i try to install our system in my computer, while installing i got this problem. plsss help me.
my problem is the source code of our system is missing but i have installer of system and database.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Data.SqlClient.SqlException: Login failed for user 'SERVER\Guest'.
at System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.SqlClient.SqlConnection.Open()
at warehouse.rooming.get_settings()
at warehouse.rooming.rooming_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9035 (WinRelRS5.050727-9000)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
warehouse
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Denmark-pc/AppData/Local/Apps/2.0/25AZH1N1.26G/8DZP31PT.PQJ/ware..tion_2b8cd6b94fa7b745_0001.0000_28218492c553cf9a/warehouse.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9037 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Interop.Excel
Assembly Version: 1.4.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Denmark-pc/AppData/Local/Apps/2.0/25AZH1N1.26G/8DZP31PT.PQJ/ware..tion_2b8cd6b94fa7b745_0001.0000_28218492c553cf9a/Interop.Excel.DLL
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Login failed for user 'SERVER\Guest'.
That's very less on informations, so we can only guess: The Guest login is used, when the current Windows user don't have logon/Access permissions in SQL Server.
这篇关于System.Data.SqlClient.SqlException:用户'SERVER\Guest'登录失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!