.NET version problem

16 posts, 1 answers
  1. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 11 Apr 2011 Link to this post

    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).
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 Apr 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    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.
  5. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    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.
  6. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 Apr 2011 Link to this post

    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.

  7. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    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.
  8. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    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.
  9. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 Apr 2011 Link to this post

    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.

  10. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 13 Apr 2011 Link to this post

    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...
  11. jlevine
    jlevine avatar
    7 posts
    Member since:
    Aug 2008

    Posted 14 Apr 2011 Link to this post

    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.
  12. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 14 Apr 2011 Link to this post

    Thanks for your help.

    Which wildcard do you use in your mapping ??
    I could change .aspx to "All verbs" but problem will stay...
  13. jlevine
    jlevine avatar
    7 posts
    Member since:
    Aug 2008

    Posted 14 Apr 2011 Link to this post

    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.
  14. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 19 Apr 2011 Link to this post

    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.

  15. AXOR
    AXOR avatar
    10 posts
    Member since:
    Feb 2011

    Posted 19 Apr 2011 Link to this post

    Thanks for your help. Adding these parameters to my web.config seem to solve the problem.
  16. Patrice Boissonneault
    Patrice Boissonneault avatar
    18 posts
    Member since:
    Mar 2010

    Posted 05 May 2011 Link to this post

    Thank you so much, you saved my day!
  17. Bruce Haan
    Bruce Haan avatar
    2 posts
    Member since:
    Nov 2009

    Posted 23 Aug 2013 Link to this post

    I realize this is an old post but this is the only solution I found that worked. Crisis averted! Thanks.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017