How to Integrate Orchard CMS with Asp.Net MVCForum

How to Integrate Orchard CMS with Asp.Net MVCForum

Orchard is a Content Management System (CMS) for managing dynamic content. It is very useful for making a dynamic site, dynamic forms etc. We had implemented site in Orchard. We wanted to implement MVCForum in the orchard site for posts, comments, and discussions. So we had created child application in our original site but when I tried to run the child application it was giving an error of razor views.

Finally, we found that the problem occurred because of Web.Config of Main ( i.e. Orchard ) project.

When we add MVCForum as a child application it will also run The Web.Config of main (i.e. Orchard )  project. Orchard uses a different version of razor views DLL than MVCForum. To overcome this issue, we have to set the Location Path in the main (i.e. Orchard ) project Web.Config which specifies not to inherit configurations in child application ( i.e. MVCForum ). So the conflict between the different versions of razor views DLL will be resolved and your child application will run successfully!!

The following code shows how to set the location Path for the following sections in the Main project Web.Config.

Also Read: Top 5 Open Source Content Management Systems using ( Asp.net core MVC )


[html] <location path=”.” inheritInChildApplications=”false”>
<system.web.webPages.razor>
</system.web.webPages.razor>
<system.web>
</system.web>
<system.webServer>
</system.webServer>
</location>[/html]		
	

I hope that this article will make your orchard integration as easy as. if you are finding any difficulties with your integration then your can leave a comment below.

Article by

Jignasha Rathod

Jignasha Rathod is a Technical Analyst with over a decade of experience in the IT industry. She excels in .NET, CI/CD, GitHub, Azure. and has a proven track record in project management, leadership, API integrations, and Azure AI and ML.net . Jignasha is focused on performance enhancement and possesses deep domain expertise in open source CMS ( umbraco, orchard cms ) accounting, CRM, ERP (SAP, NetSuite, Business Central) and e-commerce. Her extensive experience spans across both B2B and B2C e-commerce platforms, and she is leveraging AI and ML technologies to drive innovation and efficiency in client projects.