Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefano Beretta 102 posts 247 karma points
    Apr 12, 2021 @ 13:46
    Stefano Beretta
    0

    Use Umbraco services within external MVC project

    Hi everyone!

    I'm trying to split-up my application and I'd like to have the CMS separated from the API (so i can have my API working even if the cms is under maintenance).

    That's why I'm trying to initialize umbraco within an empty mvc5 project inside which i'll create my web api controllers. Inside those controllers i'm goind to use umbraco services (and custom services).

    I tried to use UmbracoSidecar without success.

    Does anyone faced the same scenario?

    Any help is very appreciated, thank you

    S

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Apr 12, 2021 @ 19:43
    Alex Skrypnyk
    1

    Hi Stefano

    You need "UmbracoCms.Core" package installed to use Umbraco services. Do you want to use the same database connection as Umbraco project?

    Thanks,

    Alex

  • Stefano Beretta 102 posts 247 karma points
    Apr 12, 2021 @ 19:49
    Stefano Beretta
    0

    Hi Alex! Thank you!

    Yes, I must use the same db..

    I installed the umbracocms.core but I can't find the correct way to start umbraco. Any piece of code or suggestions about that?

    Thank you again! ;)

Please Sign in or register to post replies

Write your reply to:

Draft