Greetings, we have been running EO on our ASP.NET WebForms site for years now with no problem. However, recently we started updating our web files to also support MVC. One of the updates that we needed to do was modify our global.asax file...and in MVC the file has a code behind global.asax.cs.
Anyways, we copied the license key info from the global.asax to the global.asax.cs file but now it put all of our stuff in "Trial Mode". Are we doing something wrong? I tried just keeping our old global.asax file (and not having a code-behind) but even after trying to import namespaces I can't get MVC to work. So at this point either MVC works or EO works...I can't get them both to work. :(
//---
//OLD GLOBAL.ASAX FILE
//---
<%@ Application Language="C#" %>
<script runat="server">
void Application_Start(object sender, EventArgs e)
{
//Essential Objects Web Objects License (2015)
EO.Web.Runtime.AddLicense(
"....");
//Essential Objects PDF License (2015)
EO.Pdf.Runtime.AddLicense(
"...");
//Turn Off Client-Side Debugging
EO.Web.Runtime.DebugLevel = 0;
}
</script>
Code: C#
//---
//NEW GLOBAL.ASAX.CS File
//---
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.Security;
using System.Web.Http;
using System.Web.Optimization;
namespace myApp.mvc
{
public partial class MvcApplication : System.Web.HttpApplication
{
/// <summary>
/// Application Start
/// </summary>
protected void Application_Start()
{
//Essential Objects Web Objects License (2015)
EO.Web.Runtime.AddLicense(
"...");
//Essential Objects PDF License (2015)
EO.Pdf.Runtime.AddLicense(
"...");
//Turn Off Client-Side Debugging
EO.Web.Runtime.DebugLevel = 0;
//--------------------------
//MVC-Related Configuration
//--------------------------
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
}
Thanks in advance for your assistance!