Richard Maher
2015-11-30 12:58:08 UTC
Hi,
I have been using MVC for a while and when creating projects would opt
for (VS2012) ASP.NET MVC 4 Basic. This all worked well and when I
published the Project I would get a lovely aspnet_client folder and
everything else under the project name folder.
Now when I opted for Web API under MVC I don't get that folder footprint
and, for the life of me, cannot get a simple Default Document to work in
IIS :-(
Yes I have tried: -
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id =
UrlParameter.Optional } // Parameter defaults
);
and added routes.IgnoreRoute("");
but I simply cannot get IIS to say a simple "Here is what to show in the
absence of a explicit document request".
Recap: - It works with MVC Basic. Doesn't work with MVC Web API. This
may be coincidence but erstwhile I cannae see a difference.
What the hell do you have to do to get a Web Server to serve up a
default file?
Cheers Richard Maher
I have been using MVC for a while and when creating projects would opt
for (VS2012) ASP.NET MVC 4 Basic. This all worked well and when I
published the Project I would get a lovely aspnet_client folder and
everything else under the project name folder.
Now when I opted for Web API under MVC I don't get that folder footprint
and, for the life of me, cannot get a simple Default Document to work in
IIS :-(
Yes I have tried: -
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id =
UrlParameter.Optional } // Parameter defaults
);
and added routes.IgnoreRoute("");
but I simply cannot get IIS to say a simple "Here is what to show in the
absence of a explicit document request".
Recap: - It works with MVC Basic. Doesn't work with MVC Web API. This
may be coincidence but erstwhile I cannae see a difference.
What the hell do you have to do to get a Web Server to serve up a
default file?
Cheers Richard Maher