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

Copper Contributor

Hello,

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 :

https://social.technet.microsoft.com/wiki/contents/articles/24194.sharepoint-2013-create-a-custom-wc...

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=16.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>

 

Any one have an idea how to fix it ??

 

Thanks,

0 Replies