仅使用 DLL 在 IIS6 上运行 MVC2
我关注过有关在 IIS6 上运行 MVC2 应用程序的文章,但所有这些文章都涉及在服务器上安装 MVC2。
是否有关于直接安装 Framework 3.5、设置 IIS6 以及仅复制所需 dll 的已知文章/步骤?
I have followed articles on running MVC2 apps on IIS6, but all of those deal with MVC2 being installed on the server.
Are there are known articles/steps on having a straight install of Framework 3.5, setting up IIS6, and just copying required dll's across?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为唯一的区别是,它们不是从 GAC 运行这些程序集,而是驻留在您的
/bin
目录中。尝试将 MVC 程序集 (Mvc/Routing/Abstractions) 设置为将其CopyLocal
属性设置为 true,然后尝试部署到未安装 MVC 的 IIS6 计算机。CopyLocal
将强制将这些程序集引用复制到您的输出目录。唯一可能导致问题的是您是否在中等信任度下运行,因为我不确定是否有任何较低级别的 WebForms 页面编译机制需要提升信任度(如果是的话,它们将被授予更高的信任度)他们是 GAC 的)。
The only difference I would imagine is that instead of running those assemblies from the GAC, they instead reside in your
/bin
directory. Try setting the MVC assemblies (Mvc/Routing/Abstractions) to have theirCopyLocal
property set to true, and then try deploying to an IIS6 machine that doesn't have MVC installed. TheCopyLocal
will force those assembly references to be copyed to your output directory.The only thing which may cause an issue is if you are running in Medium trust, as I'm not sure if any of the lower level WebForms page compilation mechanism require elevated trust (which they would be granted if they were GAC'd).