Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Cannot access my custom SVC webservice (hosted in IIS) outside from SharePoint (error "401 Unauthorized")

$
0
0

Hi,

i created a custom "TestService.svc" webservice and deployed it to ISAPI fodler. The web.config for my service looks so:

<configuration><system.serviceModel><services><service name="CustomersWorkplaceService.TestService" behaviorConfiguration="ServiceBehavior"><!--Service Endpoints --><endpoint name="mex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/></service></services><behaviors><serviceBehaviors><behavior name="ServiceBehavior"><serviceMetadata httpGetEnabled="true"/><serviceDebug includeExceptionDetailInFaults="false"/></behavior></serviceBehaviors><endpointBehaviors><behavior name="web"><webHttp/></behavior></endpointBehaviors></behaviors></system.serviceModel></configuration>

The connection to webservice from SharePoint pages works. It worked also without "web.config". I need now to test it outside from SharePoint, because it will be requested in the future from external application (not from sharepoint).

As i can see in firebug, i receive now a error "401 Unauthorized".

Please advice how i can resolve it, thanks! I'am sure that the problem in web.config file - something missing or something wrong... i tried already different options of parameter "binding", but no luck. 




Viewing all articles
Browse latest Browse all 8089

Trending Articles



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