Saurav Gurjar

Saurav Gurjar

  • 1k
  • 385
  • 11.3k

i am facing problem during build my asp.net mvc application

Jan 13 2020 11:38 PM
Error
 
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
 
Parser Error Message: Could not load type 'SpareLoanMvc.MvcApplication'.
 
Source Error:
 
Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="SpareLoanMvc.MvcApplication" Language="C#" %>
 
Global.asax.cs
  1. using System.Web.Http;  
  2. using System.Web.Mvc;  
  3. using System.Web.Optimization;  
  4. using System.Web.Routing;  
  5. namespace SpareLoanMvc  
  6. {  
  7. public class MvcApplication : System.Web.HttpApplication  
  8. {  
  9. protected void Application_Start()  
  10. {  
  11. AreaRegistration.RegisterAllAreas();  
  12. GlobalConfiguration.Configure(WebApiConfig.Register);  
  13. FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);  
  14. RouteConfig.RegisterRoutes(RouteTable.Routes);  
  15. BundleConfig.RegisterBundles(BundleTable.Bundles);  
  16. }  
  17. }  
  18. }  

Answers (4)