开发者

links are broken after install my web application built with asp mvc

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&amp;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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜