This is a migrated thread and some comments may be shown as answers.

Anyone work with 4.0 Web Site projects?

3 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 07 Jul 2010, 02:57 AM
...when I make a new site (not webapp, website) and hook it into IIS7.5 no click events on the page fire on default.aspx unless it explicitly specified in the url.

So like
http://www.mysite.com/      <- no button events hit the code behind, but page lifecycle works great
http://www.mysite.com/default.aspx     <- no issues at all

Has anyone else seen this?  Googling comes up with nothing for me...

3 Answers, 1 is accepted

Sort by
0
John Townsley
Top achievements
Rank 1
answered on 18 Nov 2010, 06:59 PM
I am having the same problem except I am using a web application. It was never a problem until I switched to .net 4.0.
0
Pavel
Telerik team
answered on 19 Nov 2010, 08:18 AM
Hi guys,

The problem is probably caused by this breaking change in .Net 4.0. I am guessing that you are using RadCompression or some other module that interferes. As explained in the article you should set the preCondition to "managedHandler" for the module. Note that you may also need to remove the following setting from your web.config which might have been added automatically:
Copy Code
<modules runAllManagedModulesForAllRequests="true">

As explained in this article, this setting essentially negates any preConditions you may have set and forces all modules to run for all requests which results in erroneous behavior. If you remove it, the module will be correctly excluded from the request and the events should be executed.

Let me know if this helps or if your problem is different.

Regards,
Pavel
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
John Townsley
Top achievements
Rank 1
answered on 19 Nov 2010, 04:54 PM
Thank you Pavel!

I implemented your fix and it works great!
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
John Townsley
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or