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

.NET version problem

15 Answers 235 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
AXOR
Top achievements
Rank 1
AXOR asked on 11 Apr 2011, 05:09 PM
Hello,

I recently did a .Net Framework update on our production server and I'm now having problems with all controls that are doing AJAX requests. The new ASP.Net version is 4.0.30319.0.

On my computer I'm having .Net 4.0, but a lower version, and everything works fine.

Also I'm now getting some errors like this on our server : The HTTP verb POST used to access path ... is not allowed.

Here's a part of the code I'm using that fails :

<telerik:RadAjaxLoadingPanel ID="ajaxPanel" runat="server" />
<telerik:RadAjaxManager runat="server" DefaultLoadingPanelID="ajaxPanel">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="gridEntreprises">
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="chkActifUniquement">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="gridEntreprises" LoadingPanelID="ajaxPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

The server event attached to "chkActifUniquement" doesn't have any effect on the specified control (using new .Net version).

15 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 12 Apr 2011, 09:39 AM
Hello Service,

I am afraid we have not encountered such issues before. Furthermore the version of .NET 4.0 I have is the same as the specified and ajax works properly on my end. Can you check if the same issue is replicable in all browsers or in specific one?
Any additional information on your scenario and setup might help us get to the source of the problem.

All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start 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
AXOR
Top achievements
Rank 1
answered on 12 Apr 2011, 01:27 PM
I've test with IE and Firefox and the display is working fine in both. It's only the AJAX call that doesn't work on server side.
For example, when I try to switch pages of a RadGrid, I'm getting this error : The HTTP verb POST used to access path...

I don't understand how a minor version update can cause this... I'll try to upgrade my development computer to reproduce the problem.
0
AXOR
Top achievements
Rank 1
answered on 12 Apr 2011, 02:03 PM
I've update .Net version on my computer to 4.0.30319.1 and everything is still working fine on my computer. So, problem might not be related to ASP.Net version.

For information, we are using IIS 6.0 on our production server.
0
Iana Tsolova
Telerik team
answered on 12 Apr 2011, 04:00 PM
Hi Service,

In this case, can you try a simple sample and see if it works on the deployment machine. For instance create a page where a ASP:Label is wrapped in ASP:UpdatePanel and a button which is AsyncPostBackTrigger for the page. On button Click update the label with some text. Thus we will be able to isolate the issue further and see if it is something connected with the MS AJAX Framework or something with its configuration.

All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start 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
AXOR
Top achievements
Rank 1
answered on 12 Apr 2011, 05:02 PM
Hi,

this is exactly what I tried and it's working fine on our server. So, the problem is not exactly the AJAX call.
Our application doesn't use any special controls other than Telerik's ASP.NET AJAX. Can it be a configuration error related to Telerik ?

Thanks for your help.
0
AXOR
Top achievements
Rank 1
answered on 12 Apr 2011, 07:33 PM
After doing some tests, I found that the problem seems to be only a matter of verb access right.
If I take all the files concerned by this problem and I put them into a new directory, everything works fine.

But, I can't find where to change this access...

Any help would be appreciate.
Thanks.
0
Iana Tsolova
Telerik team
answered on 13 Apr 2011, 09:56 AM
Hello Service,

I am afraid that you should consult a web administrator to help you with this question.

Other than this, our controls does not require any additional set up. You should just put the Telerik.Web.UI dll in the web site Bin folder or reference the dll from the GAC.

Please excuse me for the inconvenience this might cause you.

Greetings,
Iana
the Telerik team

Browse the vast support resources we have to jump start 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
AXOR
Top achievements
Rank 1
answered on 13 Apr 2011, 03:21 PM
Hello,

I found a work-around to solve this problem. When I call the default page implicitly using "/" the AJAX HTTP POST from RadGrid is rejected, but if I use "/Default.aspx" everything work fine.

So, it is only an URL Rewriting problem, but I still can't find the IIS mapping that needs to be adjust/remove...
0
jdirienzi
Top achievements
Rank 1
answered on 14 Apr 2011, 04:30 PM
I have experienced this issue as well.  For me, it is caused by the specific combination of all of the following:

  1. ASP.NET 4.0
  2. IIS 6.0
  3. Wildcard Mapping (In the Application Configuration section, add a wildcard mapping to "c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll", verify that file exists must be unchecked)
  4. RadAjaxPanel (2011.1.315.40)
  5. RadCompression (2011.1.315.40)
  6. Browsing to default documents with extensionless URLs (http://mysite.com instead of http://mysite.com/default.aspx)

If I change any one of those things (3 through 6), the error goes away.  I can remove the wildcard mapping, remove the ajax panel, remove radcompression, or browse to the full filename and everything works fine.  However, that is just a work-around.

One other work-around is to add the following to your code-behind (page load, page init, etc):
Page.Form.Action = System.IO.Path.GetFileName(Request.PhysicalPath);

This forces "default.aspx" into the action parameter of the form tag, which also fixes the issue.  Without this code, the action is set to empty string, which also contributes to the problem.
0
AXOR
Top achievements
Rank 1
answered on 14 Apr 2011, 06:47 PM
Thanks for your help.

Which wildcard do you use in your mapping ??
I could change .aspx to "All verbs" but problem will stay...
0
jdirienzi
Top achievements
Rank 1
answered on 14 Apr 2011, 08:05 PM
My current solution, unless the good folks at Telerik have a better idea or a fix, is to manually set the Page.Form.Action.

I have left the wildcard mapping in place, because I need it for some other functionality in my applicationt to work.  In IIS6, I do not change the .aspx mapping.  In the section below the extension mappings, there is a separate area called "Wildcard Application Maps".  That is what I am using.
0
Accepted
Iana Tsolova
Telerik team
answered on 19 Apr 2011, 12:23 PM
Hello,

The error is caused by this Breaking Change in ASP.NET 4.0. For more information on how to solve it, you can check this help topic (the Known Issues section).
If you are using IIS6.0 try adding the following in your web.config:
<configSections
  <sectionGroup name="telerik.web.ui"
    <section name="radCompression" type="Telerik.Web.UI.RadCompressionConfigurationSection, Telerik.Web.UI, PublicKeyToken=121fae78165ba3d4" allowDefinition="MachineToApplication" requirePermission="false"/> 
  </sectionGroup>     
</configSections
       
<telerik.web.ui
  <radCompression
    <excludeHandlers>        
      <add handlerPath="" matchExact="false"/>        
    </excludeHandlers
  </radCompression
</telerik.web.ui>



All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start 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
AXOR
Top achievements
Rank 1
answered on 19 Apr 2011, 06:13 PM
Thanks for your help. Adding these parameters to my web.config seem to solve the problem.
0
Patrice Boissonneault
Top achievements
Rank 2
answered on 05 May 2011, 05:08 PM
Thank you so much, you saved my day!
0
Bruce Haan
Top achievements
Rank 1
answered on 23 Aug 2013, 06:24 PM
I realize this is an old post but this is the only solution I found that worked. Crisis averted! Thanks.
Tags
Ajax
Asked by
AXOR
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
AXOR
Top achievements
Rank 1
jdirienzi
Top achievements
Rank 1
Patrice Boissonneault
Top achievements
Rank 2
Bruce Haan
Top achievements
Rank 1
Share this question
or