开发者

Infopath + Class Libraray + Webservice = could not find default endpoint element that references contract

开发者 https://www.devze.com 2023-03-17 10:55 出处:网络
Ok, this question has been answered many times. But not for this scenario. I created new \'开发者_高级运维Infopath Form Template\' project, added new Class Library project to the solution and then cre

Ok, this question has been answered many times. But not for this scenario. I created new '开发者_高级运维Infopath Form Template' project, added new Class Library project to the solution and then created a Web Service proxy in that Class Library. When I try to create an instance of the Web Service client proxy I get this exception.

The usual solution is to copy the app.config into the Windows/Web application, but what about Infopath Form Template? I tried just adding the app.config to the project, but it didn't work.

Does anyone have an idea?

Thanks! Michael


What eventually worked for me: I created a solutions which contains only the Class Library project with the service. I edited the Form code using VSTA project (not form template project in regular Visual Studio), and copied there the app.config.

Works :)

0

精彩评论

暂无评论...
验证码 换一张
取 消