How to access a Sitecore item from an offline WCF service

I have a Sitecore-independent WCF service (external sitecore folder structure) in which I create new items in the main sitecore database. In doing so, I get configuration errors and a null database.

Below is the code, link to the sitecore.kernel directory and bin.

Reference in VS project

Bin folder

Code

Exception

Exception Details:

{"Could not load file or assembly 'Sitecore.Kernel, Version=7.0.0.0, Culture=neutral,     PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.":"Sitecore.Kernel, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null"}

Any help accessing Sitecore from outside the Sitecore folder structure.

+4
source share
3 answers

You say that you have a WCF service regardless of Sitecore, but according to your code, it is far from independent of Sitecore.

WCF Sitecore, Sitecore .. WCF WCF Sitecore Sitecore Item Web Api - Sitecore .

Sitecore Item Web Api: http://sdn.sitecore.net/upload/sdn5/modules/sitecore%20item%20web%20api/sitecore_item_web_api_developer_guide_sc65-66-usletter.pdf

+3

Source: https://habr.com/ru/post/1527767/


All Articles