Server Error in '/CSA' Application.

Invalid column name 'rowid'., SQL='Select * From fw_Attachments where rowid = '79745E7A-217F-4B98-9F77-20A5F28A69E5''

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: Invalid column name 'rowid'., SQL='Select * From fw_Attachments where rowid = '79745E7A-217F-4B98-9F77-20A5F28A69E5''

Source Error:


Line 40:             catch (Exception ex)
Line 41:             {
Line 42:                 throw new Exception($"{ex.Message}, SQL='{sql}'");
Line 43:             }
Line 44:         }

Source File: C:\inetpub\wwwroot\mbr\WebSite\App_Code\cs\DBUnit.cs    Line: 42

Stack Trace:


[Exception: Invalid column name 'rowid'., SQL='Select * From fw_Attachments where rowid = '79745E7A-217F-4B98-9F77-20A5F28A69E5'']
   DBClass.GetDataTableRange(String sql, Int32 startRecord, Int32 maxRecords) in C:\inetpub\wwwroot\mbr\WebSite\App_Code\cs\DBUnit.cs:42
   DBClass.GetDataTable(String sql) in C:\inetpub\wwwroot\mbr\WebSite\App_Code\cs\DBUnit.cs:72
   DownloaderHandler.Response(HttpRequest Request, HttpResponse Response, HttpSessionState session) in C:\inetpub\wwwroot\mbr\WebSite\img.ashx:54
   DownloaderHandler.ProcessRequest(HttpContext context) in C:\inetpub\wwwroot\mbr\WebSite\img.ashx:21
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4110.0