Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • JoskerVemeulen 68 posts 262 karma points
    Jun 13, 2019 @ 07:15
    JoskerVemeulen
    0

    Server error Culture

    Hi,

    I have a local V8 project that connects to on online sql DB. Two languages (nl-be and en-be). Works perfect on my local machine. When I publish, it uses the same DB. But I get this error:

    Culture is not supported.
    Parameter name: name
    en-be is an invalid culture identifier.
    

    Any ideas?

  • Brandon Osborne 38 posts 161 karma points c-trib
    Jun 13, 2019 @ 07:35
    Brandon Osborne
    0

    Hiya Josker,

    This isn't a DB or Umbraco issue. It's more of a Windows issue.

    If you execute the following code on the server, do you see en-BE listed? If not, you'll need to install that language pack, or if it's a shared host you're going to have to beg your host to install it.

    @{
        foreach (var culture in System.Globalization.CultureInfo.GetCultures(System.Globalization.CultureTypes.SpecificCultures))
        {
            try
            {
                ri = new System.Globalization.RegionInfo(culture.Name);
                        Response.Write($"{culture.DisplayName} | {culture.Name | culture.LCID <br>");
            }
            catch (Exception ex)
            {
                      Response.Write($"{ex.Message"} <br>");
            }
        }
    }
    

    Sorry for the previous post... I have no idea how it got formatted that way. I know that isn't what I pasted from VS. lol

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies