How to Find the Different .net version being referenced?

Multi tool use
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. :)
Are you deploying to Azure? Not all cultures are supported on Azure App Services. See social.msdn.microsoft.com/Forums/en-US/…
– Rui Jarimba
Jun 30 at 8:42
@RuiJarimba : Nope not azure.
– Mona
Jun 30 at 8:45
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
sounds like this stackoverflow.com/questions/2920274/…
– TiGreX
Jun 30 at 8:34