Connecting to a network share not working in a Windows Service
- From: "JohnFol" <OutlookExpress@xxxxxxxxxxxxxxxx>
- Date: Mon, 16 May 2005 14:29:07 GMT
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)
.
- Follow-Ups:
- Re: Connecting to a network share not working in a Windows Service
- From: Willy Denoyette [MVP]
- Re: Connecting to a network share not working in a Windows Service
- From: Lance Wynn
- Re: Connecting to a network share not working in a Windows Service
- Prev by Date: RE: .NET form and Web Browser control
- Next by Date: Re: Connecting to a network share not working in a Windows Service
- Previous by thread: RE: .NET form and Web Browser control
- Next by thread: Re: Connecting to a network share not working in a Windows Service
- Index(es):
Relevant Pages
|