.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:

web.config

please me out if have ideas. thanks!

you can below steps host wcf in simple steps

  1. goto properties of application in visual studio
  2. click on web tab
  3. select radio button "use local iis web server"
  4. 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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -