I have a new MVC-2 project where I added the 'area' member. I created a controller named: 'profile'.
This works: http: // localhost: 1234 / Profile (loads the index () function)However, it doesn’t: http: // localhost: 1234 / Member / Profile (I get 404 error)
Did I miss something?
No reason for this to work. From the default project template:
Member
~/Areas/Member/Controllers
ProfileController
Index
~/Areas/Member/Views/Profile
Index.aspx
/member/profile
Global.asax.cs, , Application_Start
AreaRegistration.RegisterAllAreas();
If it http://localhost:1234/Profileworks, you may need to check your namespace ProfileController. It should be:
http://localhost:1234/Profile
namespace YourProjectName.Areas.Member
Source: https://habr.com/ru/post/1775772/More articles:Renaming Routing Helpers in Rails 3 Routing - ruby | fooobar.comSilverlight 4: chart management - chartsAn effective way to find pairs that satisfy a certain condition - wolfram-mathematicabest practices for using window.open () - javascriptHow to assign the EntityCollection property to another property? - c #NDK OpenGL undefined link to glVertexPointer - android2-мерные массивы в C - cВыполнение телефонного звонка из приложения iPhone - iphoneHow to get CustomValidators to fire simultaneously with RequiredFieldValidators - c #For some reason there is no return value from set.add - pythonAll Articles