I have a solution containing 13 projects. The solution is configured to start multiple projects. A lot of these project need to go to shared databases and web services.  My app.config and web.config files now contain a lot of duplication. Eg when I want to change a database I need to change all the configuration files in the projects (app.configs) that access that database.  I wonder what the best approach is to tackle this? Is there a way to define solution wide configuration settings in .NET?
122436
We have a suite of interlinked .Net 3.5 applications. Some are web sites, some are web services, and some are windows applications. Each app currently has its own configuration file (app.config or web.config), and currently there are some duplicate keys across the config files (which at the moment are kept in sync manually) as multiple apps require the same config value. Also, this suite of applications is deployed across various envrionemnts (dev, test, live etc)  What is the best approach to managing the configuration of these multiple apps from a single configuration source, so configuration values can be shared between multiple apps if required? We would also like to have separate configs for each environment (so when deploying you don't have to manually change certain config values that are environment specific such as conenction strings), but at the same time don't want to maintain multiple large config files (one for each environment) as keeping this in sync when adding new config keys will prove troublesome.
4155
I wonder if somebody found a solution for the following issue related to Drupal 8 development with Git branches:   You work on a new feature in a local feature branch for that you activate a contributed module or you write a custom module. This maybe delivers an own entity type and therefore creates a table after installing Meanwhile you need to fix a bug -> you change to a newly created bugfix branch which starts from the current dev branch After checking out the bugfix branch you import the current configurations to have the current active configuration of the branch -> the module you installed in feature branch is not activated anymore, the files of this module do not exist in the current bugfix branch You do your bugfixing and merge ths bugfix branch into develop branch. you change to your feature branch. To bring your local Drupal project to the status of this branch again you will import the configurations again   And here it comes to an exception: the table already exists in your database. When doing a drush cim it stops every following processing and you need to restart drush cim to import any further configurations.  Who does work with different feature branches and found a solution during development process to deal with this kind of situation?
108315
I have this error when I try to import the config of an another site:     The staged configuration cannot be imported, because it originates   from a different site than this site. You can only synchronize   configuration between cloned instances of this site.   I have 10 customers, and I need to sync my site configuration with 10 different websites. The site UUID is a problem for sharing a configuration with a different website. Is there a solution?
81414
When developing a .NET Windows Forms Application we have the choice between those App.config tags to store our configuration values. Which one is better?  &lt;configuration&gt;    &lt;!-- Choice 1 --&gt;   &lt;appSettings&gt;     &lt;add key="RequestTimeoutInMilliseconds" value="10000"/&gt;   &lt;/appSettings&gt;    &lt;!-- Choice 2 --&gt;   &lt;configSections&gt;     &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5612342342" &gt;         &lt;section name="Project1.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5612342342" requirePermission="false" /&gt;     &lt;/sectionGroup&gt;   &lt;/configSections&gt;   &lt;applicationSettings&gt;     &lt;Project1.Properties.Settings&gt;       &lt;setting name="TABLEA" serializeAs="String"&gt;         &lt;value&gt;TABLEA&lt;/value&gt;       &lt;/setting&gt;     &lt;/Project1.Properties.Settings&gt;   &lt;/applicationSettings&gt;  &lt;/configuration&gt;
74758
I want to deploy my solution to a single web application. I used the following script:  Add-SPSolution -c:/mywebpart.wsp  Install-SPSolution mywebpart.wsp -WebApplication "SharePoint Debugging" -GacDeployment   But the solution is now available in the 'Site Collection Features' list of all web applications.  I know I can deactivate the feature on the web applications where I don't use it, but I don't want it to be deployed to those web applications. How can I deploy the solution so my web part is only available in a certain web application. The idea is that I want to be using the same web parts in the different web applications, but they have minor changes for each different web application. So I want to deploy version 1.1 to web application A and deploy version 1.2 to web application B
97278
I have wsp files that contain some web parts that I need to change the functionality of.  Without the actual solution or project files, using just the wsp, is it possible to edit them?   I changed the files to cab's, and used IZArc to open them.  I have a dll, xml files, and .webpart files.    I created a new project, importing from a solution package, as per the directions here: , but all I get are the .webpart files, no c#.  Is it possible to change the c# files from these?
66768
I've got my code sort of segregated as "coherent blocks" that I can insert into a longer "configuration script" over and over, and one of the patterns I'm using is this:  CREATE TABLE #WidgetSetting  (     WidgetID bigint not null,     Name nvarchar(100) not null,     Value nvarchar(max) not null,     CreateDate datetime not null )  INSERT VALUES  MERGE TABLES  DROP TABLE #WidgetSetting   But now SSMS is complaining that the object already exists by the next time the CREATE TABLE fires. What gives?  I think it's obvious I'm going to have to declare the table once at the beginning of the script, truncate instead of drop, but it's frustrating, naturally, to not be able to just drop the table and use the same name again.
6613
I am setting up a continuous integration for a team development process using GitHub and Ant (and eventually Jenkins) and have a problem with deploying to dev sandboxes to keep them in sync with Production:  How do you programmatically customize the Package.xml and the src/ folders to only include the metadata files that have changed in Production?  Our Production environment has over 5000 files so if I retrieve the entire metadata set from Production to the master branch, rebase the dev sandbox branch and attempt to deploy that to its dev sandbox, I hit the API limit for deploying metadata via the API. The metadata in Production changes both from packages deployed from sandboxes as well as from changes made directly in Production by Admins, so I cannot rely on combining all pushed metadata files and package.xml files.
38949
Suppose some author has enforced his Windows application to be single instance. Is there any way to make multiple instance of this application (aside from running inside a virtual machine or requesting the author to rewrite the app)?  If there is a readymade tool, I would like to know it. (I have tried sandboxie and Altiris SVS without luck).  If there is nothing out there, I want to program a tool/hack that will let me do this.  I am looking for pointers where to start - what will be involved, what skills would be needed. I have moderate programming skills in C and Java.  If this cannot be done, please explain why.  EDIT: I know its a bad idea but I still need to do it (for various reasons). I want a generic way that works for any application and does not introduce errors.
77274
I have a design idea for a large project at work and I think I have it figured out but would really love to get some feedback on a) the idea in general, and b) my proposed implementation.  The basic idea is simple: I want to create an ASP MVC application that can be extended in the future with additional controllers and views without having to recompile the code. The idea is to have one MVC application with a very basic set of features and then extend the functionality by adding another 'Application.dll" that contains controllers, data, and business logic that are specific to that application. The views will simply be copied into the same directory as the main MVC application during install.  The problem is that MVC does its routing on types within the same assembly so even if I move the routing definitions to the database, the MvcHttpHandler would not be able to route anything to the new Dll since it doesn't "know" the controller types in it. Looking at the MVC code, I found that to load the controllers they are simply calling Activator.CreateInstance which looks only in the current assembly.   My solution is simple but maybe I'm missing something: I will override the MvcHttpHandler by either replacing the ControllerFactory directly (not sure how to do that) or by duplicating that functionality in a derived class. The new code will read the request and try to load the controller first from the current assembly and then from the extended ones. Once the proper assembly is found, I will use CreateInstance and pass that assembly to it to get the controller I want.
42669
Dose anyone know how to make application folders like the 'utilities' folder? It's because I have a lot of apps and want to group them by topic.
53424
I've been spending some time looking at Phil Haack's article on  very interesting stuff.  At the moment I'm trying to figure out if it would be possible to use the same ideas to create a plug-in/modular architecture for a project I'm working on.  So my question is: Is it possible to have the Areas in Phil's article split across multiple projects?  I can see that the name spaces will work themselves out, but I'm concerned about the views ending up in the right place. Is it something that can be sorted out with build rules?  Assuming that the above is possible with multiple projects in a single solution, does anyone have any ideas about the best way to make it possible with a separate solution and coding to a predefined set of interfaces? Moving from an Area to a plug-in.  I have some experiences with plug-in architecture but not masses so any guidance in this area would be useful.
118622
In Visual Studio 2008, I can see all my project files in my Solution Explorer, and these files exist in an actual diectory. However, if I add a file to that directory (let's say, an test.sqlite file in the App_Data folder, or say, images created by some other program), then these files do NOT appear in my Solution explorer, even if I click the refresh button. How can I make files created by other applications appear in my Solution Explorer? (so far, I have to create them somewhere else, then copy and paste them into the solution explorer itself, but there must be an easier way).  Edit: Is there an advantage to this &quot;fake solution view&quot;, i.e. I could have a file &quot;test.sqlite&quot; in my App_Data directory but in my solution, it could be appearing in my root directory. Coming from an Eclipse WYSIWYG Solution Explorer mindset, I don't see the advantage of having this extra virtual meta-information about the actual files in your directory. Is there a way you get an advantage out of this metaphor?
28345
I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment.   The application reads settings from Web.config file via  property.  I use Build/Publish command to deploy the application to production server via FTP and then manually replace remote Web.config with correct one.  Is it possible somehow simplify the process of deployment? Thanks!
103765
I have a content management application in the root of my website, and I'm trying to use a different app (a billing application) under a sub-folder. Unfortunately, the web.config of the root site is interfering with the sub-app.  Is there a way to just disable web.config inheritance for a sub-folder?  Update: As linked by , using the &lt;location&gt; tag can prevent inheritance for part of the web config, as follows:  &lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;configSections&gt;     .... &lt;/configSections&gt; &lt;location path="." inheritInChildApplications="false"&gt;     &lt;appSettings&gt;         ....     &lt;/appSettings&gt;     &lt;connectionStrings/&gt;     &lt;system.web&gt;         ....     &lt;/system.web&gt;     &lt;system.codedom&gt;         ....     &lt;/system.codedom&gt;     &lt;system.webServer&gt;         ....     &lt;/system.webServer&gt; &lt;/location&gt; &lt;runtime&gt;     .... &lt;/runtime&gt; &lt;/configuration&gt;   The &lt;configSections&gt; and &lt;runtime&gt; sections will not accept being enclosed in the  tag...so I guess this only does most of the job. Anybody know how to do it better?
73948
I need to edit the web.config file on a live Sharepoint environment, but I'm unsure what will happen if I do (I want to output custom errors).  Will this cause the IIS6 worker process to recycle?  Will active users lose their session state because of this?  Or can I safely edit the file?
114641
we're currently planning a larger WPF LoB application and i wonder what others think being the best practice for storing lots of UI settings e.g.   Expander States Menu orders Sizing Properties etc...   i don't like the idea of having dozens of stored values using the delivered SettingsProvider (i.e. App.config file) although it can be used to store it in an embedded database using a custom SettingsProvider. being able to use some kind of databinding is also a concern. Has anyone had the same problems?   What did you do to store lots of ui user settings?