This topic is locked
[SOLVED]

 Cannot invoke a non-delegate type

12/24/2017 6:07:39 PM
ASPRunner.NET General questions
G
georgeb author

asprunnerNET help says

I can so this

XSession.Session["FirstName"] = data["FirstName"];

however in the after record added event this

XSession.Session["ArrivalPassengerCount"] = values("ArrivalPassengerCount");
errors with (at runtime)
Exception Details: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Cannot invoke a non-delegate type
Source Error:

Line 48: XSession.Session["ArrivalPassengerCount"] = values("ArrivalPassengerCount");
What am I missing?

jadachDevClub member 12/25/2017

It's your brackets. Should be: XSession.Session["ArrivalPassengerCount"] = values["ArrivalPassengerCount"];

G
georgeb author 12/26/2017



It's your brackets. Should be: XSession.Session["ArrivalPassengerCount"] = values["ArrivalPassengerCount"];


turned out to be a data type mismatch ( I tried the brackets same error) needed a .tostring()