iis 7 - wcf service hosted under IIS address -


i have wcf service hosted under iis. have following configuration:

<services>       <service name="billboardservices.loginservice" behaviorconfiguration="loginservicebehavior">         <host>           <baseaddresses>             <add baseaddress="http://myip/loginservice/" />           </baseaddresses>         </host>         <endpoint address="" name="loginservice" binding="basichttpbinding" contract="billboardservices.iloginservice" />           <endpoint contract="imetadataexchange" binding="mexhttpbinding" address="mex" />       </service> 

if enter http://myip/loginservice/, 404. if enter http://myip/service1.svc, service metadata.

what changes configuration need in order service accessible through nice url?

thank you.

in order have , extensionless service, need use wcf 4 , init routing engine in global.asax file so:

void application_start(object sender, eventargs e)     {         registerroutes();     }      private void registerroutes()     {         // edit base address of service1 replacing "service1" string below         routetable.routes.add(new serviceroute("service1", new webservicehostfactory(), typeof(service1)));     } 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -