输入字符串每天在同一时间格式不正确

时间:2011-07-15 13:51:07

标签: wcf iis-7

构建了一个客户端应用程序,以定时间隔轮询IIS7上托管的WCF服务。我不能为我的生活理解为什么我在每天的同一分钟,即凌晨4:50得到“输入字符串格式不正确”的错误。选中的事件查看器,没有任何内容......是SQL Server,VM,网络还是......?

这是错误和StackTrace:

Input string was not in a correct format.  
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.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
MyApplication.GenericService.IGenericService.GetCommands(String
fileName, CompanyCredentials credentials, String sequence)    at
MyApplication.GenericService.GenericServiceClient.GetCommands(String
fileName, CompanyCredentials credentials, String sequence)    at
MyApplication.ApplicationClass.RunCommands(String sequence)

1 个答案:

答案 0 :(得分:0)

您可以检查的一些事项:

  • 您是否将日期时间作为字符串发送,并且麦克风之间的时间格式存在差异?
  • 应用程序池的回收是在4:50之前运行,以便在重新打包后第一次调用失败
  • 如何发送凭据?凭据是否已过期?