Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Missing packages when deployed to webserver with DW 9.8.9

Missing packages when deployed to webserver with DW 9.8.9

Hans Kloppenborg
Reply

Hi,

We have been updating 2 solutions lately with DW 9.8.9 using nuget, and after much struggles have a working version locally. When we deploy these versions to a webserver using continuous integration, we get errors like in the attached screenshot. We found that adding the following 2 packages to the solution solved this:

Microsoft.CodeAnalysis.Workspaces.MSBuild
Microsoft.Build

Could you add dependencies for these packages to the admin package or such?

Greets Hans


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Try these 2 things

  • Empty the bin folder on the production and copy from your dev/staging environment - my guess is that you have assemblies that are no longer used.
  • Ensure the web.config gets updates as well - it contains new things.

The issue is related to the update of Razor in Dynamicweb that now uses Roslyn. Roslyn uses ms codedom which has siginificantly changed (nuget vs. not nuget packages).

Take a look at the end of this thread :

https://doc.dynamicweb.com/forum/development/development/fresh-nuget-install-error

BR Nicolai

Votes for this answer: 1
 
Hans Kloppenborg
Reply

Thanks Nicolai,

After some more testing this morning it seems that clearing out de bin folder fixed it in our case. Expected that the deploy script would be doing that for us, but it seems to be not the case. We are looking into adding that step now.

Greets Hans

 

You must be logged in to post in the forum