i created a project
added a model
employees table to my .dbml
created a controler
created a masterpage on views>shared
created new folder on views named it employees
created new view called list.aspx with scaffold template list
run the project and it returned the error below
browser says
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.
i also tried to use http://localhost/Employees/List on browser but it gave same error
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
the page stated possible causes i think can rule out the 1st and 2nd causes because i know list.aspx does exist and there are not typographical errors.. i dont know about the 3rd cause. help please thanks in advance
i also tried to use http://localhost/Employees/List on browser but it gave same error
It should be like this: http://localhost:40406/Employees/List, where 40406 is port number. If you donot change a port number in your project, it should be automatically assin.
jrtibayan
Member
198 Points
198 Posts
http 404 error why cant my browser find my page?
Apr 28, 2012 02:30 PM|LINK
im trying to learn how to make mvc project
i created a project
added a model
employees table to my .dbml
created a controler
created a masterpage on views>shared
created new folder on views named it employees
created new view called list.aspx with scaffold template list
run the project and it returned the error below
browser says
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.
i also tried to use http://localhost/Employees/List on browser but it gave same error
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
the page stated possible causes i think can rule out the 1st and 2nd causes because i know list.aspx does exist and there are not typographical errors.. i dont know about the 3rd cause. help please thanks in advance
jsiahaan
Contributor
2320 Points
595 Posts
Re: http 404 error why cant my browser find my page?
Apr 28, 2012 03:08 PM|LINK
It should be like this: http://localhost:40406/Employees/List, where 40406 is port number. If you donot change a port number in your project, it should be automatically assin.
Try to run your project, and then you can have this address http://localhost:xxxxx/, on your browser and you just add Employees/List after it, and it become http://localhost:xxxxx/Employees/List where xxxxx is your generated port number.
Have fun
Indonesian Humanitarian Foundation
jrtibayan
Member
198 Points
198 Posts
Re: http 404 error why cant my browser find my page?
Apr 29, 2012 12:17 AM|LINK
i see.. so i really have to put port number on browser address for it to work
thanks
jsiahaan
Contributor
2320 Points
595 Posts
Re: http 404 error why cant my browser find my page?
Apr 29, 2012 01:20 AM|LINK
Hi,
Is it work? If yes, you may close this case by mark the answer. It helps others knowing the answer when having the same problem.
Have fun
Indonesian Humanitarian Foundation