I was developing a web site for some time using mvc 3 and after deploy it in production nothing w开发者_如何学Pythonork because all the urls written the using Url.Action method are wrong. For example, I have this code:
@using (@Html.BeginForm("Add", "Persona")){ ...
this is the result in Dev:
<form action="/SIIJYP/Modulos/Personas/Naturales/Persona/Add" method="post">
and this is the result once deployed:
<form action="/SIIJYP/r.ashx/Personas?action=Add&controller=Persona" method="post">
What can be causing that?
Thank you
What version of IIS is the production environment running on?
If you are running on IIS 6 then Phil Haack has a good rundown (http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx) on what settings you need to perform (as does the asp.net/mvc website)
精彩评论