During the process of loading data in a grid on our production server, I encountered a script error at the bottom left corner of the page. Interestingly, this error only occurs on the production server and works perfectly fine on the local server.
Here are the details of the webpage error:
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; BTRS123646; Embedded Web Browser from: ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) Timestamp: Tue, 9 Oct 2012 12:11:23 UTC
Message: Unterminated string constant Line: 111115201 Char: 187 Code: 0
URI: XYXZ/MYApp/MyPage.aspx
Below is the code snippet responsible for binding data to the grid:
try
{
// C# code goes here
}
catch(Exception ex)
{
return;
}
finally
{
// Close connection if open
}
If you're wondering how to identify the line number within your C# code and how to fix it, please seek assistance. We're here to help!