문제

In my views (velocity template mode) I call $Url.Link helper, in Visual Studio with cassini it work but when I deploy my webapp on mono/nginx/ubuntu url are well not formed, I get only the controler's action path.

it's seems it come from Url.For method and its compatibility with monoserv

도움이 되었습니까?

해결책

I remember having to replace the DefaultUrlBuilder to make an app run on mono. I had to override the ConvertRouteParams method to create a Hashtable without the StringComparer.InvariantCultureIgnoreCase. HTH

Checkout line 397: DefaultUrlBuilder

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top