Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Using CMS APIs from outside of ASP.NET Application View modes: 
User avatar
Member
Member
john.puopolo-rapidbuyr - 1/19/2011 7:21:11 AM
   
Using CMS APIs from outside of ASP.NET Application
Hi...

Is it possible to use the Kentico APIs from outside an ASP.NET application? We have some C# console applications that want to read documents from the CMS repository. Is this possible?

Thanks,
John

User avatar
Member
Member
kentico_michal - 1/20/2011 3:20:03 AM
   
RE:Using CMS APIs from outside of ASP.NET Application
Hi John,

Yes, it is possible to use Kentico CMS outside CMS project. I would recommend you to read following section from Developers’s guide, where this subject is described: Using API and CMS Controls outside CMS project

Best regards,
Michal Legen

User avatar
Member
Member
dima - 1/20/2011 3:25:23 AM
   
RE:Using CMS APIs from outside of ASP.NET Application
I would be really concerned about using Kentico API from a console application as it wouldn't have HttpContext - its even not possible to add a reference to System.Web assembly.

User avatar
Member
Member
john.puopolo-rapidbuyr - 1/20/2011 6:43:20 AM
   
RE:Using CMS APIs from outside of ASP.NET Application
Hi...

I want to manipulate the site (add directories and files) and do a few other maintenance tasks that do not rely on HTTP context being present. My experiments so far have been successful. Thank you for your reply.

John