为什么我一直看到这个错误?
执行超时已过期。操作完成之前经过的超时时间或服务器没有响应。
我不知道问题是在服务器中,还是在系统本身或创建的Web服务中。我重新配置服务器以清除缓存并运行测试,但没有运气仍然存在这个问题。
这是错误跟踪的代码
_setvariables_old
现在我有这个错误
由于内部错误,服务器无法处理请求。 有关错误的更多信息,请打开 IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute 或者来自服务器上的配置行为) 命令将异常信息发送回客户端,或打开 根据Microsoft .NET Framework SDK文档进行跟踪 检查服务器跟踪日志。
我的服务器发生了什么事请帮助TIA。
这是堆栈跟踪错误
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()
更新代码
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:
这是我的错误
答案 0 :(得分:0)
您的上一个Sql Select语句看起来不正常......是否缺少“=”符号?比如“SELECT * FROM AIRBILLS WHERE AirbillNo ='”&amp; “123456”&amp; “'”,......
除此之外,你应该考虑使用SqlParameters传递参数......