2012-04-24 23 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

相關問題