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#.
精彩评论