Is it possible to use Visual Studio 2010 to write code for shared hosting that is designed for .NET 3.5 and ASP.NET MVC 1.0? I've been trying for a while to get a project to run that uses only 1.0 features, and it just will not translate over very well.
+1
A:
Be sure and change the Target Framework in the project properties to 3.5 if your using the MVC 1. This should prevent some of the "translation issues" I think your describing.
Maybe you should clarify what "just will not translate over very well" means.
jfar
2009-12-16 20:36:14
Well, it doesn't run. It just says that the MVC .dll files won't work when I publish it to the web server.
Stacey
2009-12-16 20:40:07
Thats even vaguer... What says it wont' work, the exception message? Maybe you should post the actual error message?
jfar
2009-12-16 20:44:04
Sure. I will try to do that. I'll return shortly with more information, not at my machine at this very instant.
Stacey
2009-12-16 20:47:11
Apparently I had an installation error from the getgo, and it had nothing to do with Visual Studio.
Stacey
2009-12-24 20:07:25
A:
In addition you may try to re-include the reference to System.Web.Mvc. When I went from vs08 to vs10, and opened an old project, it still upgraded the reference to 2.0.0.0.
Luckily, I had a untouched version of the old project, which contained the old dll-file. So I deleted the new reference, and included the older version (1.0.0.0). Now it works fine^_^