I have installed Sensenet Services and Sensenet ECM Webpages packages in my .Net project using Nuget packages and followed the installation steps mentioned in the readme file.
My Global.asax' markup looks like
<%@ Application Codebehind="Global.asax.cs" Inherits="SenseNet.Portal.Global" Language="C#" %>
and my Global.asax.cs file looks like
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace SensenetDemoApplication
{
public class MvcApplication : System.Web.HttpApplication
{
public void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
public class Global : SenseNet.Portal.SenseNetGlobal
{
protected override void Application_Start(object sender, EventArgs e, HttpApplication application)
{
try
{
MvcApplication original = new MvcApplication();
original.Application_Start();
base.Application_Start(sender, e, application);
}
catch (Exception )
{
throw;
}
}
}
}
In debug mode the application starts and initializes all components. But when it gets to the implicit code for starting the application " base.Application_Start(sender, e, application);" the debugger doesn't returns back or no exception is throwing simply the application runs without an output infinitely. Could you please help me what is the issue with my code.