Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Install of Dynamicweb.Admin 9.3.4 package corrupts web.config

Install of Dynamicweb.Admin 9.3.4 package corrupts web.config

Hans Kloppenborg
Reply

Hi Folks,

Besides the troubles the upgrading of the dynamicweb.admin package gives normally (script that should copy admin folder files does not do it when files already exist, and thus changes are not implemented) it now also corrupts the web.config file by adding the following 2 tags when they already exist:

  1. httpRuntime
  2. sessionState (not allways, seems dependant on position in file)

It also sets back all the excessive comment tags we prefer to remove to keep the file clean.

Besides that it does weird things with the line endings, seemingly randomly removing newlines messing up the readability of the file.

Please fix

Greets Hans

 


Replies

 
Martin Vang
Martin Vang
Reply

Hi Hans,

This sounds like a bug we fixed in relation to a previous release.

Can I get you to tell me a few things?

1. Which version are you upgrading from and which version are you upgrading to?

2. Can I get you to upload your web.config from before the upgrade?

3. Can I get you to check if anything is locking your files? If the .aspx files cannot be "copied over", then it is a problem related to NuGet not having permission to copy files.

4. Can I get you to paste the exception you get when you try to upgrade?

 

BR

Martin

 
Hans Kloppenborg
Reply

Hi Martin,

Re question 3 and 4, the issue is not that we get an exception while upgrading, and there is no problem with permissions, the issue is that during the installation the web.config DOES get changed. The result of that change is that a tag that already exists, the httpRuntime tag,  gets set a second time. This leads to IIS giving an error that the web.config is invalid.

Re question 1: we have seen it happen with an update from 9.3.2 to 9.3.4, from 9.3.3 to 9.3.4 and not 100% sure but I think it also happend from 9.3.4 to 9.3.5 .

Re question 2: I dont want to post the web config here, if you mail me I can send it in reply.

 
Martin Vang
Martin Vang
Reply

Hi Hans,

You can see my email by hovering my name. :)

Send me the web.config, and I'll try to figure out why this happens.

BR

Martin

 

You must be logged in to post in the forum