0

As the title suggested, I'm getting a StatusCode NotFound (404).

Everything as far as I know has been setup correctly.

Been reading and following this to a T:

https://doc.sitecore.com/en/developers/82/sitecore-experience-platform/sitecore-services-client.html

I can authenticate but when I try to retrieve or post an item I get NotFound statuscode.

Our solution has TDS and Glassmapper installed. I'm unaware of any issues caused by these but if anyone knows something please let me know.

At first I'd figured there might be something wrong with routing but as I said before I'm able to login. Or is this setup in a different way?

2 Answers 2

0

It turned out on of the config files had an unneccesary patch which we didn't need.

  <excludedAssemblies hint="list:AddExcludedAssembly">
            <excludedAssembly id="Sitecore.Services.Infrastructure.Sitecore" patch:after="excludedAssembly[@id='RazorGenerator.Mvc']">Sitecore.Services.Infrastructure.Sitecore</excludedAssembly>
          </excludedAssemblies>

After removing this AND obliberating the cache according to this post WebAPI Controllers not being found

I was able to finally got it to work.

0

Make sure you have the following setting in your Sitecore.Services.Client.config file.

Set the value for Sitecore.Services.SecurityPolicy setting as ServicesOnPolicy.

Check if the ServicesAPI user has Administrator access. You can do this in User Manager-> ServicesAPI -> Edit -> enable the checkbox for Administrator.

1
  • I did that. Thanks but I've found the answer. Oct 1, 2021 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.