Server Error in '/' Application.

Conversion failed when converting the nvarchar value 'iruklettera_nar' to data type int.

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.Data.SqlClient.SqlException: Conversion failed when converting the nvarchar value 'iruklettera_nar' to data type int.

Source Error:


Line 84:                 relateTbl = Master.dbGet.getTable("select case when l.name is null then application else l.name end as lName, case when r.name is null then related else r.name end as rName,relates.id as relateId, relates.name as relateName,char_Relations.detail as relateDesc from (((story_event INNER JOIN char_relations ON char_relations.event = story_Event.[id#]) left outer join chars as l on char_Relations.application = l.shortname) LEFT OUTER JOIN chars as r on char_Relations.related = r.shortname) INNER JOIN glossary as relates on (char_relations.relation = cast(relates.id as nvarchar(10)) or char_Relations.relation = relates.shortname) where story_event.game = " & pageId)
Line 85: 
Line 86:                 quoteTbl = Master.dbGet.getTable("select reason as quoteName, detail as quoteDesc FROM char_quote WHERE game = " & pageId & " and (application = '' or application = -1 or application is null) order by reason")
Line 87: 
Line 88:                 'Trivia

Source File: D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\gameMain.aspx    Line: 86

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting the nvarchar value 'iruklettera_nar' to data type int.]
   Microsoft.VisualBasic.CompilerServices.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) +497
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +391
   Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) +356
   ASP.gamemain_aspx.page_load() in D:\InetPub\vhosts\trufenix-1912.package\fightabase.com\wwwroot\gameMain.aspx:86
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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