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.
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)
Where is Umbraco.Web
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?
Hi Nick
Are you using web application? the Umbraco.Web assembly is missing from bin folder or references?
Thanks,
Alex
There is no Umbraco.Web.dll in latest Umbraco version.
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:
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?
it's in umbraco.dll
My project doesn't have a reference to that assembly, and there isn't a copy of it on my computer.
it should be in bin folder
what Umbraco version are you using?
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.
Just installed v8 from nuget in Visual Studio 2017 and got an error:
Yes, I had that too. I resolved it by installing the later version of it that NuGet offers as an update.
I have the same issue after upgrading "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" package.
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
Same issue for me:
Bin folder looks very empty to me (see below!)
So much for starting a new site build in Umbraco 8 this morning :-(
Umbraco 8 works great from zip, via nuget I got the same problem
Looks like missing dlls when run via nuget
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 :-)
My Visual Studio is 15.9.2
The minimum where this will work is 15.9.6 I'm afraid :)
Ah, so this is the reason, thanks, Sebastiaan.I'm upgrading Visual Studio
Submitted a PR to update the docs to show this :-)
Oh sorry, missed your comment, I just updated it myself 😂
Damn it, means I don't get the credit 😉 At least it's fixed for others #h5yr
Success with Visual Studio 15.9.7 and creating the project with .NET 4.7.2.
Ditto - confirmed working - Visual Studio 15.9.7 and creating the project with .NET 4.7.2 from nuget.
is working on a reply...