Error when executing the DB command: System.InvalidOperationException: The type 'NinjaTrader.NinjaScript.Strategies.Franatas.Miste rBotFullMicros' cannot be deserialized because it contains a property 'CierreSesion' that has no public setter. in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping mapping, ArrayList list) in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping structMapping) in System.Xml.Serialization.XmlSerializationReaderILG en.WriteLiteralStructMethod(StructMapping structMapping) in System.Xml. Serialization.XmlSerializationReaderILGen.Generate Method(TypeMapping mapping) in System.Xml.Serialization.XmlSerializationILGen.Gen erateReferencedMethods() in System.Xml.Serialization.XmlSerializationReaderILG en.GenerateEnd(String[] methods, XmlMapping[] xmlMappings, Type[] types) in System. Xml.serialization.tempassembly.Generaterefemitasse mbly (xmlmapping [] xmlmappings, type [] types, string defaultnamespace, evidence evidence) in System.xml.Serialization.tempassembly..Ctor S, Type [] Types, String DefaultNamespace, String location, Evidence evidence) in System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) in System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) in NinjaTrader.NinjaScript.StrategyBase. ToXml() in NinjaTrader.NinjaScript.StrategyBase.DbAdd() in NinjaTrader.Cbi.DB.DBThread()
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
error in registration
Collapse
X
-
error in registration
can you help with this
Error when executing the DB command: System.InvalidOperationException: The type 'NinjaTrader.NinjaScript.Strategies.Franatas.Miste rBotFullMicros' cannot be deserialized because it contains a property 'CierreSesion' that has no public setter. in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping mapping, ArrayList list) in System.Xml.Serialization.TypeScope.GetSettableMemb ers(StructMapping structMapping) in System.Xml.Serialization.XmlSerializationReaderILG en.WriteLiteralStructMethod(StructMapping structMapping) in System.Xml. Serialization.XmlSerializationReaderILGen.Generate Method(TypeMapping mapping) in System.Xml.Serialization.XmlSerializationILGen.Gen erateReferencedMethods() in System.Xml.Serialization.XmlSerializationReaderILG en.GenerateEnd(String[] methods, XmlMapping[] xmlMappings, Type[] types) in System. Xml.serialization.tempassembly.Generaterefemitasse mbly (xmlmapping [] xmlmappings, type [] types, string defaultnamespace, evidence evidence) in System.xml.Serialization.tempassembly..Ctor S, Type [] Types, String DefaultNamespace, String location, Evidence evidence) in System.Xml.Serialization.XmlSerializer.GenerateTem pAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) in System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) in NinjaTrader.NinjaScript.StrategyBase. ToXml() in NinjaTrader.NinjaScript.StrategyBase.DbAdd() in NinjaTrader.Cbi.DB.DBThread()Tags: None
-
Hello franatas,
Thank you for your post.
This error seems to be related to the property "CierreSesion" in your strategy MisterBotFullMicros. Please provide a snippet of how you have this property defined in the properties region of your strategy so we may better assist you.
I look forward to your reply.Emily C.NinjaTrader Customer Service
-
Originally posted by franatas View Postok, leave me a public bool CierreSesion { get; private set; }
I see you are using a private setter:
{ get; private set; }
please remove the private modifier from the setter then re-compile and this should resolve the error.
Thank you for your time and patience.Emily C.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by FishTrade, Today, 03:42 PM
|
0 responses
1 view
0 likes
|
Last Post
by FishTrade
Today, 03:42 PM
|
||
Started by Richozzy38, Today, 01:06 PM
|
3 responses
14 views
0 likes
|
Last Post
by Richozzy38
Today, 03:27 PM
|
||
Started by ttrader23, Today, 09:04 AM
|
2 responses
12 views
0 likes
|
Last Post
by ttrader23
Today, 03:22 PM
|
||
Started by geotrades1, Today, 07:54 AM
|
10 responses
26 views
0 likes
|
Last Post Today, 03:07 PM | ||
Started by ninza33, Yesterday, 12:31 PM
|
3 responses
16 views
0 likes
|
Last Post Today, 02:57 PM |
Comment