Quantcast
Channel: WCF, ASMX and other Web Services
Viewing all articles
Browse latest Browse all 555

.Net WCF service deploy error in IIS

$
0
0

With IIS installed and running w/ the localhost address functional, I have a WCF service.svc that I'm trying to deploy in IIS. I created an IIS application under the Default Web Site for the service using the .net 4.5 application pool, but when I try to browse the .svc file from within the IIS manager, the browser reports the following error "localhost is currently unable to handle this request".

If I click browse on the .svc file from within VS using iisexpress it resolves correctly to the WSDL metadata page and if I create an IIS application using the path in Visual Studio where the service folder resides it works and the url resolves. I don't understand why after I publish the service to another folder location and deploy this location that it doesn't work in IIS. Somehow it seems tied to the Visual Studio installed location.

Can someone help me understand why this is? I need to be able to publish this service along w/ the associated bin files to another client system and have it work. 

Web.config

<?xml version="1.0" encoding="utf-8"?><configuration><startup><supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.5"/></startup><appSettings></appSettings><system.serviceModel><client/><bindings><basicHttpBinding><bindingname="basicHttpBinding_testLink"maxReceivedMessageSize="20000000"/></basicHttpBinding></bindings><behaviors><serviceBehaviors><behavior><!-- To avoid disclosing metadata information, set the values below to false before deployment --><serviceMetadatahttpGetEnabled="true"httpsGetEnabled="true"/><!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information --><serviceDebugincludeExceptionDetailInFaults="false"/></behavior></serviceBehaviors></behaviors><!-- Service endpoints to expose/consume --><services><servicename="testLink.testManager"><endpointaddress="testService"binding="basicHttpBinding"bindingConfiguration="basicHttpBinding_testLink"contract="testLink.ITestManager"/><endpointaddress="mex"binding="mexHttpBinding"contract="IMetadataExchange"/></service></services><protocolMapping><addbinding="basicHttpBinding"scheme="http"/></protocolMapping><serviceHostingEnvironmentaspNetCompatibilityEnabled="false"multipleSiteBindingsEnabled="true"/></system.serviceModel></configuration>

Tnx in advance.


Viewing all articles
Browse latest Browse all 555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>