Server Error in '/' Application. SOLVED!!! ÇÖZÜLDÜ!!
The view at '~/Areas/..../.../Index.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.InvalidOperationException: The view at '~/Areas/.../.../Index.cshtml' must derive from WebViewPage, or WebViewPage<TModel>.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
ÇÖZÜM YOLU:
hata veren .cshtml sayfamızın başına aşağıdaki kodu eklememiz gerekiyor.
@inherits System.Web.Mvc.WebViewPage
ENGLISH:
we need to add the following code at the beginning of our .cshtml page.
@inherits System.Web.Mvc.WebViewPage
Hiç yorum yok:
Yorum Gönder