Showing posts with label Transformations. Show all posts
Showing posts with label Transformations. Show all posts

Wednesday, January 18, 2017

How to solve a problem

1. Define the problem
The key to a problem definition is ensuring that you deal with the real problem. You should diagnose the situation so that you can focus on root causes of a problem.
2. Analyze the problem
Analysis is a process of discovery of the facts, finding out what you know about the situation. Write down the major categories of causes of the problems.
Write sub–causes branching off the causes.Illustrate the main causes and sub-causes leading to the effect.
3. List the possible options
After creating a number of ideas, you can see how different ideas could be connected together and create a plan of action.
4. Select the best solution
Skilled problem solvers use a series of considerations when selecting the best alternative. Look at each potential solution and carefully analyze it. You will have a clear overview of the pros and cons of each solution. Selecting the best solution becomes easier than ever.
5. Implement solution
Now, you’ve found the best solution. It’s time to assign responsibility and implement your solution.
6. Evaluate your results

Tuesday, May 17, 2011

Web.config transformations in .NET 4.0

The web.config has now been refactored, and with ASP.Net 4 a lot of the settings that were previously found in the web.config file have now been moved to the machine.config file. This significantly reduces the size of the file, which I think is a great bonus.

Web.config transformations cater for moving your application between your relevant environments (e.g. DEV, QA, PROD). The transformations work on the relevant configurations you setup.
To create your own Configuration build with configuration transformations, create a new ASP.NET Web Application in Visual Studio 2010. Next, in the menu select "Build" and then "Configuration Manager". In the "Active Solution Configuration" drop down, select "New". Name the relevant configuration, for example I'm calling mine "DEV" and copying the settings from the "Debug" configuration.

Make sure "Create new project configurations" is selected. Once you click okay, you will see your Web.config file now has a "+" next to it in your solution explorer.

If you don't see the "+", build you solution, right click the web.config file and select "Add Config Transformations".
You will see for each of your build configurations there will be a "Web.[Build Configuration Name].config" file. If you open any of these files, you will see place holders for different sections of your original web.config file.

To change settings per your relevant build configuration, check out the following MSDN Article:Web.config Transformation Syntax for Web Application Project Deployment

Hope this helps.