-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet run
cannot run the project due to System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')
exception
#23148
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I've got the same problem on Raspberry Pi 400.
|
This is a duplicate of #23004, which seems to be triggered by a locale setting. On the Raspberry Pi, you might be able to work around the bug by changing the |
Thanks @KalleOlaviNiemitalo, for Windows PowerShell I found the environment variable
|
sometimes dotnet program won't even run |
The environment variable |
I have the same problem as well. I solved it by changing Date format on windows to Christian era and Regional format to US I hope it will help you. refer https://docs.microsoft.com/en-us/dotnet/core/runtime-config/globalization |
Thank you so much. |
Thank you, This helped me too This happened on my friend's machine where he used to use Thailand as his regional format. The date on his machine used to be written in Thai, Upon changing the regional to English (United States), the problem's solved. We're on SDK v7 |
Folks - if you're having this issue can you please comment (or edit your existing comments) with
I think this was fixed in 7.0.200 by #27566, so if you're using 7.0 SDKs make sure you're at least on that version. |
Thank you so much. My locale is Thai/Thai. SDK is 7.0.400. I had the issue while try to install
|
you save my life, thank a lot |
Describe the bug
dotnet run
is unable to run the program due to error butdotnet build
works fine.To Reproduce
dotnet new console
dotnet run
Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: