在exe中调用WCF服务 [英] Call WCF Services in exe
问题描述
我需要在EXE中调用WCF服务.
我正在通过Web应用程序调用该EXE.
我可以在控制台应用程序中运行exe.但是,当我部署Web应用程序时,它会在exe中引发异常.
例外是:
"System.ServiceModel.FaultException`1 [System.ServiceModel.ExceptionDetail]:
无法自动创建人和用户,或者人不存在.
我认为此异常是由于EXE无法正确获取Windows凭据所致.
因此,请帮助我解决问题.
I need to call WCF Service in EXE.
That EXE I''m calling through Web Application.
I am able to run exe in console application.but when I deploy my Web Application, its fires exception in exe.
exception is :
"System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]:
Unable to create the person and the user automatically or person DoesNot exist.
I think this exception is due to EXE not getting Windows Credentials properly.
so please help me to resolve my issue.
推荐答案
检查这些博客
http://msdn.microsoft.com/en-us/library/bb332338.aspx [ ^ ]
http://debugmode.net/2010/05/25/wcfconsolevideo/ [
check these blogs
http://msdn.microsoft.com/en-us/library/bb332338.aspx[^]
http://debugmode.net/2010/05/25/wcfconsolevideo/[^]
--NDK
尝试
http://msdn.microsoft.com/en-us/library/bb552363.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/ms734691.aspx [ ^ ]
http://www.dotnettech.net/BCL/CSharp/System.ServiceModel.ExceptionDetail/Class.aspx [ ^ ]
Try
http://msdn.microsoft.com/en-us/library/bb552363.aspx[^]
http://msdn.microsoft.com/en-us/library/ms734691.aspx[^]
http://www.dotnettech.net/BCL/CSharp/System.ServiceModel.ExceptionDetail/Class.aspx[^]
这篇关于在exe中调用WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!