Question... Are some dependencies missing from Umbraco 9.5? #12383
Replies: 2 comments 2 replies
-
Which .NET version are you on? And @NikRimington ? We should get better at promoting this button for these kinds of questions 😅 Which results in something like:
We don't rely on I can see I don't have the dll for a dotnet 5 Umbraco site (anecdotally, I only tried one) and it is copied into the bin for dotnet 6 Umbraco sites (only looked at 2 of them). Do you have both the sdk and the hosting bundle installed on the machine? Hosting bundle: https://dotnet.microsoft.com/en-us/download/dotnet/6.0/runtime |
Beta Was this translation helpful? Give feedback.
-
RE:
Yeah, installing those extra packages didn't feel right, but after spending 4 hours trying to figure it out, it's time to throw in the towel so I can move on with the project. 🤷♀️ I have been running "Rebuild Solution" in VS, then popping over to the browser with my custom hostname and refreshing.... So, I'd imagine that is equivalent to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I set up a fresh 9.5 site using the VS "Umbraco Project" template, and came across an odd runtime issue when using IIS for the localhost (because I like to use real hostnames and not always run sites in debug-mode via VS).
@NikRimington summed up the issue most succinctly when I did a search on the Umbraco Discord about it, so I will quote him:
My experience was the same - if I ran it via IIS Express (debug inside VS) - no runtime error. If I used IIS, pointing to the UmbracoProject folder - Runtime error.
I didn't see any specific responses to Nik's query, and I went on my own wild-goose-chase to figure out if there was some magical setting which would make it "just work".... (After all, I was running an Umbraco 9 Cloud site locally without this issue...) Alas, too many hours later, I just ended up adding a reference via NuGet for "System.Drawing.Common" Version="5.0.3", which resolved that issue, but brought up a new, similar error about missing "System.Security.Cryptography.Pkcs", so I added that as well ("System.Security.Cryptography.Pkcs" Version="5.0.1"), and now the site loads via IIS.
So, my question is : Are these required references which are just missing from the Umbraco.Cms NuGet package? If not, does anyone have an understanding of what is going on here?
A few random (maybe related?) references:
System.Drawing.Common.dll is not added to Net Core build output
PackageReference assembly is not included in the bin dir of a .NET standard project
InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'
Razor templates: Cannot find compilation library location for package
Beta Was this translation helpful? Give feedback.
All reactions