Friday, July 13, 2012

Error: The version of the .NET Framework launch condition '.NET Framework 4' does not match the selected .NET Framework bootstrapper package

After trying out the solutions suggested on THIS PAGE and still didn't get the issue resolved, I found the solution, the fix, the answer!

The primary fix suggested by the people there is:

1.  Main Project Properties - Compile Tab - Advanced Compile Options -  Target Framework
 Pics for step 1:





2.  Deployment Project Properties - Prerequisites - Correct Framework checked.
Pics for step 2:




3.  Right-click on Deployment project - View - Launch Conditions.  In the Launch Condition tab, right-click the .Net Framework Launch condition, then show Properties Window.  In the Properties Window, make sure that the Version property is the correct Framework.
Pics for Step 3:
 
 


How I SOLVED it:

If after doing the above steps you still have the error try this:
1. Right Click the Installer Project, on View > Launch Conditions.
2. Click on .Net Framework
3. On the Properties page, Change the Version to Any.

4. Rebuild the solution.
5. Change the Version back to your target framework. In my case it's .NET Framework 4.



That's it. The warning message disappeared after I did this. I don't know why it happens but I fixed it this way.


C#, Visual Studio 2010,







Wednesday, July 11, 2012

IB API, reqMktDataEx : error code 200 no security definition has been found for the request


Have you ever encountered this error? I can't figure out for the life of me what is wrong with my IContract. I've made it exactly as it is on the VB.NET sample they included but I'm still getting "error code 200".

I tried using reqMktData() and thankfully it worked! But I am not satisfied. I want to find out what's wrong with my IContract. Here's the inspection before the parameters are passed to reqMktDataEx()

If you've encountered the same error, please share on how you solved it.

EDIT 5 minutes later:

I solved it damn it.

After calling Tws.CreateContract(), do not change IContract.conId ..

why do I need hours to solve such problems... these guys need to work on their documentation.

=======================
oTws.reqMktDataEx(quote.TickerId, quote.contractInfo, quote.GenericTicks, (int)quote.Snapshot);




+ quote


quote.GenericTicks
string

quote.Snapshot 0 int?

quote.TickerId 1 int
- quote.contractInfo {System.__ComObject} TWSLib.IContract {System.__ComObject}
+ [System.__ComObject] {System.__ComObject} System.__ComObject

comboLegs null dynamic

conId 1 int

currency USD string

exchange SMART string

expiry
string

includeExpired 0 int

localSymbol
string

multiplier
string

primaryExchange NASDAQ string

right
string

secId
string

secIdType
string

secType STK string

strike 0 double

symbol AAPL string

underComp null dynamic
- Dynamic View Expanding the Dynamic View will get the dynamic members for the object

comboLegs null

comboLegsDescrip
System.String

conId 1 System.Int32

currency USD System.String

exchange SMART System.String

expiry
System.String

includeExpired 0 System.Int32

localSymbol
System.String

multiplier
System.String

primaryExchange NASDAQ System.String

right
System.String

secId
System.String

secIdType
System.String

secType STK System.String

strike 0 System.Double

symbol AAPL System.String

underComp null
=======================


IBAPI, TWS API, TWSAPI,

Thursday, June 28, 2012

Is Lazada Philippines a scam?

MY experience purchasing at www.lazada.com.ph . A scam or not?

Update Jul 13:

So in the end, I decided to refund my order since more than a month passed since I paid for the item. It seems like they don't track how my orders have been placed on a particular item so what they have in inventory will not match what is displayed on the website. A TYPICAL CASE OF OVERBOOKING -- similar to what budget airlines do. This is the primary reason why potential lazada.com.ph SHOULD AVOID PURCHASING. Imagine how much hassle it would cost you if you paid for an item but you are kept in the dark whether it will arrive or not -- for more than a month. A call from them would have mitigated my frustration BUT THERE WAS NO CALL NOTIFYING ME THAT I WON'T BE RECEIVING MY ITEM. At first, I had to contact them by email which took 5 days to more than a week before I got a response and some were ignored. I tried their hotline which usually made me wait for 5-10minutes and give a different response every time and different from their online support. Imagine doing this for a month. They promise to call you once they get an update but they never do unless you call them a third time within a day. Holy crap impossible. Online merchants from sulit and tpc do way better than these guys.

When I finally decided to refund the item, they said that it would take 1-3 business days. But really, I had to follow up 3 times and took 5 days for it to be refunded. Add the 3day check clearing time to that and it took a grand total of 8 days. They said that they'll email me a scan of the deposit slip but all that I got is a text email 2 days after the check was deposited in my account.

In the end, I finally bought the item from a merchant in tpc. I had to spend 180p for the shipping and it cost 500p more in total. They have a promo that gives 300 pesos discounts on orders 1200p up. The item I was ordering costs approx 1100k+, so I decided to order another item that costs 350+ so that I can avail of the promo. The thing is that the 300p discount will be divided on the items. The 1100+ item got the 250+ discount and the 350+ item got about 50p discount. I received the 350+ item a week after I paid for the item which is the item I did not really need. And the 1100+ peso item that I really intended to buy did not arrive. I only got the item I did not intend to buy which I paid 300 pesos for. I RECEIVED THE ITEM I DID NOT REALLY WANT, AND PAID FOR IT WHICH WOULD HAVE BEEN ALMOST FREE IF I RECEIVED THE INTENDED ITEM. YES, THAT'S RIGHT. I FEEL LIKE I WAS SCAMMED into buying an item that was supposed to be free.

So, this transaction cost me:

About an hour to pay for the items
Over a month of waiting
Hours emailing support
Hours waiting on their hotline
Mental torture because of missed promises
40% more cash spent on the actual item


Final Verdict on lazada.com.ph:

DEFINITELY AVOID AT ALL COSTS.
*Unless you live in metro manila and you can avail of Cash on Delivery (COD) then you'll have more peace of mind since you won't be charged unless the items arrive. The only case I'll warn you is if they ship the items individually, and the cheaper items arrive first, then you are probably in trouble.



------------------------------

It might be a legit business but god damn are they disorganized. one of the items i ordered didn't arrive because they said that it's out of stock. THEY hAD THE FRIGGIN ITEM LISTED ON THEIR WEBSITE FOR 7 DAYS AFTER  I RECEIVED THE FIRST ITEM SO WHY ARE THEY TELLING ME THAT IT'S OUT OF STOCK. WHY DID THEY HAVE IT LISTED FOR 7 DAYS IF THEY HAVE NO STOCK.

If I were you, look somewhere else. god damn.