This project is read-only.

The directive 'ServiceHost' can be only specified once

Mar 31, 2010 at 3:12 PM

Hi, i'am doing everything how it is specified in install guide, but when trying to test the service, I always get the exception shown bellow:

 

Parser Error Message: The directive 'ServiceHost' can be only specified once.

Source Error:


Line 1:  <%@Assembly Name="CMISForSharePoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9571f7c27ce083b0"%>
Line 2:  <% @ServiceHost Service="CMISForSharePoint.CmisServices.NavigationService.NavigationService"%>
Line 3:  <% @ServiceHost Service="CMISForSharePoint.CmisServices.RepositoryService.RepositoryService" %>

 

Can you provide me some additional guide how to install cmis4sharepoint?

Apr 1, 2010 at 3:12 PM

Hi sezo,

 

The error is coming from the file “CMISForSharePoint.svc”. that’s because an svc file must have only one “@ServiceHost”.

This is because you are using the svc file provided with the solution which is provided only for development/informative purposes.

To get the service you should create your own “.svc” file as documented in the quick start guide (cref: “Step3:Create the .svc file “).

 

Hope this will help you in running CMIS4SharePoint.

 

Best Regards