This project is read-only.

OOTB: Method Not Found

Oct 24, 2012 at 1:14 PM

Hi,

I get 'Method Not Found' errors in Gateway OOTB. Gateway started, Indicator_Net loaded on chart.

 24-10-2012 14:13:04 > 127.0.0.1:13136 : Connection opened
 24-10-2012 14:13:04 > 127.0.0.1:13136 :  --> 1492382EURUSDPrevDayHighLowIndicator|PrevDayHighLowIndicator|Start|
 24-10-2012 14:13:04 > 127.0.0.1:13136 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 24-10-2012 14:13:04 > 127.0.0.1:13136 : Connection closed

Did I miss something?

Thumbs up for this project. More samples are in order, will release my own WCF sample when ready.

Baluda

Oct 24, 2012 at 1:38 PM

can you please enable logs and run gateway as Administrator and check out error message in EventLogViewer. Perhaps CallStack will gives a me hint.

Init() method goes without any troubles?

How about TestScript?

Thanks for using this project.

WE ARE CLOSE WITH NEW RELEASE!! :) it will also introduce WCF and more new shit and well as improved documentation and samples. Hold on, we have something cool in next week.

Oct 24, 2012 at 2:20 PM

Running as Administrator gives same results. Init() is not found either,

 24-10-2012 15:12:41 > 127.0.0.1:14987 : Connection opened
 24-10-2012 15:12:41 > 127.0.0.1:14987 :  --> 1492382EURUSDPrevDayHighLowIndicator|PrevDayHighLowIndicator|Init|
 24-10-2012 15:12:42 > 127.0.0.1:14987 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 24-10-2012 15:12:42 > 127.0.0.1:14987 : Connection closed

Here is the one of the entries in the event log:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="127.0.0.1:2007" />
<EventID Qualifiers="0">0</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2012-10-24T13:19:32.000000000Z" />
<EventRecordID>29</EventRecordID>
<Channel>TradePlatform.MT4</Channel>
<Computer>Paul-PC.delta.local</Computer>
<Security />
</System>
- <EventData>
<Data>System.MissingMethodException: Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System.Object). bij TradePlatform.MT4.Gateway.ExpertProvider.GetOrCreate(ExpertInfo expertInfo) bij TradePlatform.MT4.Gateway.TcpServer.HandleClientComm(Object client)</Data>
</EventData>
</Event>
 
Baluda
Oct 24, 2012 at 6:55 PM

Feels like you have some input parameters for Indicator in app.config.

Make sure you have them as public properties in Indicator class or remove them from app.config file.

Oct 25, 2012 at 9:33 AM

I reinstalled TradePlatform 1.2.4 and tried again, with the same results. Remember, this is all OOTB, downloaded, unzipped and installed without any changes. The script handler too gives the same result.

 25-10-2012 10:27:30 : Listening at 127.0.0.1:2007

 25-10-2012 10:27:32 > 127.0.0.1:39127 : Connection opened
 25-10-2012 10:27:32 > 127.0.0.1:39127 :  --> 1492382EURUSDPrevDayHighLowIndicator|PrevDayHighLowIndicator|Start|
 25-10-2012 10:27:32 > 127.0.0.1:39127 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 25-10-2012 10:27:32 > 127.0.0.1:39127 : Connection closed

 25-10-2012 10:27:37 > 127.0.0.1:39128 : Connection opened
 25-10-2012 10:27:37 > 127.0.0.1:39128 :  --> 1492382EURUSDPrevDayHighLowIndicator|PrevDayHighLowIndicator|DeInit|
 25-10-2012 10:27:37 > 127.0.0.1:39128 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 25-10-2012 10:27:37 > 127.0.0.1:39128 : Connection closed

 25-10-2012 10:28:08 > 127.0.0.1:39129 : Connection opened
 25-10-2012 10:28:08 > 127.0.0.1:39129 :  --> 1492382EURUSDTestScript|TestScript|Init|
 25-10-2012 10:28:08 > 127.0.0.1:39129 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 25-10-2012 10:28:08 > 127.0.0.1:39129 : Connection closed

 25-10-2012 10:28:08 > 127.0.0.1:39130 : Connection opened
 25-10-2012 10:28:08 > 127.0.0.1:39130 :  --> 1492382EURUSDTestScript|TestScript|Start|
 25-10-2012 10:28:08 > 127.0.0.1:39130 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 25-10-2012 10:28:08 > 127.0.0.1:39130 : Connection closed

 25-10-2012 10:28:08 > 127.0.0.1:39131 : Connection opened
 25-10-2012 10:28:08 > 127.0.0.1:39131 :  --> 1492382EURUSDTestScript|TestScript|DeInit|
 25-10-2012 10:28:08 > 127.0.0.1:39131 : Methode niet gevonden: Void System.Reflection.PropertyInfo.SetValue(System.Object, System
.Object).
 25-10-2012 10:28:08 > 127.0.0.1:39131 : Connection closed

 I am happy to wait for the next version.

Baluda

Oct 25, 2012 at 10:17 AM

crazy. no idea without debugging. I would be happy to send you pdb files in order to see where exactly this issue comes up.

In general, I don't see problems in code. only place where PropertyInfo.SetValue used is setting up input parameters for Application, but you claim that not the case.

I can also supose that it's sort of access security problem. can you try to run Gateway.exe as Administrator or post here you system environment details. Would be also great if you could test on other PC.

Oct 25, 2012 at 1:52 PM

I tried running as Administrator without positive results. I checked security settings on all relevant folders and files, the are OK.

If you could provide pdb files I can check what's up.

On the other hand I can wait until the next version is ready, it is up to you.

Baluda

Oct 25, 2012 at 2:17 PM

When I meant access security I was about runtime access for ex. reflection needs additional rights. Anyway. next release is on his way. Let's hope it will clarify situation.

Oct 29, 2012 at 11:27 AM

FYI, v2.0.0 did the trick.

One issue though, I am still on VS2010 so I had to install .Net Framework 4.5 to start shell.exe. After installation of .Net 4.5 shell.exe reported it could not find data.services 5.0, so I had to install WCF Data Service 5.0 too. This could be an issue if a future user does not have WCF 5.0.

Keep it up!

Baluda

Oct 29, 2012 at 11:33 AM

WCF Data Service - ahh, we accidentally missed that it is not part of .NET 4.5. We should include these references in release package.

Thank you pointing