重写aspx后找不到WebResource.axd或ScriptResource.axd

时间:2014-07-07 07:47:32

标签: asp.net .net url-rewriting webforms updatepanel

重写aspx后删除.aspx文件结尾

  <rewrite>
    <rules>
        <rule name="RewriteASPX">
            <match url="(.*)" />
            <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
            <action type="Rewrite" url="{R:1}.aspx" />
        </rule>
    </rules>
</rewrite>

浏览器显示错误:

Failed to load resource: the server responded with a status of 404 (Not Found) :WebResource.axd or ScriptResource.axd 

Uncaught ReferenceError: Sys is not defined 

__browserLink/requestData/e9a9388e7386443f9dd605019e63

0 个答案:

没有答案