What is wrong with my area routing in my bin deployed MVC4 app?

后端 未结 5 1922
我在风中等你
我在风中等你 2021-01-13 04:36

I have just deployed an MVC4 .NET 4.0 app to my web host, for \'live\' deployed testing. Non -area routes are working fine, e.g. my

@Html.ActionLink(\"Regis         


        
5条回答
  •  耶瑟儿~
    2021-01-13 05:03

    Do you happen to inherit PortableAreaRegistration from MvcContrib in any of your areas?

    We used to have exactly the same symptoms (works locally, not on server) until we removed all the PortableAreaRegistrations from Portable Areas and reverted to using simply AreaRegistration since MVC4 can register a portable area without any additional libraries.

提交回复
热议问题