viswajithkrishna / salesforce-dotnet

Automatically exported from code.google.com/p/salesforce-dotnet
0 stars 0 forks source link

INVALID_SESSION_ID #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've started getting INVALID_SESSION_ID exceptions when trying to create a
new lead.  It works fine, and then two hours later (the timeout period for
a session) it stops working.

What I've done to fix the problem is modify the SforceProvider.cs file, and
modified the Login() method, to logout then back in if the
INVALID_SESSION_ID exception is thrown.  The INVALID_SESSION_ID exception
was handled in the Query() method, but not in Update() or Add().

See attached file for changes (specifically lines 122-150 and 222-230.

Original issue reported on code.google.com by adamco...@gmail.com on 29 Oct 2009 at 3:27

Attachments:

GoogleCodeExporter commented 9 years ago
I to have been seeing this issue intermittently. Using Log4Net, the error  
timespan for 
me is roughly 4 hours with the same INVALID_SESSION_ID.

Original comment by mteece@gmail.com on 3 Nov 2009 at 6:47

GoogleCodeExporter commented 9 years ago
I too am now getting the INVALID_SESSION_ID. But unlike other posts where the 
has been some time between Login and the error, I am now getting the error 
right after login.

Like others, the problem in intermittent although today it seems to be a 
constant error.

This began happening yesterday 5/19/2011.

Any updated ideas?

Thanks

Original comment by j...@mailmessenger.com on 20 May 2011 at 1:11

GoogleCodeExporter commented 9 years ago
Please disregard.

Found problem was related to using the same user credentials in more than one 
application at the same time.

Thanks 

Original comment by j...@mailmessenger.com on 20 May 2011 at 1:28