Ramtin
Ramtin

Reputation: 223

Culture is not supported

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

Upvotes: 12

Views: 51881

Answers (3)

XperiAndri
XperiAndri

Reputation: 1208

In my case with IIS Express, it was caused by its inability to write to C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary 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.

Upvotes: 1

SteveCav
SteveCav

Reputation: 6729

Go to Debug -> Options -> Debugging and tick "Enable Just My Code"

Upvotes: 42

Venson
Venson

Reputation: 1870

You should try en-GB for English (United Kingdom)

List of Cultures

Upvotes: 26

Related Questions