Print Page | Close Window

Nuget packate Server add extra entry to web.config

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3651
Printed Date: 13-Mar-2025 at 8:31am


Topic: Nuget packate Server add extra entry to web.config
Posted By: Walid
Subject: Nuget packate Server add extra entry to web.config
Date Posted: 22-Sep-2012 at 4:07pm
for information, it looks like the nuget package Devforce Server isn't checking the current configuration of the solution when doing a migration.

It added the entry serviceHostingEnvironment in web.config while one was already there. This cause an error as only one entry is allowed.

In my web.Config my entry looked like this :
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />

it added :
    <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" />







Replies:
Posted By: Walid
Date Posted: 22-Sep-2012 at 4:20pm
Also, installing the package Server to a Domain .net assembly add global.asax to TFS (but not the solution) while this file should only exist on the .web application



Posted By: smi-mark
Date Posted: 23-Sep-2012 at 1:41pm
I noticed the global.asax issue also


Posted By: kimj
Date Posted: 24-Sep-2012 at 11:28am
Thanks for reporting these issues.
 
The web.config problems are due to a current NuGet limitation on how it does transforms, so you will see duplicates in the ideablade.configuration section if it was already present, as well as the serviceHostingEnvironment element.  In all cases you can keep your existing config elements and remove the added content.
 
We hope to get the web.config problems, and the problems with additional files such as global.asax and DevForce.cf, fixed in the next DF2012 release.



Print Page | Close Window