When I am trying to run my application I am getting this exception
An exception of type 'System.ArgumentNullException' occurred in mscorlib.dll but was not handled in user code
In Global.asaxcs
file in GlobalConfiguration.Configure(WebApiConfig.Register);
line
Here is the code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace Bot_Application2_test
{
public class WebApiApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
GlobalConfiguration.Configure(WebApiConfig.Register);
}
}
}
How to solve this?