Add DotNet MVC project as virtual directory under Sitefinity Website
Hello Team,
I have developed my CMS system using Sitefinity Platform. I have couple of other projects (Applications) which are developed using Asp.net MVC. The projects should be configured as a Virtual directory on production server under the main Sitefinity Website. The structure should be as follow.
Sitefinity Main Website
>Virtual Directory 1
>Virtual Directory 2
>Virtual Directory 3
URL should be like http://mainwebsite/subapp1
I tried to configure one of my application as virtual directory under the main sitefinity site but it is not working. I am getting below error.
Hi Jesse
Try wrapping everything in the sitefinity webconfig (except the configsections element) in a location tag.
<location path="." inheritInChildApplications="false">
<system.web />
<system.webserver />
</location>
Ryan
Hello Ryan,
Could try the following:
Create an Global.asax file and inside its Application_Start event handler add this code:
Bootstrapper.Initialized += new EventHandler<Telerik.Sitefinity.Data.ExecutedEventArgs>(Bootstrapper_Initialized);
Then create the event handler:
void
Bootstrapper_Initialized(
object
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
RouteTable.Routes.Ignore(
"Folder"
);
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>