However, I am using ASP.NET 2.0 - but not generating a solution to
develop because I am working with integrating with diverse legacy code
(in other words, I am develop ASP.NET 2.0 pages in the IDE but then
drop them into the folders where the other pages/files live).
In this scenario, I note that adding a .NET 2.0 validator causes
problems as a result of the webresource.axd -- and its accompanying .js
file -- not being generated (from what it looks like is happening to
me...).
I've googled and msdn'd and can't come up with more information, and a
solution, to my problem, nor even a better understanding of what is
going on.
Any help?
Thank you.
Jules
Try out this if you are using any Compression module
Check it out in your application web.config for Compression module
<httpModules>
<add name="CompressionModule" type="blowery.Web.HttpCompress.HttpModule, blowery.web.HttpCompress"/>
<add name="UehHttpModule" type=" ASPUnhandledException.UehHttpModule, ASPUnhandledException"/>
</httpModules>
if it is present just comment
the following tag
<add name="CompressionModule" type="blowery.Web.HttpCompress.HttpModule , blowery.web.HttpCompress"/>
if don't want compression and after this check your application.
if you really need of compression module
without commenting just add this tag outside
<system.web> tag
<httpCompress preferredAlgorithm="deflate" compressionLevel="high">
<excludedMimeTypes>
<add type="image/jpeg"/>
<add type="image/gif"/>
</excludedMimeTypes>
<excludedPaths>
<add path="WebResource.axd"/>
</excludedPaths>
</httpCompress>
OR if your is IIS 6.0
The difference between the first and second is the Internet Information Services 6.0 uses the "GZIP" Compression algorithm
<httpCompress preferredAlgorithm="gzip" compressionLevel="high">
<excludedMimeTypes>
<add type="image/jpeg"/>
<add type="image/gif"/>
</excludedMimeTypes>
<excludedPaths>
<add path="WebResource.axd"/>
</excludedPaths>
</httpCompress>
If nothing works
Check your Internet Information Services
just check under
Home Directory->Configuration->Mapping
check whether you have .axd extension entry if entry is already found
double click the extension and ensure that "Check that file exists" checkbox is unchecked. Apply it and restart your IIS and check it...
if extension not found add extension as
.axd
c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll
limit to: GET, HEAD, POST, TRACE
Script Engine - Checked
Check that file exists - Unchecked
--
Kiran R Kawalli
mob no:9880281339
As you wrote, that browsing the page in the asp.net development server
while working with visual studio 2005, everything works fine. When I
put the site in a IIS directory manually, the js for the validation
aren't loaded.
I also tryed this: in my client browser, I browse directly for i.e.
http://localhost/myapp/webresource.axd
(i get an error if i don't specify the correct parameters but this
appears to be the same)
Then I load again my site pages... and the validation works! It seems
that internet explorer doesn't automatically load the <script
src="webresource.axd"> when loading the page, but if I do it manually
the scripts are found and they work...