Copied to clipboard

Flag this post as spam?

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


  • Nick Bennett 14 posts 84 karma points
    Feb 26, 2019 @ 22:21
    Nick Bennett
    0

    I am struggling to get a project to get off the ground. I am using VS 2017 Community Edition. The various problems I am having by trying things out all boil down to the Umbraco.Web assembly not being referenced in the project.

    Where am I supposed to get it from?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 26, 2019 @ 22:42
    Alex Skrypnyk
    0

    Hi Nick

    Are you using web application? the Umbraco.Web assembly is missing from bin folder or references?

    Thanks,

    Alex

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 26, 2019 @ 22:43
    Alex Skrypnyk
    0

    There is no Umbraco.Web.dll in latest Umbraco version.

  • Nick Bennett 14 posts 84 karma points
    Feb 26, 2019 @ 22:51
    Nick Bennett
    0

    But there are things that reference classes in the Umbraco.Web namespace. Where are they to be found?

    The simplest thing I've done is to create an empty web project then pull UmbracoCms into it with NuGet. I end up with a global.asax with this in it:

    <%@ Application Inherits="Umbraco.Web.UmbracoApplication" Language="C#" %>
    

    and IIS complains that it can't load that type. So ... where is it if not in Umbraco.Web.dll?

    BTW, there is no global.asax.cs. Should there be?

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 26, 2019 @ 23:04
    Alex Skrypnyk
    0

    it's in umbraco.dll

  • Nick Bennett 14 posts 84 karma points
    Feb 26, 2019 @ 23:10
    Nick Bennett
    0

    My project doesn't have a reference to that assembly, and there isn't a copy of it on my computer.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 26, 2019 @ 23:11
    Alex Skrypnyk
    0

    it should be in bin folder

    what Umbraco version are you using?

  • Nick Bennett 14 posts 84 karma points
    Feb 26, 2019 @ 23:15
    Nick Bennett
    0

    It isn't in the bin folder. I am using Umbraco 8.

    My bin folder has a couple of Microsoft.CodeDom.Providers... files plus my project's .dll, .dll.config and .pdb, plus a roslyn folder.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 26, 2019 @ 23:40
    Alex Skrypnyk
    0

    Just installed v8 from nuget in Visual Studio 2017 and got an error:

    Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    
    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.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    
  • Nick Bennett 14 posts 84 karma points
    Feb 26, 2019 @ 23:43
    Nick Bennett
    0

    Yes, I had that too. I resolved it by installing the later version of it that NuGet offers as an update.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 27, 2019 @ 09:51
    Alex Skrypnyk
    0

    I have the same issue after upgrading "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" package.

  • Carlos Gomes 38 posts 184 karma points
    Feb 27, 2019 @ 00:38
    Carlos Gomes
    1

    I was having the same issue and that was happening because I has created the project with the .Net framework version 4.5 instead of use the 4.7.2

  • David Whiteford 14 posts 84 karma points
    Feb 27, 2019 @ 09:57
    David Whiteford
    0

    Same issue for me:

    • New Empty 4.6.2 Web Application
    • Install via Nuget UmbracoCMS
    • Run the solution: get the "Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0" etc error message.
    • Upgrade that package using Nuget
    • Now I get "Could not load type 'Umbraco.Web.UmbracoApplication'." error in Global.asax

    Bin folder looks very empty to me (see below!)

    So much for starting a new site build in Umbraco 8 this morning :-(enter image description here

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 27, 2019 @ 10:05
    Alex Skrypnyk
    0

    Umbraco 8 works great from zip, via nuget I got the same problem

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 27, 2019 @ 10:05
    Alex Skrypnyk
    0

    Looks like missing dlls when run via nuget

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Feb 27, 2019 @ 10:03
    Nik
    0

    Minimum requirements for Umbraco v8 appears to be .Net 4.7.2

    https://our.umbraco.com/documentation/Getting-Started/Setup/Requirements/

    Also, ensure your Visual Studio is at least version 15.9 :-)

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 27, 2019 @ 10:05
    Alex Skrypnyk
    0

    My Visual Studio is 15.9.2

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Feb 27, 2019 @ 10:09
    Sebastiaan Janssen
    1

    The minimum where this will work is 15.9.6 I'm afraid :)

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Feb 27, 2019 @ 10:25
    Alex Skrypnyk
    0

    Ah, so this is the reason, thanks, Sebastiaan.I'm upgrading Visual Studio

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Feb 27, 2019 @ 10:31
    Nik
    1

    Submitted a PR to update the docs to show this :-)

  • Sebastiaan Janssen 5045 posts 15476 karma points MVP admin hq
    Feb 27, 2019 @ 11:01
    Sebastiaan Janssen
    2

    Oh sorry, missed your comment, I just updated it myself 😂

  • Nik 1593 posts 7151 karma points MVP 6x c-trib
    Feb 27, 2019 @ 11:26
    Nik
    0

    Damn it, means I don't get the credit 😉 At least it's fixed for others #h5yr

  • Nick Bennett 14 posts 84 karma points
    Feb 27, 2019 @ 11:28
    Nick Bennett
    0

    Success with Visual Studio 15.9.7 and creating the project with .NET 4.7.2.

  • David Whiteford 14 posts 84 karma points
    Feb 27, 2019 @ 11:38
    David Whiteford
    0

    Ditto - confirmed working - Visual Studio 15.9.7 and creating the project with .NET 4.7.2 from nuget.

Please Sign in or register to post replies

Write your reply to:

Draft