By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,551 Members | 2,710 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,551 IT Pros & Developers. It's quick & easy.

unable to access share from Windows service

P: n/a
Hi,

I have a VB.net windows service that loks up when I attempt to access a
share. The code work fine if I run it in the development environment. The
code is as follows:

Dim sharename as string = \\server\folder\sfolder1

if (not system.Io.directory.exists(sharename)) then
System.io.directory.CreateDirectory(sharename)
end if

I suspect this is a security issue, but I am running the service under my
account and I can execute this code. I can also perform the operations in a
DOS box.

Thanks,

jerry
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
JerryK wrote:
Hi,

I have a VB.net windows service that loks up when I attempt to access a
share. The code work fine if I run it in the development environment. The
code is as follows:

Dim sharename as string = \\server\folder\sfolder1

if (not system.Io.directory.exists(sharename)) then
System.io.directory.CreateDirectory(sharename)
end if

I suspect this is a security issue, but I am running the service under my
account and I can execute this code. I can also perform the operations in a
DOS box.

Thanks,

jerry


This is becaus you are not running under a user account. You can have
the service use a different account, but then you can't allow desktop
interaction.

Schneider
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.