G
Guest
We are getting WebForm_DoPostBackWithOptions is not defined and other Java
script errors related to WebResource.axd file. I narrowed down the problem
and found out the cause but can't come up with a solution based on our
application setup. Here is is how our web sites configured on IIS.
Multiple web sites points to the same IP address and some of these web sites
has sub-virtual directories, for example mystore.com is a web site that has
one or more virtuals configured store1, store2, etc... so mystore.com/store1
and mystore.com are two different URLs.
Website:somestore.com
website: newstore.com
website: Mystore.com
virtual:store1
virtual:store2
virtual:test1
Now, mystore.com is working fine with no errors because it is locating
WebResource file via this path "/WebResource.axd/...." whereas
mystore.com/store1 causes Javascript errors because it is trying to locate
javascripts built-in through this path "/store1/WebResource.asd/...."
<script
src="/store1/WebResource.axd?d=GDH9bwi9ljRPaO1zUbDGCA2&t=633165740660873260"
type="text/javascript"></script>
Which doesn't exist. I checked the mappings of both website and its virtual
and .axd is mapped to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
Is there is a way to control the path to WebResource.axd page so it doesn't
add the virtual name to the path? Or do I need to change some parameters in
IIS?
Note: we are getting these errors now because we recently upgraded our
application to VS2005.
script errors related to WebResource.axd file. I narrowed down the problem
and found out the cause but can't come up with a solution based on our
application setup. Here is is how our web sites configured on IIS.
Multiple web sites points to the same IP address and some of these web sites
has sub-virtual directories, for example mystore.com is a web site that has
one or more virtuals configured store1, store2, etc... so mystore.com/store1
and mystore.com are two different URLs.
Website:somestore.com
website: newstore.com
website: Mystore.com
virtual:store1
virtual:store2
virtual:test1
Now, mystore.com is working fine with no errors because it is locating
WebResource file via this path "/WebResource.axd/...." whereas
mystore.com/store1 causes Javascript errors because it is trying to locate
javascripts built-in through this path "/store1/WebResource.asd/...."
<script
src="/store1/WebResource.axd?d=GDH9bwi9ljRPaO1zUbDGCA2&t=633165740660873260"
type="text/javascript"></script>
Which doesn't exist. I checked the mappings of both website and its virtual
and .axd is mapped to
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll
Is there is a way to control the path to WebResource.axd page so it doesn't
add the virtual name to the path? Or do I need to change some parameters in
IIS?
Note: we are getting these errors now because we recently upgraded our
application to VS2005.