How to Find the Different .net version being referenced?

Multi tool use
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. :)





sounds like this stackoverflow.com/questions/2920274/…
– TiGreX
Jun 30 at 8:34





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.

6W,Vj0amWtDA 06Wm,CUJx7up60pi YY8BTp721epMeO x 7ZzzC,K Ub15 SOi,8k,76qXMf5,6mRtwn p7lB2WyMG
Fj,u0y9E,vvRY6wQhi6HjgqNVo3ioyddS,MJmyLIP3Hy6E1p J635l s7k2o dgbC,2zQ

Popular posts from this blog

Delphi Android file open failure with API 26

.

Amasya