2017-11-29 1 views
0

このエラーが表示されるのはなぜですか?SQL Serverにデータをアップロードできません

実行のタイムアウトが切れています。操作が完了する前にタイムアウト時間が経過したか、サーバーが応答していません。

問題がサーバーにあるのか、システム自体にあるのか、または作成されたWebサービスに問題があるのか​​分かりません。キャッシュメモリをクリアしてテストを実行するようにサーバーを再構成しますが、まだ問題はありません。

これは、今、私はこのエラー

サーバが内部エラーのため要求を処理できませんでした持ってエラーが

DialogWaitForm.Show() 

BillInfoTableAdapter.Fill(ReportsDataSet.BillInfo, CType(CreateBillingForm.CurrentBillTransactionID, Long)) 

Dim row As ReportsDataSet.BillInfoRow 
row = CType(CType(BillInfoBindingSource.Current, DataRowView).Row, ReportsDataSet.BillInfoRow) 

Me.BillingTransactionsTableAdapter.Fill(Me.ReportsDataSet.BillingTransactions, CType(CreateBillingForm.ComboBoxClient.SelectedValue, Long), statementid(), row.BeginDate.Year) 

Dim row4 As ReportsDataSet.BillingTransactionsRow 
row4 = CType(CType(BillingTransactionsBindingSource.Current, DataRowView).Row, ReportsDataSet.BillingTransactionsRow) 
BillingTransactionsBindingSource.MoveFirst() 

Me.BillingAIRBILLSPerServiceTableAdapter.Fill(Me.ReportsDataSet.BillingAIRBILLSPerService, row.ID) 

Me.BillingCurrentChargesTableAdapter.Fill(Me.ReportsDataSet.BillingCurrentCharges, CType(Client(), Long), CType(_current(), Decimal), CType(_currentyear, Decimal), statementid()) 

     Me._30daysTableAdapter.Fill(Me.ReportsDataSet._30days, CType(Client(), Long), CType(_30(), Decimal), CType(_30year, Decimal), CType(statementid(), Long)) 
     Me._60daysTableAdapter.Fill(Me.ReportsDataSet._60days, CType(Client(), Long), CType(_60(), Decimal), CType(_60year, Decimal), CType(statementid(), Long)) 
     Me._90daysTableAdapter.Fill(Me.ReportsDataSet._90days, CType(Client(), Long), CType(_90(), Decimal), CType(_90year, Decimal), CType(statementid(), Long)) 
     Me._120daysTableAdapter.Fill(Me.ReportsDataSet._120days, CType(Client(), Long), CType(_120(), Decimal), CType(_120year, Decimal), CType(statementid(), Long)) 
     Me.morethan120daysTableAdapter.Fill(Me.ReportsDataSet.morethan120days, CType(Client(), Long), morethan120) 
     Me.ThisYearPreviousBalanceCrTableAdapter.Fill(Me.ReportsDataSet.ThisYearPreviousBalanceCr, CType(Client(), Long), row4.StatementOrRecptDate.Date) 

     Me.BillingCurrentCRTableAdapter.Fill(Me.ReportsDataSet.BillingCurrentCR, CType(Client(), Long), CType(_current(), Decimal), CType(_currentyear, Decimal), CType(statementid(), Long)) 
     Me._30daysCRTableAdapter.Fill(Me.ReportsDataSet._30daysCR, CType(Client(), Long), CType(_30(), Decimal), CType(_30year, Decimal), CType(statementid(), Long)) 
     Me._60daysCRTableAdapter.Fill(Me.ReportsDataSet._60daysCR, CType(Client(), Long), CType(_60(), Decimal), CType(_60year, Decimal), CType(statementid(), Long)) 
     Me._90daysCRTableAdapter.Fill(Me.ReportsDataSet._90daysCR, CType(Client(), Long), CType(_90(), Decimal), CType(_90year, Decimal), CType(statementid(), Long)) 
     Me._120daysCRTableAdapter.Fill(Me.ReportsDataSet._120daysCR, CType(Client(), Long), CType(_120(), Decimal), CType(_120year, Decimal), CType(statementid(), Long)) 
     Me.morethan120daysCRTableAdapter.Fill(Me.ReportsDataSet.morethan120daysCR, CType(Client(), Long), morethan120, row.StatementID) 
     Me.ThisYearPreviousBalanceDrTableAdapter.Fill(Me.ReportsDataSet.ThisYearPreviousBalanceDr, CType(Client(), Long), row4.StatementOrRecptDate) 

     fillbilltransaction() 

     If CreateBillingForm.RadioButtonWithPOD.Checked = True Then 
      filltempWithPOD() 
     Else 
      filltempNoPOD() 
     End If 


     DialogWaitForm.Dispose() 

     Me.ReportViewer1.RefreshReport() 

をトレースしているコードです。エラーの詳細については 、どちらか ため、クライアントに例外情報を送信する、またはMicrosoftごとに トレースをオンにするには、サーバー上の IncludeExceptionDetailInFaults(ServiceBehaviorAttribute からか、設定行動からのいずれか)をオンにします。 NET Framework SDKのドキュメントおよび は、サーバートレースログを検査します。

私のサーバーに何が起こったのかTIAにお役立てください。

これはスタックトレースエラー

System.ServiceModel.FaultException was unhandled 
    HResult=-2146233087 
    Message=The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs. 
    Source=mscorlib 
    StackTrace: 
    Server stack trace: 
     at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter) 
     at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc) 
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) 
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) 
     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) 
     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) 
    Exception rethrown at [0]: 
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) 
     at JRS_Online_Apps_III.ServiceReferenceBilling.IService.RequestGenerateBill(String rclid, String ruserid, String rbrid, String rdatefrom, String rdateto, String rduedate, String careof, Int64[] rairbillsids, Decimal rNet, Decimal rRvat, Int32 rstatement, String bir) 
     at JRS_Online_Apps_III.ServiceReferenceBilling.ServiceClient.RequestGenerateBill(String rclid, String ruserid, String rbrid, String rdatefrom, String rdateto, String rduedate, String careof, Int64[] rairbillsids, Decimal rNet, Decimal rRvat, Int32 rstatement, String bir) in C:\Users\REGIME\Desktop\New folder\JRS_Online_Apps_III\JRS_Online_Apps_III\Service References\ServiceReferenceBilling\Reference.vb:line 254 
     at JRS_Online_Apps_III.CreateBillingForm.Button1_Click(Object sender, EventArgs e) in C:\Users\REGIME\Desktop\New folder\JRS_Online_Apps_III\JRS_Online_Apps_III\Billing\CreateBillingForm.vb:line 238 
     at System.Windows.Forms.Control.OnClick(EventArgs e) 
     at System.Windows.Forms.Button.OnClick(EventArgs e) 
     at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) 
     at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) 
     at System.Windows.Forms.Control.WndProc(Message& m) 
     at System.Windows.Forms.ButtonBase.WndProc(Message& m) 
     at System.Windows.Forms.Button.WndProc(Message& m) 
     at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
     at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
     at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) 
     at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) 
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) 
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) 
     at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() 
     at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() 
     at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) 
     at JRS_Online_Apps_III.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 
     at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) 
     at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) 
     at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() 
     at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
     at System.Threading.ThreadHelper.ThreadStart() 
    InnerException: 

更新されたコード

sqlconnect() 
sqltable = New DataTable 
sqladapter = New SqlDataAdapter("SELECT * FROM AIRBILLS WHERE AirbillNo = '" & "123456" & "'",sqlcon) 
sqladapter.Fill(sqltable) 
MsgBox(sqltable.Rows(0)("Addressee")) 

これはあなたの最後のSQLのSELECT文が見えない

https://ibb.co/ih3aQG

+0

おそらく、あなたが設定できる "AirbillNo = AIRBILLS SELECT * FROM"' のようなtimeout = 0、それはあなたの問題を解決するでしょう –

+1

SQL Server Profilerを使用して、アプリケーションがサーバーに送信するすべてを監視できます。それをフィルタリングしてログインし、クエリを起動します。何も表示されない場合、サーバーにはまったく到達していません。クエリが表示されている場合は、その期間を確認してください。 – sepupic

+0

@CookieMonsterタイムアウトプロパティはどこにありますか? –

答えて

0

私の誤りでありますOK ...私はそこには "="記号がありませんか? '& "123456" & ""、...

それとは別に、あなたがパラメータを渡すためSqlParametersを使用して考えなければならない...

+0

これは私のコードの例ですので、パラメタライズされたクエリでさえも使用できません...私はスクリーンショットを投稿し、欠落した "="サイン –

関連する問題