Default page is not working
ASP MVC 1.0 being hosted on IIS 6.
I set up the wildcard filtering already.
When the user visits the root of the site, the home view appears but the jquery is non functional when trying to ajax query Home/SummaryView
If I browse to the act开发者_C百科ual view url /Home then every thing works.
Works fine in VS with the ASP .Net dev server.
I agree with the comment from David
Try replacing the Jquery script tag with something like this:
<script src="<%= ResolveUrl("~/Scripts/jquery-1.3.2.js") %>" type="text/javascript"></script>
it could be that your browser's javascript is turned off, you better check that in the first place
also ajax might not work because you have to register a MIME type for you services which are used with ajax try typing something like http://localhost/yousite/yourAJAXSERVICE.svc if you don't get an xml on you screen than you surely have to register the svc MIME TYPE
The default router is for IIS7 and you must configure your router in the Web.config file for IIS6 to work properly. I suspect that there is a problem with the jquery finding the path.
This should help you with the problem: http://blog.codeville.net/2008/07/04/options-for-deploying-aspnet-mvc-to-iis-6/
="<%= Url.Content("") %>" turned out to be the proper fix for links under iis 6
精彩评论