I’m using Visual Studio 2012 Ultimate version.
I’ve got this error and I don’t know how to solve it.
Culture is not supported.
Parameter name: name
en-UK is an invalid culture identifier.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.Exception Details: System.Globalization.CultureNotFoundException:
Culture is not supported. Parameter name: name en-UK is an invalid
culture identifier.
please help me
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Go to Debug -> Options -> Debugging and tick “Enable Just My Code”
Method 2
You should try en-GB for English (United Kingdom)
Method 3
In my case with IIS Express, it was caused by its inability to write to C:WindowsMicrosoft.NETFrameworkv4.0.30319Temporary ASP.NET Files as IIS Express runs by a current user. So I’ve added permission to write to it for the current user to solve the error.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0