c# - MVC with IIS 6 -
I have read some posts on this issue, but still MVC is not working on IVC 6 I 'IIS In aspnet_isapi.dll but when i get my maped url which looks like this
RouteTable.Routes.MapRoute ("action", "api.mvc") to get 404 Mvc is mapped / {controller} / {action} ", new {action =" index "}); I browse http://localhost/Web.Site/api.mvc/Users/List but get a 404 returned
for the same
// Local Host / Web.Site / api.mvc/users/
I have a UsersController with list and index that has a ViewAction
on both sides Anything else I need to do? Or I have forgotten something
Cheers
Also .............
Let me know that my default redirect The page is working in the website
For example, my default code is behind
HttpContext.Current.RewritePath (Request.ApplicationPath, False); IHttpHandler httpHandler = New MvcHttpHandler (); HttpHandler.ProcessRequest (HttpContext.Current); Then the default "/" request gains the route through this globally. Asax.cs
RoutingTable.Rout.mapRoot ("default", "", new {controller = "home", action = "index"}); It is not certain that if any
your default Try removing the .aspx page and make sure that you have this web. Config contains:
& lt; HttpModules & gt; & Lt; Add name = "UrlRoutingModule" type = "System.Web.Routing.UrlRoutingModule, System.Web.Routing" /> & Lt; / HttpModules & gt;
Comments
Post a Comment