ASP.NET 2.0, webresource.axd: validation controls not working

110 views
Skip to first unread message

Jules

unread,
Dec 4, 2006, 11:33:11 AM12/4/06
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
When I developed in ASP.NET 1 framework, I had no trouble with
validation controls. If I create a solution in the .NET 2.0 IDE, I have
no trouble with validation controls.

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

Kiran K

unread,
Dec 5, 2006, 9:27:00 AM12/5/06
to DotNetDe...@googlegroups.com

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

Jules

unread,
Dec 5, 2006, 9:59:34 AM12/5/06
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Thank you very much but...
I already checked the two items you suggest:
1. there is no CompressionModule in the web.Config file
2. the .axd file extension reference is in IIS and it is configured as
you indicate.
Let me know if any other ideas occur?
I'm at a loss: when I make a solution in VS 2005, everything's fine...
JJ.

Jules

unread,
Dec 5, 2006, 10:38:51 AM12/5/06
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Update: stuff works in Mozilla FireFox, but not in IE 7.
?

gin...@gmail.com

unread,
Dec 19, 2006, 3:46:47 AM12/19/06
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi. Did you solve this problem? I'm getting in the same trouble...

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...

Reply all
Reply to author
Forward
0 new messages