I have installed 1,2,3,3.5,4 .net framework on my server, now they all have machine.config file, which one should I modify to see changes for my web applications in IIS 6.
Asked
Active
Viewed 1,595 times
2
-
Look at the framework version of your application pool to decide. It should be either 2.0 or 4.0 so you can change based on which one is in use based on your application pool – Prashant Lakhlani Oct 21 '13 at 10:19
-
This is similar to http://stackoverflow.com/questions/2325473/where-is-machine-config, I'm linking for reference but this question does have a specific part about IIS 6 so it's not a dup. – Scott Lerch May 19 '14 at 21:39
1 Answers
2
Each version of .NET is installed in different folder and have different machine.config file independent of each other.
ASP.NET 1.x uses %WINDIR%\Microsoft.NET\Framework\v1.1.4322
ASP.NET 2.0 / 3.5 x86 uses %WINDIR%\Microsoft.NET\Framework\v2.0.50727
ASP.NET 2.0 / 3.5 x64 uses %WINDIR%\Microsoft.NET\Framework64\v2.0.50727
ASP.NET 4.0 x86 uses %WINDIR%\Microsoft.NET\Framework\v4.0.30319
ASP.NET 4.0 x64 uses %WINDIR%\Microsoft.NET\Framework64\v4.0.30319
To see which version your application is running on print
Response.Write(System.ConfigurationManager.OpenMachineConfiguration().FilePath);

Mudassir Hasan
- 28,083
- 20
- 99
- 133