'SampleApp.MvcApplication' is not allowed here because it does not extend class 'Microsoft.WebPages.WebPageHttpApplication'

StackOverflow https://stackoverflow.com/questions/3619145

  •  26-09-2019
  •  | 
  •  

문제

I have created a sample project using ASP.NET MVC 3 Web Application (Razor) template. When I run my application I get this error

 'SampleApp.MvcApplication' is not allowed here because it does not extend class 'Microsoft.WebPages.WebPageHttpApplication'

Where should i look for the problem?

도움이 되었습니까?

해결책

It looks to me like you have both MVC 3 Preview 1 and WebMatrix Beta installed. Unfortunately those 2 don't play nicely together. If that is not the case let me know and we can troubleshoot further.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top