RE: ODBC fails from Windows Service in VS.Net 2008



Thanks, That was it of course. I'd forgotten I'd changed the account on the
VS2003 service 6 months ago.

"Pak-Ming Cheung [MSFT]" wrote:

Just a wild guess:

Which account is used in the service? If it is AUTHORITY\LocalService, it
may not have sufficient privileges to access the network.
http://msdn.microsoft.com/en-us/library/ms684188(VS.85).aspx

Ming.
MDAC Team, Microsoft.



"TeeKayZee" wrote:

I have a Windows service that I wrote in VB.Net 2003, that talks to an Oracle
database via ODBC. I recompiled it in VB.Net 2008, and this version hangs on
trying to open the ODBC connection. Using Network Monitor running on a test
Oracle server, I can see that it is sending out a broadcast packet every
second or so. Using the same code from a Windows form appliction on the same
PC works: it does not send out a broadcast; it connects to the database right
away. How is the Windows service application different from a Windows forms
application?

Any help greatly appreciated.
.



Relevant Pages


Loading