2012-04-24 25 views
0

我有一个WPF程序,它使用由Visual Studio生成的Soap服务。WPF Progam中的App.config,在调试期间工作但未编译

当我在Visual Studio调试模式下它工作正常运行(我放的app.config合同)

但是当我运行它的目录中编译后,用的App.config我的编程'是我得到这个错误:

ERROR: Could not find endpoint element with name 'LodgeSoap' and 
contract 'SMSwebService.LodgeSoap' in the ServiceModel client configuration section. This might 
be because no configuration file was found for your application, or because no endpoint element 
matching this name could be found in the client element. 

回答

3

当您编译应用程序,它会在组件无论是在斌/调试或在bin/release目录。请确保文件夹中存在[应用程序名称] .exe.config文件,并且该文件中存在soap服务配置信息。

+0

优秀:)谢谢 – michael 2012-04-24 06:04:54

相关问题