EDIT!! I should add that this site runs perfectly locally. It's only when deployed that there's this issue
ORIGINAL POST:
I have a site I just put up http://splattonet0.web704.discountasp.net/
Which loads the Index view of the Home controller just fine. However, when one clicks the links to the left, the webserver is looking for the relative paths (ie E:\web\splattonet0\htdocs\Home\AboutMe) which is incorrect, since Home folder is of course under a folder called "Views"
I've made MVC sites before and have never had this problem. I can't see any difference between this or any other site I've done.
My code in my master template for the link section is as follows:
<div id="navContainer">
<ul id="mainNav">
<li><a href="/Home/Index" title="Home">Home</a></li>
<li><a href="/Home/AboutMe" title="About Us">About Me</a></li>
<li><a href="/Skills/Index" title="Skills">Skills</a></li>
<li><a href="/Home/Resume" title="Resume">Resume</a></li>
<li><a href="/Home/Experience" title="Experience">Experience</a></li>
<li><a href="/Home/SitesIveDesigned" title="Websites I've developed">My Websites</a></li>
<li><a href="/Home/References" title="References">References</a></li>
<li><a href="/Home/Projects" title="Projects">Projects</a></li>
<li><a href="/Home/Hobbies" title="Hobbies">Hobbies</a></li>
....etc
</ul>
</div>
I have the same problem with and without the preceeding foreslash in the href property. I've decided to keep it there since that is how my other sites (that work!) are styled.
Can anyone shed some light on this for me? Thanks!
FURTHER EDIT:
I have been asked to provide code from an MVC site on this server I have written and that works fine. The link code in the other site (YorkCentre) is the same style: <li><a href="/Controller/Action">text</a></li>
The code:
<li><a href="/News/Index">Archived News</a></li>
<li><a href="/Home/BoardOfDirectors">Board Of Directors</a></li>
<li><a href="/Media/Index">In The Media</a>
...
</ul>