+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Javascript error

Javascript error

9 posts, 0 answered
  1. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
  2. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    21 Feb 2009
    Link to this post
    Additional information:

    In web.config I have this line for Webresources.axd:

    <

     

    add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false"/>

     

    I stripped the version info because otherwise I am getting an error message after upgrading to 3.6 relling me that the manifest for WebResource.axd does not match the version information in web.config.

    Regards, Mikael
  3. Parvan
    Parvan avatar
    151 posts
    Registered:
    24 Sep 2012
    23 Feb 2009
    Link to this post
    Hi Mikael Kleinwort,

    Thank you for contacting us.

    The Telerik.Web.UI assembly contains the Rad Controls. Sitefinity 3.6 includes a new updated assembly. The error
    "manifest for WebResource.axd does not match the version information in web.config"
    means the new version of Telerik.Web.UI.dll is missing from your site's bin directory. If you  have upgraded your site, be sure to put the new assemblies in the bin directory.
    If you strip the version info in web.config your site will use old Telerik.Web.UI.dll.

    Try to use version info and put the new dlls into your site's bin directory.
    If you have any further problems, please tell us how you update/install your project.

    Hope this information will help you.

    Kind regards,
    Parvan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  4. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    25 Feb 2009
    Link to this post
    Hi Parvan,

    my Telerik.Web.UI.dll is from the latest Sitefinity_3_6_1870_standard_patch and is version 2008.3.1314.35. However, I noticed that the web.config from the same patch contains this line:

    <

     

    add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1125.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false"/>

    and this seems to be wrong. May be this is the cause of the problem? Please advise what is the correct assembly reference in web.config.

    regards, Mikael

  5. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    27 Feb 2009
    Link to this post
    Hello Mikael Kleinwort,

    We could not reproduce the problem but it is indeed wrong to have a declaration for an earlier version. What you could do is remove the Version element. Actually, substitute the tag with the following:
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" verb="*" validate="false"/> 

    We will remove the version from the web.config file as well.

    Let us know if you still experience any problems.

    Sincerely yours,
    Sonya
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    28 Feb 2009
    Link to this post
    Hello Sonya,

    I solved the problem of the wrong reference to webResource.axd. The web.config distributed by Telerik with the new SF 3.6 hotfix project contains a wrong version information for this dll.

    However, the original error I reported in this post still remains. I get the reported jayascript error on each page I veiw, with IE or with Mozilla.

    Can you please comment on this? I am using a newly created SF 3.6 hotfix project with nothing but standard content.

    Regards, Mikael
  7. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    02 Mar 2009
    Link to this post
    Hello Mikael Kleinwort,

    We could not reproduce the javascript error. You say you see it for every page. Is there any control you have added to a template that is used by all pages? A possible cause is a change in the latest RadControls assembly which throws an error with earlier implementations. Could you add the default template distributed with Sitefinity (from a clean installation), and use it in a page and check if the error still appears. 
    Also, it seems the error is connected to RadScriptManager - could you locate if and where you have added it in your project, and remove it to test if the error will still appear.

    Let us know of the results.

    All the best,
    Sonya
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Mikael Kleinwort
    Mikael Kleinwort avatar
    78 posts
    Registered:
    17 May 2004
    04 Mar 2009
    Link to this post

    Hello Sonya,

    thank you for your reply. I spent some hours investigating this issue. Something funny is going on.

    When I uploaded the master page for the project, it contained a commented-out sectionof old html code like this:
    <!-- <telerik:radscriptmanager ID="RadScriptManager1" runat="server">
    </telerik:radscriptmanager>
    <telerik:radstylesheetmanager ID="RadStyleSheetManager1" runat="server">
    </telerik:radstylesheetmanager>
    <telerik:RadPanelBar ID="RadPanelBar1" Runat="server">
    </telerik:RadPanelBar>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Telerik">
    </telerik:RadWindowManager>
    -->

    This code should have no effect on how the page is being processed. In VS2008 it is shown as commented code.

    But I just checked: the commented out controls are still beig rendered on the page output, and this happens in SiteFinity, as well as also in the old website project prior to us moving it to SitFinity. ASP.Net renders the 3 Telerik controls, I can see them in the trace list of the page, despite the fact that their declarations are commented out.

    So now the answer to your question whetherI have a scriptManager control on the page is: yes.

    But now, when I remove this commented html code, SiteFinity throws an error on every page: 
    The control with ID 'RadPanelbar1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

    It turns out that "RadPanelbar1" is the control created by SiteFinty for the navigation control included in the Template.

    With the commented-out code in place, I find 2 controls RadPanelbar1 on the page, one is the navigation controlrendered by SF,the otherone is th control rendered because of the commented-out declaration.

    So now what do I do? With the commented out declaration of the scriptManager in place, I get the Javascript error. When I remove the commented-out declaration, the page throws the above error and does not serve at all.

    Please let me know if you need more details on this.

    Regards, Mikael

  9. Sonya
    Sonya avatar
    231 posts
    Registered:
    24 Sep 2012
    07 Mar 2009
    Link to this post
    Hi Mikael Kleinwort,

    Please excuse us for the delay in the response. Actually, for parsing templates, we are using our own parser, and skipping commented code in templates is not implemented in it yet. This is valid for the code running on the server. So yes, the code you showed will indeed run regardless of the fact that it is commented. You have proceeded correctly by removing it.
     
    As to the new error, it is good you removed the commented code but you would still need to have a script manager in your master page. So, add it to the master page you are using in your website right after the form section, as shown (add highlighted code):
    <body> 
      <form id="form1" runat="server"
           <asp:ScriptManager ID="ScriptManager1" runat="server"
           </asp:ScriptManager> 

    Let us know if this does not fix the problem and you experience more issues.

    Regards,
    Sonya
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
9 posts, 0 answered