0

I have an mvc5 project with web apis, i am trying to use token authentication so it said that i add startup.cs class and remove my global.asax file. i copied my RouteConfig.RegisterRoutes(RouteTable.Routes); into my startup file and removed the global.asax file, cleaned and rebuilt the solution. now it is working fine on localhost, but when i upload my bin files to the host (godaddy) it shows that parser error. i tried to remove all bin files from godaddy and reupload them, same error. here is my new startup.cs class:

[assembly: OwinStartup(typeof(IntegratedSolution.API.Startup))]
namespace IntegratedSolution.API
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            HttpConfiguration config = new HttpConfiguration();
            WebApiConfig.Register(config);
            app.UseWebApi(config);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
    }
}

and i checked the solution explorer, it doesn't have the global file.

0 Answers0