asp.net,URL重写模块的web.config [英] asp.net, url rewrite module and web.config

查看:169
本文介绍了asp.net,URL重写模块的web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS7(Vista)的使用ASP.net与.NET 3.5与微软的URL重写模块。

i'm using ASP.net with .NET 3.5 on IIS7 (Vista) with the URL Rewrite Module from Microsoft.

这意味着,我有一个

<system.webServer>
    <rewrite>...</rewrite>
    ...
</system.webServer>

在web.config中的部分,但我得到一个警告,那system.webServer中的元素改写是不允许的。

section within the web.config, but i get a warning, that within the system.webServer the element "rewrite" is not allowed.

我如何配置我的系统,允许(甚至有智能感知)上的Web.config的重写部分?

How can i configure my system to allow (and maybe even have Intellisense) on the rewrite-part of the web.config?

感谢您
克里斯托夫

Thank you Christoph

推荐答案

我能够在Visual Studio 2010中得到这个工作。

I was able to get this working in Visual Studio 2010.

与鲁斯兰的帖子从这里开始并下载2.0智能感知文件。然后,只要按照他贴previously 这里的方向。我只落得这样做运行以下命令,指示鲁斯兰:

Start with Ruslan's post here and download the 2.0 IntelliSense file. Then, just follow the directions he posted previously here. All I ended up doing was running the following command as Ruslan instructs:

C:\\ download_directory \\ rewrite2_intellisense&GT; CSCRIPT UpdateSchemaCache.js

由于克里斯托夫在他的评论中指出,要确保在运行前更换 VS90COMNTOOLS VS100COMNTOOLS 在UpdateSchemaCache.js上面的命令,如果你正在使用Visual Studio 2010。

As Christoph points out in his comment, make sure you replace VS90COMNTOOLS with VS100COMNTOOLS in UpdateSchemaCache.js before running the above command if you are using Visual Studio 2010.

我并不需要重新启动Visual Studio。我加了&LT;&改写GT; 部分只适用的Web.config文件转型,因为有它在主Web.config中打破本地调试

I did not need to restart Visual Studio. I added the <rewrite> section only to the applicable Web.config transformation files, as having it in the main Web.config breaks local debugging.

这篇关于asp.net,URL重写模块的web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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