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
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.
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.
For information, we are using IIS 6.0 on our production server.
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.
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.
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.
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.
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...
- ASP.NET 4.0
- IIS 6.0
- 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)
- RadAjaxPanel (2011.1.315.40)
- RadCompression (2011.1.315.40)
- 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.
Which wildcard do you use in your mapping ??
I could change .aspx to "All verbs" but problem will stay...
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.
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.