.net - WCF service works in WCF Client but not in IIS -
i have wcf service uses microsoft.synchronization.syncagent synchronize database on windows ce device. works great when run service visual studio 2008 when host in iis (using windows 10 way), sync fails targetinvocationexception. if browse service http://192.168.1.34:8711/inventorycachesyncservice/inventoryservicelibrary.inventorycachesyncservice.svc
expected "you have created service." page, if use http://192.168.1.34:8711/inventorycachesyncservice/wtf
endpoint service mentioned (as url client web reference) 404 error - although url works fine when hosting in visual studio's wcf test client. have tried every alteration can think of url in win ce client i'm getting nowhere. i'm new wcf services, i'm missing incredible simple. here's web.config file:
please me out if have ideas. thanks!
you can below steps host wcf in simple steps
- goto properties of application in visual studio
- click on web tab
- select radio button "use local iis web server"
- click on "create virtual directory" button
virtual directory created local system.
if want host wcf in other server, can copy same folders server , can create virtual directory same kind of physical path
Comments
Post a Comment