• 1398/10/15

اشکال در قسمت GET: Admin/Pages// :

سلام. استاد بخشید در pages contrlerl   جلسه 19 در قسمت            GET: Admin/Pages    1 REQUEST    داده. و وقتی برنامه را اجرا میکنم ارور 404 می ده..هنگام اجرا این ارور را می دهد.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Admin/Pages/Index

 

 ایا مشکل از   ری کوست   هست .میشه راهنمایی کنید .ممنون
 

  • 1398/10/15
  • ساعت 07:24

سلام

۴۰۴ یعنی پیدا نمیکنه 

 


  • 1398/10/16
  • ساعت 20:44

استاد  ببخشید کدام  قسمت کد در index.cshtml یا pagescontroller.cs   را تغییر بدم؟


  • 1398/10/16
  • ساعت 21:13

قسمتی نباید تغییر کنه 

مسیر را بررسی کنید 

نام ها رو بررسی کنید


  • 1398/10/21
  • ساعت 01:02

استاد ببخشید در یک پروژه دیگر کد هام  و نوشتم و به غیر از صفحه index بقیه صفحات را با کد های شما مقایسه کردم حتیpagescontrroler.با اینکه صفحه pagegroup  کار میکند ولی صفحه page همان ارور رو می ده.البته  تو صفحه ErrorList هم   ارورهایی وجود داره .میشه راهنمایی بفرمایید ممنون .

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0119    'IPageRepository.GetPageById(int)' is a method, which is not valid in the given context    MyCms    C:\Users\Lenovo\Documents\MyCms\MyCms\Areas\Admin\Controllers\PagesController.cs    91    Active
 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS0103    The name 'pageReopsitory' does not exist in the current context    MyCms    C:\Users\Lenovo\Documents\MyCms\MyCms\Areas\Admin\Controllers\PagesController.cs    157    Active
 

Severity    Code    Description    Project    File    Line    Suppression State
Error    CS1061    'IPageRepository' does not contain a definition for 'Save' and no extension method 'Save' accepting a first argument of type 'IPageRepository' could be found (are you missing a using directive or an assembly reference?)    MyCms    C:\Users\Lenovo\Documents\MyCms\MyCms\Areas\Admin\Controllers\PagesController.cs    158    Active
 

 

 

 

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Admin/Pages/Index

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.3815.0


logo-enamadlogo-samandehi