dotnet / dotnet/Scaffolding

Error while try to add saffloding "startIndex cannot be larger than length of string. (Parameter 'startIndex')"

Open
#3,099 3 comments 0 reactions 0 assignees View on GitHub
area-scaffolding customer-reported Triage-MoreInfo
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

Hi, I'am use .NET 9.0 i found problem when i create new scaffolding item it error message

Error while try to add saffloding "startIndex cannot be larger than length of string. (Parameter 'startIndex')" and cannot create it.

![Image](https://github.com/user-attachments/assets/cec4d70c-17c5-4d00-acd4-d9a45b09b3a1)

That i can connect yo database and migration on database.


net9.0
enable
enable





all
runtime; build; native; contentfiles; analyzers; buildtransitive



all
runtime; build; native; contentfiles; analyzers; buildtransitive




After that I found how to solve it problem I'm change Reginal Format on window 11 to English (United State) that can Solve problem it.
![Image](https://github.com/user-attachments/assets/f92065fc-cbeb-4c76-8103-27425d814983)

I would like to know why this problem was opened.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.