Hi Ronnie,
I was a bit surprised and did a test... Which was successfull (PL11). What I did:
comp2 = new SAPbobsCOM.Company();
var cookie = comp2.GetContextCookie();
var context = application.Company.GetConnectionContext(cookie);
comp2.SetSboLoginContext(context);
comp2.CompanyDB = "myNewDb";
var retCode = comp2.Connect();
All without specifying any of the existing values just like you did, but I don't thing this is the issue. In my understanding, the issue is that you are getting the initial cookie from the wrong company:the code is trying to get it from an already connected company, insead of the one for which you want to connect.
Regards,
Eric