Iâm using the downloaded sample code for Chapter 9 and Iâve changed the connection strings to point to my instance of SQL Server (Express). When I run the application I get the following error message:
- An exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll but was not handled in user code
Itâs pointing at line 15 in Index.cshtml:
Code:
@item.Description.Substring(0, 250)
The Data Type of the Description field is ânvarchar(MAX)â and Allow Nulls is set to True.
Any suggestions?
Thanks,
Jim