Validate connection

Forum for .NET developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

Validate connection

Postby MedDBaseSteve » Fri Jan 14, 2011 2:54 pm

Hi, my application uses the API successfully most of the time, but intermittently I get an exception:

User is not authenticated. Access denied.

One thing I have read on this forum is that an idle connection will time out after an hour. In my application I cache the connection object so could this be cause of my exception? If so, is there a good way to 'test' the connection, or do I just have to try to read some data and see if it throws?

Thanks,
Stephen Boissiere
Last bumped by MedDBaseSteve on Fri Jan 14, 2011 2:54 pm.
-
MedDBaseSteve
 
Posts: 3
Joined: Tue Dec 07, 2010 11:45 am

Return to .NET



cron