VS2019, Debug, Pop-up - Please indicate the main language

Claudia Pinson 46 Reputation points
2022-09-18T18:31:24.53+00:00

Hi,

I just installed VS2019 Community. I have an existing ASP.NET project that I opened in the VS 2019, and used F5 to debug. The first page is a page that I need to log in, and I am able to log in with no issues.

However, after I log in, now a pop-up window shows up, with:

localhost:44345 says:

The language of this website could not be determined automatcially. Please indicate the main language: (ISO 639-1). Then shows a list of languages, with "en" pre-selected. I clicked the "OK" button, then the pop-up goes away.

Then if I go to another page, this pop-up shows up again.

These pages showing the pop-up are using a "MasterPage.Master".

I have developed this project using VS2012, but has never eexperienced this. I have checked the browser - I'm using Chrome for development with VS2019, and the default language in Chrome has already been set as "English-US".

I searched on stackoverflow but surprisingly did not find any post showing the same issue.

Could someone help with some ideas and suggestions?

242321-vs2019-language.png
Thanks,

Claudia

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XuDong Peng-MSFT 10,176 Reputation points Microsoft Vendor
    2022-09-19T03:29:31.357+00:00

    Hi @Claudia Pinson ,

    Based on your description, I'm not sure how to reproduce this issue, or you can try another browser (eg Microsoft Edge) to test if the same issue exists. Also, you can try the following two methods:

    • Add <meata> tag in head of the MasterPage . meta http-equiv="Content-Type" content="text/html; charset=utf-8"
      • Set the default language of this app in Web.config. <system.web>
        <globalization uiCulture="en-US" culture="en-US"/>
        </system.web>

    Best regards,
    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.