Networking Forums

Networking Forums > Computer Networking > Windows Networking > Network Service on Windows Server 2008 cannot mount a share

Reply
Thread Tools Display Modes

Network Service on Windows Server 2008 cannot mount a share

 
 
steve.nickels@gmail.com
Guest
Posts: n/a

 
      10-01-2008, 04:50 PM
Hello,

I have an ASP.NET web application which runs in an IIS app pool that
runs as the Network Service account. During initialization, this
application mounts a remote UNC using a username and password. It does
so using the Win32 API's WNetAddConnection2 function.

When running on Windows Server 2003, this works great. The application
is able to mount the UNC and then use it without any problems.

When I try running the app under Windows Server 2008, the application
is unable to mount the drive, and gets a Windows error code 1312, "A
specified logon session does not exist. It may already have been
terminated." This is the error I would expect to get if I was running
the application under Local System, since that account doesn't seem to
be allowed to access the network at all, but not Network Service.

If I change the app pool to run as a created user account, it works
fine.

So, my question is, was there a change in Windows Server 2008 from
2003 that makes it so the Network Service account is no longer able to
mount UNCs in this fashion? Is there anything I can do to allow
Network Service to be able to do so, or do I need to run the app under
a created user account instead?

Thanks!

--Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Server 2008 - Printer Share for MacOS Martin Weil Windows Networking 0 09-29-2010 02:29 PM
Can't connect to administrative share c$ on Windows 7 PC from Windows Server 2008 R2 boe Windows Networking 4 10-24-2009 02:31 PM
Re: DHCP Issue in Windows Server 2008 R2 - Service restart problem Ace Fekay [MCT] Windows Networking 1 10-20-2009 07:13 AM
NFS mount Windows Server 2008 drive to Unix client A Guy Called Tyketto Windows Networking 0 10-02-2008 03:59 PM
mount windows NFS share from linux syntax reader@newsguy.com Windows Networking 1 09-04-2006 09:55 PM



1 2 3 4 5 6 7 8 9 10 11