Service has zero application (non-infrastructure) endpoints

后端 未结 16 1698
抹茶落季
抹茶落季 2020-12-02 18:05

I recently created a WCF service (dll) and a service host (exe). I know my WCF service is working correctly since I am able to successfully add the service to WcfTestClient.

16条回答
  •  独厮守ぢ
    2020-12-02 18:21

    As another clue, that indeed fixed this issue in my case.

    I'm migrating some WCF services from a console application (that configures in code few WCF services) to an Azure WebRole to publish them in Azure. Every time I add a new service VS edits my web.config and adds this line:

    
    

    Well, with all the advices and answers above I couldn't make it work until I removed all the attributes in the serviceHostingEnvironment element. As you can see I'm not a WCF rockstar but I made it to work with the first Service just by configuring it as:

    
                    
    
                
    

    but when I added the second Service it stoped working and I realized that those attributes where there again.

    I hope it saves you time.

提交回复
热议问题