c# - WCF Service SOAP Error -


i have wcf service application when run locally on dev machine works fine. hosted on iis following when trying access code:

an exception of type 'system.servicemodel.endpointnotfoundexception' occurred in mscorlib.dll not handled in user code  additional information: there no endpoint listening @ http://testsvc/service1.svc accept message. caused incorrect address or soap action. see innerexception, if present, more details. 

svcutil output gives me this:

<?xml version="1.0" encoding="utf-8"?> <configuration>     <system.servicemodel>         <bindings>             <basichttpbinding>                 <binding name="basichttpbinding_iservice1" />             </basichttpbinding>         </bindings>         <client>             <endpoint address="http://testsvc/service1.svc" binding="basichttpbinding"                 bindingconfiguration="basichttpbinding_iservice1" contract="iservice1"                 name="basichttpbinding_iservice1" />         </client>     </system.servicemodel> </configuration> 

if navigate http://testsvc/service1.svc prompted default page indicating ok.

here service's web.config:

<?xml version="1.0"?> <configuration>   <appsettings/>   <system.web>     <compilation debug="true" targetframework="4.0"/>     <httpruntime/>   </system.web>   <system.servicemodel>     <behaviors>       <servicebehaviors>         <behavior>           <!-- avoid disclosing metadata information, set values below false before deployment -->           <servicemetadata httpgetenabled="true" httpsgetenabled="true"/>           <!-- receive exception details in faults debugging purposes, set value below true.  set false before deployment avoid disclosing exception information -->           <servicedebug includeexceptiondetailinfaults="false"/>         </behavior>       </servicebehaviors>     </behaviors>     <protocolmapping>       <add binding="basichttpsbinding" scheme="https"/>     </protocolmapping>     <servicehostingenvironment aspnetcompatibilityenabled="false" multiplesitebindingsenabled="true"/>   </system.servicemodel>   <system.webserver>     <modules runallmanagedmodulesforallrequests="true"/>     <!--         browse web app root directory during debugging, set value below true.         set false before deployment avoid disclosing web app folder information.       -->     <directorybrowse enabled="true"/>   </system.webserver> </configuration> 

error event viewer:

webhost failed process request.  sender information: system.servicemodel.activation.hostedhttprequestasyncresult/43683950  exception: system.web.httpexception (0x80004005): service '/iservice1.svc' not exist. ---> system.servicemodel.endpointnotfoundexception: service '/iservice1.svc' not exist.    @ system.servicemodel.servicehostingenvironment.hostingmanager.ensureserviceavailable(string normalizedvirtualpath, eventtraceactivity eventtraceactivity)    @ system.servicemodel.servicehostingenvironment.ensureserviceavailablefast(string relativevirtualpath, eventtraceactivity eventtraceactivity)    @ system.servicemodel.activation.hostedhttprequestasyncresult.handlerequest()    @ system.servicemodel.activation.hostedhttprequestasyncresult.beginrequest()    @ system.runtime.asyncresult.end[tasyncresult](iasyncresult result)    @ system.servicemodel.activation.hostedhttprequestasyncresult.end(iasyncresult result)  process name: w3wp  process id: 1672 

not sure else try here.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -