Server 2k3 缺少 .NET 4 的程序集
我一直在我的 Windows 7 机器上构建一个工作网站,该应用程序将部署到 2k3 计算机上。我终于让它工作了,网站将加载无扩展名的网址。现在我的问题是,当我进入由数据库驱动的站点部分时,没有可用的程序集。
我相信我只安装了 .NET 4 的客户端版本,并根据 这篇文章 我应该只需要下载并安装完整的框架。由于这是我们的生产盒,我想确认这一点。选择独立安装程序还是网络安装也很重要吗?
编辑:我刚刚在我们的服务器上打开了 Web 安装程序,它显示 .NET 4 已安装。关于可能导致我缺少程序集引用的任何提示?
I've been building a site for work on my Windows 7 box and the app will be deployed to a 2k3 machine. I FINALLY got it working where the site will load with the extensionless urls. Now my issue is when I get into the part of the site that is driven by our db there are no assemblies available.
I believe I only have the client version of .NET 4 installed and according to this post I should simply need to download and install the full framework. Since this is our production box I wanted to confirm this. Also would it matter in choosing the standalone installer or the web install?
EDIT: I just pulled up the Web Installer on our Server and it shows that .NET 4 is installed. Any tips on what might be causing my missing assembly reference?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
很难知道你遇到了什么。但是,.NET Framework 可能未在 IIS 中注册。有一个命令行工具可用于执行此注册。
请注意,如果您不小心,这可能会搞砸。所以..要小心。并且不要在获取实时流量的服务器上执行此操作。
请注意,本博客讨论的是与 v1.1 相比注册 v2.0。您将需要进入 4.0 目录来运行该版本的实用程序。例如 C:\windows\Microsoft.NET\Framework\v4.0.30319
Hard to know what you're bumping into. However it's possible that the .NET Framework isn't registered with IIS. There is a command-line tool that can be used to do this registration.
PLEASE note that this can screw stuff up if you aren't careful. So.. be careful. And don't do this on a server taking live traffic.
http://weblogs.asp.net/owscott/archive/2006/05/30/ASPNet_5F00_regiis.exe-tool_2C00_-setting-the-default-version-without-forcing-an-upgrade-on-all-sites.aspx
Note that this blog is talking about registering v2.0 compared to v1.1. You're going to want to go into the 4.0 directory to run that version of the utility. For example C:\windows\Microsoft.NET\Framework\v4.0.30319
对于 Web 应用程序,您需要完整的框架,
http: //www.microsoft.com/download/en/details.aspx?displaylang=en&id=17851
客户端配置文件适用于 WPF/WinForms 应用程序,现在这应该是常识,因为.NET 3.5 几年前推出,
http://msdn.microsoft.com/ en-us/library/cc656912.aspx
For web applications, you need the full framework,
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17851
Client profile is for WPF/WinForms applications, which should be a common sense now, as .NET 3.5 introduced this years ago,
http://msdn.microsoft.com/en-us/library/cc656912.aspx
最后只是将 VS 安装到服务器上。似乎是完成我所需要的最简单的方法,并且它正在工作,所以一切都很好。
Ended up just installing VS to the server. Appeared to be the easiest way to accomplish what I needed and it's working so all is well.