471,349 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

unable to access share from Windows service

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
1 1805
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.

Similar topics

4 posts views Thread by Jason Hurder | last post: by
1 post views Thread by soni29 | last post: by
16 posts views Thread by Serdar Kalaycý | last post: by
1 post views Thread by James Proctor | last post: by
6 posts views Thread by Bruce | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.