Giant Exception when adding SPRadListView to site

8 posts, 0 answers
  1. Matthew
    Matthew avatar
    2 posts
    Member since:
    Apr 2011

    Posted 21 Apr 2011 Link to this post

    Hello,

    I have a Document Center Site Collection (home site) onto which I wanted to place this web part.  I tried several times to get it working, installing and uninstalling the web part a few different times.  Now, I think everything is installed correctly but when I add the web part to the page, I get the error below.  Is this because I installed and uninstalled the solution so many times?  I made sure the web part's feature was enabled on the site collection, and everything. Had to use Web Part Maintenance page to remove the part so that I could view the page again.

    Thanks,
     - Matt

     

    Server Error in '/' Application.

    [A]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [InvalidCastException: [A]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel] cannot be cast to [B]System.Collections.Generic.Dictionary`2[System.String,Telerik.Web.UI.OurUpdatePanel]. Type A originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Type B originates from 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in the context 'LoadNeither' at location 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'.]
       Telerik.Web.UI.RadAjaxControl.CreateUpdatePanel(Control initiator, String eventName, Control updated, UpdatePanelRenderMode panelRenderMode, Unit panelHeight) +439
       Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1529
       System.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Control.OnPreRender(EventArgs e) +11032190
       Microsoft.SharePoint.WebPartPages.WebPartPage.OnPreRender(EventArgs e) +50
       System.Web.UI.Control.PreRenderRecursiveInternal() +108
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4959; ASP.NET Version:2.0.50727.4955
  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 27 Apr 2011 Link to this post

    Hi Matthew,

    I think that must be the reason for the exception you are getting. Please, take the following steps in order to make sure your installation has been cleared:

    1. Uninstall the Telerik RadControls for SharePoint from the Control Panel.

    2. Go to Central Administration -> System Settings -> Manage Farm Solutions and make sure that the RadControlsSP.wsp is not there. If it is, retract and remove it.

    3. Delete any Telerik dlls from the GAC and the BIN folder of your SharePoint installation.

    4. Go to Windows\Microsoft.NET\Framework\v2.0.50727 and delete the temporary ASP.NET files.

    5. Go to Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\CONTROLTEMPLATES  and delete the Telerik.Ajax.SharePoint folder (if any).

    6. Go to Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEEMPLATE\LAYOUTS and delete the Telerik.Ajax.SharePoint folder (if any).

    7. Go to Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES and delete all RAD.... folders (if any).

    8. Go to Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI and delete the SPRadGridWebPartDesignerService.cs (if it is still there).

    Afterwards, run the telerik controls for SharePoint installer once again.

    Hope this information will prove helpful.

    Best wishes,
    Tsvetoslav
    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. Matthew
    Matthew avatar
    2 posts
    Member since:
    Apr 2011

    Posted 27 Apr 2011 Link to this post

    Thank you very much for your response, I believe this will solve the problem quite effectively!

    - Matt
  4. Alex
    Alex  avatar
    37 posts
    Member since:
    Oct 2007

    Posted 11 Jul 2011 Link to this post

    We had some similar issue on SharePoint 2010. What was weird was that it started some two weeks after installing SAK. Initially, there were no issues; then this morning, we could no longer edit the pages because of the error message:

    ---------------------------
    Message from webpage
    ---------------------------
    Sys.WebForms.PageRequestManagerServerErrorException: File Not Found.
    ---------------------------
    OK   
    ---------------------------

    I followed the steps detailed here and retracted the solution; we were able to start editing pages again. Thanks for posting these step-by-step instructions.
  5. Dasha
    Dasha avatar
    80 posts
    Member since:
    Aug 2010

    Posted 01 Dec 2011 Link to this post

    Tsvetoslav,

    This seems like a rational solution, but I still have a concern.  We saw this error when we tried putting two components that were using different telerik assembly versions on the same sharepoint page.  Both the components were using ajax, and that blew up the whole page.  We can definitely make sure that all of our components reference the same telerik assembly, but we cannot vouch for our customers.  What if by some chance they have software from a different provider (that's using a different telerik build) and they try to have their stuff and ours on the same page?

    Regards,

    Dasha.
  6. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 06 Dec 2011 Link to this post

    Hi Dasha,

    Is the problem reproducible outside of SharePoint?

    Greetings, Tsvetoslav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  7. Dasha
    Dasha avatar
    80 posts
    Member since:
    Aug 2010

    Posted 06 Dec 2011 Link to this post

    We haven't tried that scenario since we mostly work in Sharepoint..
  8. Tesfaye
    Tesfaye avatar
    1 posts
    Member since:
    Jun 2011

    Posted 14 Mar 2012 Link to this post

    This is happening because you are using two versions of Telerik.Web.UI and the webparts on your page is refering two different versions of this assembly. You can solve this issue by simply editing the web.config file in your web application folder.
    Use the following for a reference.

    <dependentAssembly>
            <assemblyIdentity name="Telerik.Web.UI" publicKeyToken="121fae78165ba3d4" culture="neutral" />
            <bindingRedirect oldVersion="oldversion" newVersion="newversion" />
          </dependentAssembly>

    Please replace the oldversion and newversion labels with your Telerik versions. You can easily guess from the assembly file versions to say which one is older or not. Then copy to the web.config file inside <dependentAssembly>.......</dependentAssembly> node. You can copy anywehere in that node but I prefer doing it at the last before the close node </dependentAssemby>.

    I hope this can solve your issue.
    Thanks
    Tesfaye
Back to Top