Connecting to a network share not working in a Windows Service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I am using the Win23 API WNetCancelConnection2 and can sucessfully make a
connection to a share within my class. The class is called from a Windows
Form based test harness.

When I instantiate exactly the samce class from a Windows Wervice, I get "A
specified logon session does not exist. It may already have been terminated"
.. The error number is 1312.

I know the code to be good, so I suspect something around security / windows
accounts etc.

Any pointers?


(FYI I am using VB.Net and am an Admin on the machine)


.



Relevant Pages

  • Re: PPPoE
    ... The Windows driver README ... Installing the PPP over Ethernet Protocol ... Connection Sharing, ...
    (freebsd-net)
  • RE: Windows 2000 RRAS and ipSEC /L2TP VPN
    ... How to Configure a L2TP/IPSec Connection Using Pre-shared Key Authentication ... This article contains information about modifying the registry. ... , Windows 2000 is compliant with IKE RFC ...
    (microsoft.public.win2000.networking)
  • Re: Cannot connect to the Internet
    ... My Windows 2000 pro PC is connected to the internet (Local Area ... Connection 2 Status icon shows "Connected" with a speed of 10.0 ... The master browser has received a server announcement from ... The DNS Client service could not contact any DNS servers ...
    (microsoft.public.mac.virtualpc)
  • Re: Windows Update
    ... Open the explorer (Windows Explorer or My Computer), ... menu and select the Folder options. ... Click Services tab and select Hide All Microsoft Services and Disable ... size of a PPPoE connection to a value of between 1,400 and 1,480 ...
    (microsoft.public.windows.server.sbs)
  • Re: Serious Security Issue in Windows XP SP2s Firewall
    ... Subject: AW: Serious Security Issue in Windows XP SP2's Firewall ... If you update a WinXP SP-1 with enabled Internet ... Connection Firewall ...
    (Focus-Microsoft)