Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

Mominul Islam 0 Reputation points
2024-10-23T14:44:28.9366667+00:00

we have a .net core 6 MVC area based project. There are 10 area here. Project size about 5 gb. we have used visual studio 22 community version 64byte. Dapper is used for database access.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,596 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,176 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,002 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 66,061 Reputation points
    2024-10-23T15:30:00.9333333+00:00

    String literals go into pool, so if duplicated there is only one copy. You are hitting the max size of literal pool supported by the compiler. Move some of your larger string literals to resource strings.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.