Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Evans 599 posts 949 karma points
    Jun 03, 2013 @ 11:56
    Dan Evans
    0

    upgrade from 6.0.5 to 6.1 - Attempted to access an element as a type incompatible with the array

    Hi

    I am getting this error when attempting to upgrade a 6.0.5 site to 6.1:

    Attempted to access an element as a type incompatible with the array

  • Frank Buchner 22 posts 89 karma points
    Jul 03, 2013 @ 17:13
    Frank Buchner
    0

    I'm getting the same error on an upgrade from 4.11.8 to 6.1.2.

  • Frank Buchner 22 posts 89 karma points
    Jul 03, 2013 @ 19:06
    Frank Buchner
    0

    I was able to resolve the error by comparing the DLLs in the my site's bin directory with the one in the upgrade installation files and removing any that did not exist in the installation files.  I found some information that this error may be related to referencing both MVC 3.0 and MVC 4.0 because MVC 3.0 may be referenced in some of the old DLLs I had floating around in my bin directory.

     

  • Farhad 12 posts 45 karma points
    Jul 19, 2013 @ 11:09
    Farhad
    2

    Hi

    If it is an MVC version issue. Try adding the config below to your web.config file in the '<runtime>' section

     <dependentAssembly>

            <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />

            <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="4.0.0.0" />

           </dependentAssembly>

     

           

           

           

           

           

           

           

           

     

  • Thor Madsen-Holm 82 posts 212 karma points c-trib
    Aug 02, 2013 @ 14:29
    Thor Madsen-Holm
    0

    I just upgraded a 4.11.8 site to 6.1.3 and now I am getting the exact same error. The site has a few comunity packages installed such as ucomponents and crop-up, so i guess it could be a package problem.

    I also tried adding, but with no effekt:

    <dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="4.0.0.0" /> </dependentAssembly> codexml Unfortunatly I am not expert on C# so i have no idea where to look for the error. Does any one have any suggestions.

    As always any help will be greatly appreciated.

    /Thor

  • Alessio Montesi 8 posts 28 karma points
    Aug 02, 2013 @ 17:34
    Alessio Montesi
    0

    Thank you

    For me has worked!

     

    Alessio

  • jonok 258 posts 474 karma points
    Aug 07, 2013 @ 01:05
    jonok
    0

    Farhad's solution worked for me. Thanks!

  • Thor Madsen-Holm 82 posts 212 karma points c-trib
    Aug 07, 2013 @ 08:38
    Thor Madsen-Holm
    0

    Turned out it was a custom dll that was my problem for me.

Please Sign in or register to post replies

Write your reply to:

Draft