Copied to clipboard

Flag this post as spam?

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


  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Dec 10, 2015 @ 22:59
    Biagio Paruolo
    0

    [SOLVED] Umbraco 7.3.x intellisense & Co: intellisense don't work if project built on VS2013 and passed to VS2015

    Hi,

    I started a project under Vs2013 with U7.3.3 and install Umbraco via Nuget. Under Vs2013 it is all ok: intellisense, etc...

    I pass the project under Vs2015...oppssss...intellisense don't work anymore under views and I've a not real error on views that there is not a reference to MVC dll, but I've the reference.

    Error:

    CS0234 C# The type or namespace name MVC does not exist in the namespace 'Microsoft.AspNet' #are you missing an assembly reference?#

    Do you confirm that is not possible to migrate from Vs2013 to Vs2015? How solve the problem under Vs2015?

    So I reopened the project with Vs2013 and it's all ok.

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Dec 10, 2015 @ 23:25
    Biagio Paruolo
    0

    I found the trouble...I try to update Umbraco from 7.3.3 to 7.3.4 via Nuget. Intellisense start to work...but I've always the dll error and if I open a view this is underline with red line.

    Visual Studio give now this warning:

    Conflict System.Web.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" e "System.Web.Mvc, Version=4.0. 1> 0.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35"

    Conflict assembly "System.Web.Razor, Culture=neutral, PublicK 1> eyToken=31bf3856ad364e35" dalla versione "2.0.0.0" [C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Assemblies\System.Web.Razor.dll] alla versione "3.0.0.0"

  • Biagio Paruolo 1621 posts 1914 karma points c-trib
    Dec 10, 2015 @ 23:47
    Biagio Paruolo
    100

    Problem solved:

    • delete reference System.Web.Mvc and System.Web.Razor add reference System.Web.Mvc and System.Web.Razor from packages folder under the solution
    • edit into web.config the lines so after are similar:
      <dependentAssembly>
                  <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31BF3856AD364E35" culture="neutral"/>
                  <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>            </dependentAssembly>
    
    • change in the views from

    inherits UmbracoTemplatePage

    to

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage

    And after intellisense works again...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies