Use a different *.config file, depending on IIS application pool .NET version

Posted by LeeCambl on Stack Overflow See other posts from Stack Overflow or by LeeCambl
Published on 2013-10-23T15:50:37Z Indexed on 2013/10/23 15:53 UTC
Read the original article Hit count: 135

Filed under:
|
|
|

I'm looking or a way to programmatically determine which version of the .NET Framework an application pool is using in IIS, at runtime, and for a website application to then use that information to choose which *.config file it should use. Is it possible? I'm not sure where to begin.

Quite a broad question, and I'm open to any method of solving the problem, so fire away!

Thanks in advance, you lovely Stack Overflowers!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET