Issue to consume a Custom WCF REST Service Hosted in SharePoint 2016 and Deployed in a WSP

Occasional Visitor


I'm trying to use a customized WCF service that I deployed  on Sharepoint under ISAPI folder, for that I followed the steps in this article for sharepoint 2013 because I didn't find any documentation for 2016 :

The error that I met each Time I browse to my service from IIS is that : 


Sorry, something went wrong

The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)


The only modification I have done, is the update of dll version in my SVC file : 

<%@ ServiceHost Language="C#" Debug="true"
    Service="Project.MsiWcf, $SharePoint.Project.AssemblyFullName$"
    CodeBehind="MsiWcf.svc.cs"    Factory="Microsoft.SharePoint.Client.Services.MultipleBaseAddressBasicHttpBindingServiceHostFactory
    Microsoft.SharePoint.Client.ServerRuntime, Version=, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>


Any one have an idea how to fix it ??



0 Replies