开发者

Viewbag not working on IIS 6 server 2003

Anyone got a clue why the ViewBag does not work开发者_JAVA技巧 in my MVC 3 application when deployed to an IIS6 server ? Everything else works fine. It does not even result in an error of some kind, it's just empty...

We're using an old server2003 server for internal test purposes sometimes and it would be nice to get it to work :).

EDIT: The code is working fine on my devmachine and on another IIS 7 server.

EDIT II: A recompilation and redeployment fixed it. Very odd.


Since ViewBag is a dynamic. The property does not have intellisense, just don't forget the dynamic property is case sensitive if you use c#.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜