I have a web site that is designed in asp.net and working fine in visual studio. However, when I host it from IIS, none of the links work. There is nothing fancy about the links
<li><a href = "#">Links</a>
<ul>
<li><a href="page1.aspx">Page1</a></li>
<li><a href="page2.aspx">Page2</a></li>
</ul>
</li>
this is not cause of hyperlink.
Set
<customErrors mode="Off"/>in your web.config to see the full error message. Otherwise, it is hard to get why you are getting an error.visit this link if you need to know more: http://weblogs.asp.net/scottgu/archive/2006/08/12/Tip_2F00_Trick_3A00_-Show-Detailed-Error-Messages-to-Developers.aspx