我在IIS7(Vista)上使用ASP.net和.NET3.5以及微软的URL重写模块.
这意味着,我有一个
<system.webServer>
<rewrite>...</rewrite>
...
</system.webServer>
部分,但是我得到一个警告,在system.webServer中不允许元素"rewrite".
我如何配置我的系统以允许(甚至可能有Intellisense)重写web部分.配置?
非常感谢.
我在IIS7(Vista)上使用ASP.net和.NET3.5以及微软的URL重写模块.
这意味着,我有一个
<system.webServer>
<rewrite>...</rewrite>
...
</system.webServer>
部分,但是我得到一个警告,在system.webServer中不允许元素"rewrite".
我如何配置我的系统以允许(甚至可能有Intellisense)重写web部分.配置?
非常感谢.
我能够在VisualStudio2010中实现这一点.
从Ruslan的POST here开始,下载2.0 IntelliSense文件.然后,就按照他之前贴的here条路由走就行了.我最终所做的就是按照Ruslan的指示运行以下命令:
C:\download_directory\rewrite2_intellisense>cscript UpdateSchemaCache.js
个
正如Christoph在他的 comments 中指出的那样,如果您使用的是Visual Studio2010,请确保在运行上述命令之前将UpdateSchemaCache.js中的VS90COMNTOOLS
替换为VS100COMNTOOLS
.
我不需要重新启动Visual Studio.我只将<rewrite>
部分添加到适用的Web.config转换文件中,因为将其放在主Web.config中会 destruct 本地调试.