Create a WCF directory in SharePoint¶
We will create a directory on the SharePoint site hosted with IIS 7.0.
- Create a physical folder in the same virtual directory that hosts SharePoint (to inherit permissions) for example I created the directory:
C: \ Inetpub \ wwwroot \ wss \ VirtualDirectories \ 80 \ _wcf - Through IISmanager verify that the file exists, otherwise create a new one bearing the same name (warning: do not convert to a virtual directory)
- Execute the following commands to register WCF on Windows Server and IIS, the first is to Save the namespace ServiceModel and the second is to add some specific extensions bindings forREST services.
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" -r -y"C:\WINDOWS\Microsoft.NET\Framework\v3.5\WFServicesReg.exe" /c