function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VasilShVasilSh 

Login to live instances account

Hello
I am developing addin for outlook with sforce office toolkit.
I've got a developed login. All functions was ok and working correctly.
But when we strting testing with live instance account. It was impossible to login
Please look at source below I am using C++ (VS6.0):

CComQIPtr m_SFSession
hr =::CoCreateInstance(CLSID_SForceSession3, NULL, CLSCTX_INPROC_SERVER, IID_ISForceSession3, (void**)&m_SFSession);
if(FAILED(hr))
{ return;}

VARIANT_BOOL hr = m_SFSession->Login(vName,vPassword);
if(hr == VARIANT_TRUE)
{
...
}
else
{
....
}


Please advise
VasilShVasilSh
Just more comments:
I can login when using my developer account BUT NOT WHEN using the live account.
I need help
ASAP PLEASE
SuperfellSuperfell
and your live account is enterprise edition ?
foghornfoghorn
The error message / error code set in the session will tell you why you can't login.
VasilShVasilSh
Thank you for your answer
In my case, my live instance is professional editon.
What is the difference between development and live instace account?
Maybe I have to put a diferent url to SetServerUrl() ?
But I don't know which one.
As I wrote login to development account correct and I can see GetServerUrl ();
even when I put the same url to SetServerUrl() I am able to login to SF
But what should I do in case of live instance account?
Thank you
Vasil
SuperfellSuperfell
Professional Edition doesn't include API access.
VasilShVasilSh
Thank you for your answer
I've got the folowing error
SFORCE_INTERNAL_ERROR = 1,
Could you advice?
In case of development login all is OK
Thank you
Vasil
VasilShVasilSh
So In case of enterprise edition all will be OK ?
How can I buy such account?
Thank you
Vasil
bouscalbouscal
Within Salesforce.com you should be able to click on Setup > Subscription Summary and locate the name of your Sales contact.

HTH
foghornfoghorn
Humm, you should get 5069 "api not enabled for this org error." There could be something else going on, but in any event Profesional Edition does not include api access as Simon Says.

You can contact your salesforce account executive for details and pricing on api access or an upgrade to enterprise edition account.