This template worked for me right out of the box. But when I deployed it to AppHarbor, it failed. The log shows this error:
error CS0234: The type or namespace name 'Mvc' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
I actually got the same error using the mvc3 templates that ship with MonoDevelop. This is due to some missing tags in the Web.config file. Find this section:
<compilation debug="false" targetFramework="4.0">
<assemblies>
You'll need to add these tags:
<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
about the version of these assemblies. Should they match with the ones provided in dependent assembly tags or just use same as given
ReplyDeleteFor now, I'm staying with those version numbers. I realize they are behind the latest Microsoft versions for ASP.NET, but they were the latest I could find at the time for Mono. I'm hoping that this will all change, as Microsoft has started open sourcing more of the framework.
DeleteThis comment has been removed by the author.
ReplyDeleteYou made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us to read this... tor hydra
ReplyDeleteWhat a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much. hydra onion
ReplyDeleteYour content is nothing short of bright in many forms. I think this is friendly and eye-opening material. I have gotten so many ideas from your blog. Thank you so much. гидра онион
ReplyDelete