Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
When I moved ASP.NET MVC5 project folder from "D:\EAMser\EAMser\EAMser" to "E:\EAMser", the views are not properly linked with their respective controllers. When i compile the page, the URL generated is incorrect, such as "https://localhost:44312/Views/Home/About.cshtml" when i correct it on explorer link to "https://localhost:44312/Home/About".It is work.

when i go go to view About and click Right-click i can not show go to controller.

How i can resolved it

Thank you for helping me.

What I have tried:

Update the project references
Rebuild the solution
Posted
Updated 8-Dec-23 9:04am
v2
Comments
Richard MacCutchan 8-Dec-23 14:04pm    
Since you have changed the project layout you have probably destroyed a number of links. So you need to go through the complete project to see which ones are causing problems.
[no name] 8-Dec-23 14:54pm    
Worst case, you copy the parts (one at a time) into a new project. ("Add item") Compare that to time already spent / not used.
Richard Deeming 11-Dec-23 4:28am    
MVC doesn't link to views; it links to controller actions.

If you're trying to link directly to a view, then you're doing it wrong.

But since there's virtually no details here, nobody can help you.
Maciej Los 30-Dec-23 13:22pm    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900