I'm trying to deploy a WCF hosted on my SharePoint site but I can't find the address where my web service is deployed.
I have a confirmation message which said that my web service is well deployed but I can't reach it!
So my sharepoint site is: http://Sharepoint/sites/pwa
(it's a project site)
My web service is called Service1
and it builds in my namespace: Test.PS2016
I tried a lot of paths but I can't find my web service
It's still doesn't work, now I have a new issue, I saw the site but when I click on it I have an error message
So i have my ASP.NET Web Application which is called: Foo.PS2016.PSIExtension
With its iservice and Service (Very simple one):
Iservice:
namespace Foo.PS2016.PSIExtension
{
[ServiceContract]
interface IService
{
[OperationContract]
bool isAlive();
}
}
Service:
namespace Foo.PS2016.PSIExtension
{
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
internal class Service : IService
{
public bool isAlive()
{
return (true);
}
}
}
its Service.svc:
<%@ ServiceHost Language="C#" Debug="true" Service="Foo.PS2016.PSIExtension.Service" %>
and its webservice:
*<?xml version="1.0" encoding="utf-8"?>
<!--
-->
<configuration>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5.2"/>
<httpRuntime targetFramework="4.5.2"/>
<httpModules>
<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web"/>
</httpModules>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="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 -->
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true"/>
</system.webServer>
</configuration>*
and I have my SharePoint solution with its folder ISAPI=>PSI=>Foo.PS2016.PSIExtension.svc :
The Version, culture and PublicKey comes from a powershell command from the file: Foo.PS2016.PSIExtension.dll
So I have been stucking on this issue since this morning so if someone has some ideas to help me