IIS防爆preSS和ASP.NET 2.0 [英] IIS Express and ASP.NET 2.0

查看:144
本文介绍了IIS防爆preSS和ASP.NET 2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关IIS 7.5防爆preSS,我知道我可以在CLR版本设置为2.0使用的/clr:v2.0命令行参数的命令行的网站。对于我的生命,我找不到,说明如何使用/现场参数时指定的文档。我还以为它会在ApplicationHost.config文件,但该死的,如果我能找到它。由于CLR版本是网站具体的我本来以为走进了一节,但...耸肩。

感谢您的帮助,您可以提供。


解决方案

  1. 您不能使用 / CLR 开关与 /网站开关

  2. 您可以CLR版本设置为一个应用程序,而不是一个网站(一个网站可以有多个应用程序)

  3. 要CLR版本设置为一个应用程序,更改应用程序的applicationPool的 managedRuntimeVersion
    (编辑位于%USERPROFILE%\\我的文档\\ iis的前preSS \\设置\\ 对ApplicationHost.config 并设置applicationPool的 managedRuntimeVersion 以期望的值)。

如果您已经安装了WebMatrix中,您可以通过用户界面做到这一点。
1.打开WebMatrix中
2.打开网站
3.单击设置选项卡
4.选择.NET Framework版本

For IIS 7.5 Express, I understand that I can set the CLR version to 2.0 for a site from the command line using the /clr:v2.0 command line argument. For the life of me, I cannot find the documentation that explains how to specify it when using the /site argument. I would have thought it goes in the applicationhost.config file but damned if I can find it. Since the CLR version is website specific I would have thought it went into the section but...shrug.

Thanks for any help you can provide.

解决方案

  1. You CANNOT use /clr switch with /site switch
  2. You can set clr version to an application, but not a site (A site can have multiple applications)
  3. To set clr version to an application, change the application's applicationPool's managedRuntimeVersion (Edit the applicationhost.config located in %userprofile%\my documents\iis express\config\ and set the applicationPool's managedRuntimeVersion to desired value).

If you have installed WebMatrix, you can do it through UI. 1. Open WebMatrix 2. open site 3. Click Settings tab 4. select the .net framework version

这篇关于IIS防爆preSS和ASP.NET 2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆