siverlight+wcf部署问题

天空d天空 2014-12-06 09:03:12
刚开始部署到外网上访问都没问题

可过了段时间 大约几小时后吧
IE报出如下错误
网页错误详细信息

用户代理: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; QQDownload 718; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)
时间戳: Sat, 6 Dec 2014 12:21:31 UTC


消息: Unhandled Error in Silverlight Application [Async_ExceptionOccurred]
参数:
调试资源字符串不可用。密钥和参数通常提供足够的信息用以诊断该问题。请访问 http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.00&File=System.dll&Key=Async_ExceptionOccurred 位于 System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary()
位于 GDInfoGasManager.GDInfoService.ServiceReference.LoginCompletedEventArgs.get_Result()
位于 GDInfoGasManager.Main.LoginMain.client_LoginCompleted(Object sender, LoginCompletedEventArgs e)
位于 GDInfoGasManager.GDInfoService.ServiceReference.ServiceClient.OnLoginCompleted(Object state)
行: 1
字符: 1
代码: 0
URI: http://121.18.107.162:8014/
实在不知道什么原因
问题是都运行短时间了,突然就登陆不上去了
...全文
160 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
天空d天空 2014-12-10
  • 打赏
  • 举报
回复
下面是wcf调用 public static ServiceClient GetServiceClient() { BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.None); binding.MaxReceivedMessageSize = int.MaxValue; binding.MaxBufferSize = int.MaxValue; ServiceClient client = new ServiceClient(binding, new EndpointAddress( new Uri(Application.Current.Host.Source, "../Service.svc"))); return client; }
天空d天空 2014-12-10
  • 打赏
  • 举报
回复
ServiceReferences.ClientConfig 引用wcf <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_Service" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="None" /> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://localhost:8015/Service.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Service" contract="ServiceReference.Service" name="BasicHttpBinding_Service" /> </client> </system.serviceModel> </configuration>
天空d天空 2014-12-10
  • 打赏
  • 举报
回复
最近还是老是出现,我贴一下 我WCF 引用的一些配置 web.config <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="true" /> <dataContractSerializer maxItemsInObjectGraph="2147483647"/> <serviceThrottling maxConcurrentCalls="50" maxConcurrentSessions="50" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <basicHttpBinding> <binding name="BasicHttpBinding_Service" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"> <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" /> </binding> </basicHttpBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> <services> <service name="GDInfoGasManager.Host.Service"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_Service" contract="GDInfoGasManager.Host.Service" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service>
wjq 2014-12-07
  • 打赏
  • 举报
回复
用浏览器抓包,IE10/11之类的话F12 开发人员工具,看你的silverlight请求的wcf返回的是什么,不出意外是500错误,然后有相关报错,无法访问的时候你直接浏览器里访问wcf的url看会不会报错
天空d天空 2014-12-06
  • 打赏
  • 举报
回复
求大神么帮帮忙吧 ,周一就要给客户部署了 现在又可以运行了 下班前部署到的公司外网上,回家运行短时间 没问题 突然就出现上面的问题了 然后查了半天资料回过头来有试了一次居然又能登陆了 这要我好纠结

8,757

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧