社区
C#
帖子详情
“System.ServiceModel.FaultException”类型的未经处理的异常在 mscorlib.dll 中发生
qq_20125305
2014-11-20 10:26:28
本人在一个简单调用webservice的c#窗体应用程序时 ,出现了
所示的问题
下面是我的App.config文件,我觉得是这里的问题,但是我不知道怎么改,请懂的人给点建议,感激不尽!
...全文
14549
8
打赏
收藏
“System.ServiceModel.FaultException”类型的未经处理的异常在 mscorlib.dll 中发生
本人在一个简单调用webservice的c#窗体应用程序时 ,出现了 所示的问题 下面是我的App.config文件,我觉得是这里的问题,但是我不知道怎么改,请懂的人给点建议,感激不尽!
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
8 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qq_35050161
2016-05-20
打赏
举报
回复
引发的异常:“System.ServiceModel.FaultException”(位于 System.ServiceModel.dll 中) 其他信息: 服务器无法处理请求。 ---> 未将对象引用设置到对象的实例。 这个问题是什么原因 配置和参数都没问题
qq_20125305
2014-11-20
打赏
举报
回复
谢谢...感谢您的回答。不然又要折腾好久了 分给你好了
feiyun0112
2014-11-20
打赏
举报
回复
我试了确实不行,应该是服务本身的问题, 你可以改用httpwebrequest post http://www.webxml.com.cn/webservices/weatherwebservice.asmx?op=getWeatherbyCityName
qq_20125305
2014-11-20
打赏
举报
回复
这是打印出来的stack trace
qq_20125305
2014-11-20
打赏
举报
回复
这是程序,很简单程序,getWeatherbyCityName(city)参数只有一个,没有漏
feiyun0112
2014-11-20
打赏
举报
回复
看下你webservice的调用,是否有忘记传入的参数
宝_爸
2014-11-20
打赏
举报
回复
"未将对象引用设置到对象实例", 应该是你的代码里使用空指针了。 你可以在本地服务器上进行调试,用Remote debugger. 或者在你webservice的最外面加上try ... catch。catch到异常,把详细信息(stack trace等)记录log。
System.
Service
Model
.Web.
dll
System.
Service
Model
.Web.
dll
C#引用用到了 就下载用了!!
.net 框架 源码 DotNetReferenceSource
源码
dll
: ComSvcConfig
mscorlib
PresentationBuildTasks PresentationCore PresentationFramework PresentationFramework.Aero PresentationFramework.Classic PresentationFramework.Luna PresentationFramework.Royale SMDiagnostics SMSvcHost svcutil System System.Activities System.Activities.Core.Presentation System.Activities.DurableInstancing System.Activities.Presentation System.AddIn System.AddIn.Contract System.Component
Model
.DataAnnotations System.Configuration System.Core System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.
Service
s System.Data.
Service
s.Client System.Data.
Service
s.Design System.Data.SqlXml System.Drawing System.Identity
Model
System.Identity
Model
.Selectors System.IO.Log System.Management System.Messaging System.Net System.Numerics System.Runtime.Caching System.Runtime.DurableInstancing System.Runtime.Remoting System.Runtime.Serialization System.Security System.
Service
Model
System.
Service
Model
.Activation System.
Service
Model
.Activities System.
Service
Model
.Channels System.
Service
Model
.Discovery System.
Service
Model
.Internals System.
Service
Model
.Routing System.
Service
Model
.WasHosting System.
Service
Model
.Web System.Transactions System.Web System.Web.Application
Service
s System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.
Service
s System.Windows.Forms System.Workflow.Activities System.Workflow.Component
Model
System.Workflow.Runtime System.Workflow
Service
s System.Xaml.Hosting System.Xml System.Xml.Linq UIAutomationClient UIAutomationClientsideProviders WindowsBase WsatConfig WsatUI XamlBuildTask
WCF错误 - System.
Service
Model
.
Fau
ltEx
c
eption
: 验证消息的安全性时
发生
错误 VMware系统与主机系统时间同步...
在Web
Service
式调用工作流示例测试
中
,在同一台机子上就可以测试连接通过,而当WCF服务端部署在VMware虚拟机系统
中
,客户端在本机时进行调试,C和S死活连接不上,错误为:System.
Service
Model
.
Fau
ltEx
c
eption
: 验证消息的安全性时
发生
错误。
异常
如下图所示: 最后发现是两台机子时钟不同步,差了1个多小时,改正时间后就OK了。这个问题耗费了半天的时间...
WCF – System.
Service
Model
.
Fau
ltEx
c
eption
WCF – System.
Service
Model
.
Fau
ltEx
c
eption
I’m sure you will encounter the following exc
eption
when working with WCF. System.
Service
Model
.
Fau
ltEx
c
eption
: The server was unable to p...
“System.StackOverflowExc
eption
”
类型
的
未经
处理
的
异常
在
mscorlib
.
dll
中
发生
“System.StackOverflowExc
eption
”
类型
的
未经
处理
的
异常
在
mscorlib
.
dll
中
发生
这个错误是第一次见到!原因:递归调用没有出口或进入死循环。解决方案:在报错的方法体里找哪个函数重复调用,找不到出口。
C#
110,535
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章