In Visual Studio warning I have the following errors in my forms for my view with HTML like:
<form id="hitgraph" action="/HitResponseGraph" method="get">
/HitResponseGraph is a view in MVC and the form works fine. How do inform Visual studio that this view exists so it doesn’t warn on this?
I ran into this problem when I moved a project from a development system to a live server.
While I first thought that Html.BeginForm() was little more than a macro to build a form tag, it turns out that its use is the solution — it internally corrected the relative paths.