Last post Aug 30, 2013 04:45 PM by cwchilders
Aug 29, 2013 05:47 PM|cwchilders|LINK
I am implementing the same code for iterating through the keys (per the asp.net blog):
but am getting different keys from two Server2k8R2 IIS 7.5 machines, even though Environment.Version is 4.0.30319 for both.
One is giving me the 2.0 version and the other 4.0; my local dev is giving 4.0; the servers are definitely running under integrated mode 4.0 app pool, and dumping the HttpRuntime properties confirms: ClrInstallDirectory = C:\Windows\Microsoft.NET\Framework64\v4.0.30319
salient code bits (per Imran's blog):
object obj = typeof(HttpRuntime).GetProperty("CacheInternal" ...
System.Reflection.FieldInfo ofi in obj.GetType().GetFields ...
Aug 30, 2013 05:37 AM|sam_jone|LINK
Check the virtual root of the Web server that is hosting the Web application.
Maybe there are several versions in your server machines.
The following article from Microsoft describes how to configure an ASP.NET application to target a specific version of the .NET Framework by running their command-line tool, aspnet_regiis.
HOW TO: Configure Different Versions of an ASP.NET Application Running on the Same Web Server
Hope it can help you.
Aug 30, 2013 04:45 PM|cwchilders|LINK
within the code, the dump of Environment.Version is 4.0.30319; running under AppPool with 4.0 integrated pipeline;