简体   繁体   English

是否可以在仅支持ASP.NET 2.0的服务器上运行ASP.NET 3.5 MVC 1.0应用程序?

[英]Is it possible to run an ASP.NET 3.5 MVC 1.0 app on a server that supports ASP.NET 2.0 only?

My host supports 我的房东支持

  • ASP ASP

  • ASP.NET v1.0/2.0 ASP.NET v1.0 / 2.0

  • ASP.NET Ajax ASP.NET Ajax

  • Access Database Support Access数据库支持

  • MS Server Database Support (SQL Server) MS Server数据库支持(SQL Server)

I know by copying some of the files it's possible to run a .NET 3.5 Windows Forms application without .NET 3.5 installed on the client. 我知道通过复制某些文件,可以在客户端上未安装.NET 3.5的情况下运行.NET 3.5 Windows Forms应用程序。 Does the same hold for ASP.NET 3.5 MVC 1.0? ASP.NET 3.5 MVC 1.0是否同样适用? Does MVC 1.0 support .NET 2.0? MVC 1.0是否支持.NET 2.0?

My host is Go Daddy in case it helps or matters. 我的房东是Go Daddy ,以防万一。

Mostly. 大多。 Scott Hanselman has an article describing exactly how to do this . 斯科特·汉瑟曼(Scott Hanselman)的一篇文章准确地描述了如何做到这一点 He notes: 他指出:

  • This workaround is offered with exactly zero warranty or support. 此解决方法提供的保修或支持完全为零。 It's as-is, just an FYI on the blog. 照原样,只是博客上的仅供参考。 If this hack deletes files or kills your cat, you have been warned. 如果此黑客删除了文件或杀死了猫,则已被警告。 No whining. 不要抱怨
  • In practice, no one really knows what might break. 在实践中,没有人真正知道会发生什么。 Microsoft didn't test this. 微软没有对此进行测试。
  • This just flat might not work for you. 这只公寓可能对您不起作用。 Sorry. 抱歉。

The trick: 诀窍:

You can copy System.Core from your .NET 3.5 development machine (this is the machine running VS2008 that you're developing on) to the /bin folder on your .NET 2.0 SP1 machine. 您可以将System.Core从.NET 3.5开发计算机(正在运行VS2008的计算机)复制到.NET 2.0 SP1计算机上的/ bin文件夹。 It's gotta be running .NET Framework 2.0 SP1 or this won't work. 必须运行.NET Framework 2.0 SP1,否则将无法正常运行。 System.Core is probably somewhere around "C:\\windows\\assembly\\GAC_MSIL\\System.Core\\3.5.0.0__b77a5c561934e089" on your machine, but you're a bad person for even asking. System.Core可能在计算机上的“ C:\\ windows \\ assembly \\ GAC_MSIL \\ System.Core \\ 3.5.0.0__b77a5c561934e089”附近,但您甚至都不敢问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM