Hi All,
I have deployed a custom WCF service in ISAPI folder and mentioned the web.config entries. (this service is called through JSON).
It works fine in my dev environment. It works fine in the test environment. But, it doesn't work on the production. It's an Auto Complete functionality written using jquery. As soon as I enter a text, it prompts for username and password. In the logs, it states Access Denied.
I am not sure why this is happening in just production. The production is in an hosted environment and all the rest are in house. not sure, if this is going to have any impact on the way the web.config needs to be changed.
The environment is: SharePoint 2010 - Claims based authentication.
Here is the web.config entry for you reference. Any help would be kindly appreciated. (Note, the same web.config works fine in both classic and claims mode environment in my dev machine).
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
<bindings>
<webHttpBinding>
<binding name="customWebHttpBinding">
<security mode="None">
<transport clientCredentialType="Windows" />
</security>
</binding>
</webHttpBinding>
</bindings>
<services>
<service name="service.name.space" behaviorConfiguration="debug">
<endpoint address="testService" behaviorConfiguration="testServiceBehavior" bindingConfiguration="customWebHttpBinding" binding="webHttpBinding" contract="name.space.SongQueryService">
<identity>
<dns value="http://testsharepoint" />
</identity>
</endpoint>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="testServiceBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Regards, Jagan