有關呼叫實時(JIT)除錯而不是此對話框的詳細資訊,
請參見此訊息的結尾。
************** 例外文本 **************
System.Data.SqlClient.SqlException: 在與 SQL Server 建立連接時出現與網路相關的或特定于實體的錯誤。未找到或無法訪問服務器。請驗證實體名稱是否正確并且 SQL Server 已配置為允許遠程連接。 (provider: TCP 提供程式, error: 0 - 由于連接方在一段時間后沒有正確答復或連接的主機沒有反應,連接嘗試失敗。)
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
在 System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject, Boolean withFailover)
在 System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject, Boolean withFailover)
在 System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart)
在 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance)
在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection)
在 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options)
在 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject)
在 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject)
在 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
在 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
在 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
在 System.Data.SqlClient.SqlConnection.Open()
在 System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
在 NLoveLite.Database.DoLoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
在 NLoveLite.Database.LoadDataSet(DbCommand command, DataSet dataSet, String[] tableNames)
在 NLoveLite.Database.ExecuteDataSet(DbCommand command)
在 NLoveLite.Database.ExecuteDataTableFromDataSet(DbCommand command)
在 update.Donwfile.g1_init()
在 update.Donwfile.uploadfile_Load(Object sender, EventArgs e)
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)
在 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.9148 (WinRelRS6.050727-9100)
基本代碼: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
update
程式集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/update.exe
----------------------------------------
System.Windows.Forms
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9147 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
NLoveLite
程式集版本: 1.0.0.0
Win32 版本: 1.0.0.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/NLoveLite.DLL
----------------------------------------
DevExpress.Utils.v11.1
程式集版本: 11.1.8.0
Win32 版本: 11.1.8.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/DevExpress.Utils.v11.1.DLL
----------------------------------------
System.Configuration
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: 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.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
DevExpress.Data.v11.1
程式集版本: 11.1.8.0
Win32 版本: 11.1.8.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/DevExpress.Data.v11.1.DLL
----------------------------------------
DevExpress.XtraEditors.v11.1
程式集版本: 11.1.8.0
Win32 版本: 11.1.8.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/DevExpress.XtraEditors.v11.1.DLL
----------------------------------------
DevExpress.XtraGrid.v11.1
程式集版本: 11.1.8.0
Win32 版本: 11.1.8.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/DevExpress.XtraGrid.v11.1.DLL
----------------------------------------
DevExpress.Printing.v11.1.Core
程式集版本: 11.1.8.0
Win32 版本: 11.1.8.0
基本代碼: file:///C:/Users/saribing/AppData/Local/Temp/HZ$D.083.4324/HZ$D.083.4325/Hxrc/DevExpress.Printing.v11.1.Core.DLL
----------------------------------------
System.Transactions
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: 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.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Data.resources
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Data.resources.dll
----------------------------------------
mscorlib.resources
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9148 (WinRelRS6.050727-9100)
基本代碼: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Windows.Forms.resources
程式集版本: 2.0.0.0
Win32 版本: 2.0.50727.9136 (WinRelRS6.050727-9100)
基本代碼: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
************** JIT 除錯 **************
要啟用實時(JIT)除錯,
該應用程式或計算機的 .config 檔案(machine.config)的 system.windows.forms 節中必須設定
jitDebugging 值。
編譯應用程式時還必須啟用
除錯。
例如:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
啟用 JIT 除錯后,任何無法處理的例外
都將被發送到在此計算機上注冊的 JIT 除錯器,
而不是由此對話框處理。
uj5u.com熱心網友回復:
這要怎么解決是缺少什么檔案嘛?uj5u.com熱心網友回復:
sql server配置的問題,或者你連接字串的問題uj5u.com熱心網友回復:
看一下web.config里關于sql server的配置 看看是否是本地連接uj5u.com熱心網友回復:
本人小白實在是看不懂
uj5u.com熱心網友回復:
復制回來的檔案或者工程,資料庫連接可能是別人的資料庫,大部分都不可以直接訪問的。需要改成自己本地的資料庫連接或者可以訪問的遠程資料庫連接。類似下面:
<configuration>
<appSettings>
<add key="connstr" value="https://bbs.csdn.net/topics/server=.;database=test;pwd=123456;uid=sa"/>
</appSettings>
</configuration>
uj5u.com熱心網友回復:
1 你沒sql環境2 sql連接字串錯誤
uj5u.com熱心網友回復:
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="NHxrcWinApp.Properties.Settings.ConnectionString"
connectionString="Provider=SQLNCLI10.1;Data Source=172.26.50.2;Persist Security Info=False;User ID=nhxrc;Initial Catalog=nHxrc_Backup"
providerName="System.Data.OleDb" />
<add name="NHxrcWinApp.Properties.Settings.NHxrc_DataConnectionString"
connectionString="Data Source=172.26.50.2;Initial Catalog=NHxrc_Data;User ID=nhxrc"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="HxCallNcSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="819200" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://192.168.0.19:81/WebService/HxCallNc.asmx"
binding="basicHttpBinding" bindingConfiguration="HxCallNcSoap"
contract="nc_sender.HxCallNcSoap" name="HxCallNcSoap" />
</client>
</system.serviceModel>
<startup><supportedRuntime version="v2.0.50727"/></startup>
</configuration>
是這個檔案嗎?要改什么
uj5u.com熱心網友回復:
請問你本地有裝資料庫了嗎?如果有的話,要改一下這段話: connectionString="Provider=SQLNCLI10.1;Data Source=172.26.50.2;Persist Security Info=False;User ID=nhxrc;Initial Catalog=nHxrc_Backup"providerName="System.Data.OleDb" />
uj5u.com熱心網友回復:
資料庫是訪問服務器的
uj5u.com熱心網友回復:
如果是服務器的,你在本地的資料庫看能不能訪問到服務器的資料庫咯!uj5u.com熱心網友回復:
你本地沒有權限訪問服務器uj5u.com熱心網友回復:
那是要掛vpn嗎? 還是要改什么檔案
uj5u.com熱心網友回復:
可以在本地資料庫客戶端連接一下服務器上的資料庫看是否能夠連接,如果不可以,那肯定是沒有權限訪問服務器資料庫了。從服務器拿來的代碼要在本地除錯運行,最好連資料庫也在本地還原一份,然后將連接資訊改成本地的,這樣程式除錯起來方便。uj5u.com熱心網友回復:
你看看能ping通172.26.50.2 嗎????? 這個看樣子是內網ipuj5u.com熱心網友回復:
你本地沒有權限訪問服務器~~~uj5u.com熱心網友回復:
這個提示是告訴你你和服務器無法通信可能造成的原因有:
1.服務器的防火墻拒絕了你的訪問
2.你陳述句中的資料庫賬號是沒有遠程權限的
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/52409.html
標籤:C#
