asp.net - ScriptManager's AXD resources not found because of UrlRewrite -
i using urlrewrite
remove .aspx
files. rule using:
<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>
in 1 of web forms use scriptmanager
. when page loads, .axd
files being linked too, example:
webresource.axd?d=long_string
but, tells me above file not found, , requested url was: /webresource.axd.aspx
i thought conditions in rule supposed filter case this.
i managed solve one.
i changed rule way:
<match url="^[^.]+$" />
and doesn't apply rule files 1 mentioned, , extension-less files.
Comments
Post a Comment