Posts

Showing posts with the label regioninfo

How to Find the Different .net version being referenced?

How to Find the Different .net version being referenced? I am trying to find the ThreeLetterISORegionName of country "Cyprus" and "Virgin Islands". hence so I have used RegionInfo class using System.Globalization from mscorlib assembly. ThreeLetterISORegionName RegionInfo System.Globalization mscorlib RegionInfo regionInfo = new RegionInfo("CY"); Console.WriteLine(regionInfo.ThreeLetterISORegionName); The above code works fine in my local machine. however after deploying to production I am getting System.ArgumentException with message System.ArgumentException The region name CY should not correspond to neutral culture; a specific culture name is required In my local machine and server I am using .net 4.5.2 version. mscorlibv assembly version is 4.0.30319 .net 4.5.2 mscorlibv 4.0.30319 Any help is much appreciated. :) sounds like this stackoverflow.com/questions/2920274/… – TiGreX Jun...