G
Guest
I'm trying to figure out what I need to do to configure IIS 5.1 on XP Pro to
work when referencing WebResources.axd.
For example, I have an aspx script that works fine when run from Visual Web
Developer 2005 (Express Edition) built-in web server, but fails when run
under IIS (same file, same location).
I think I've tracked the problem to a failure of IIS to find
WebResources.axd. For example, if I point IE to the src centerated by the
Visual Web Developer server:
localhost:2317/WebResource.axd?d=sbmgIrZc4GkisHONnrRdTA2&t=632744679945312500
it returns the proper javascript code.
However, I point IE to the source generated by IIS:
localhost/WebResource.axd?d=-n9cHn2it-BTUPcvYkgh0g2&t=632744679945312500
I get a file not found error.
What do I need to do to configure IIS to properly work with WebResources.axd?
Any suggestions would be greatly appreciated.
Some comments on installation:
ASP.Net 2.0 was installed on XP via Windows Update
I checked web.config and it has the following line (I'm changing angle
brackets to square brackets for this post to prevent display problems):
[add path="WebResource.axd" verb="GET"
type="System.Web.Handlers.AssemblyResourceLoader" validate="True" /]
In IIS under application configuration mappings, there was no entry for .axd
I tried adding the following to see if it would help, but it didn't (I got
the same file not found problem I had when this entry wasn't there):
.axd c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
Limit to: GET,HEAD,POST,TRACE
Script Engine; Check if file exists
One work-around I've managed is to point my Visual Web Developer server to
localhost:2317/WebResource.axd?d=sbmgIrZc4GkisHONnrRdTA2&t=632744679945312500
get the javascript code, save it as a physical file WebResource.axd so that
when my .aspx script runs on IIS it's code will access the physical file and
run correctly, however, I know this is not a "good" way to make things work
Any suggestions as to how I can get my IIS configured properly so that it
returns the WebResource.axd file would be greatly appreciated.
Thanks.
work when referencing WebResources.axd.
For example, I have an aspx script that works fine when run from Visual Web
Developer 2005 (Express Edition) built-in web server, but fails when run
under IIS (same file, same location).
I think I've tracked the problem to a failure of IIS to find
WebResources.axd. For example, if I point IE to the src centerated by the
Visual Web Developer server:
localhost:2317/WebResource.axd?d=sbmgIrZc4GkisHONnrRdTA2&t=632744679945312500
it returns the proper javascript code.
However, I point IE to the source generated by IIS:
localhost/WebResource.axd?d=-n9cHn2it-BTUPcvYkgh0g2&t=632744679945312500
I get a file not found error.
What do I need to do to configure IIS to properly work with WebResources.axd?
Any suggestions would be greatly appreciated.
Some comments on installation:
ASP.Net 2.0 was installed on XP via Windows Update
I checked web.config and it has the following line (I'm changing angle
brackets to square brackets for this post to prevent display problems):
[add path="WebResource.axd" verb="GET"
type="System.Web.Handlers.AssemblyResourceLoader" validate="True" /]
In IIS under application configuration mappings, there was no entry for .axd
I tried adding the following to see if it would help, but it didn't (I got
the same file not found problem I had when this entry wasn't there):
.axd c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
Limit to: GET,HEAD,POST,TRACE
Script Engine; Check if file exists
One work-around I've managed is to point my Visual Web Developer server to
localhost:2317/WebResource.axd?d=sbmgIrZc4GkisHONnrRdTA2&t=632744679945312500
get the javascript code, save it as a physical file WebResource.axd so that
when my .aspx script runs on IIS it's code will access the physical file and
run correctly, however, I know this is not a "good" way to make things work
Any suggestions as to how I can get my IIS configured properly so that it
returns the WebResource.axd file would be greatly appreciated.
Thanks.