network-share

TFS Build Server drop location error

We're using TFS Build Server to ensure that all files checked in by developers are going to compile to a working source tree, cuz there's nothing worse than a broken build! Anyway we've having some problems with the drop location that Build Server wants to use, we keep getting this error: TFS209011: Could not create drop location \b...

.NET Remoting and Server 2008 (64 Bit)

I have a .NET application that is meant to be run on a local PC and started from a file share on the LAN. It works fine on 32 bit Windows XP and Vista workstations. But it fails with a System.InvalidOperationException on 64 bit Windows Server 2008. It runs fine locally on all three configurations. What could be the cause? .NET 2.0 i...

Executable started by a windows service using the local system account cannot access network shares

I have an executable that is started by a windows service, this program will be run on a customers machine and will need to connect to a remote share to perform a particular task. This share is specified by the customer via a UI, so we do not know this in advance meaning it can't be "hard-coded", or the share mapped in advance. Previous...

.NET Deployment to Network Share

I have a .NET 3.5 application that I wish to install on the client's server and have workstations run it directly from the network share. I've read a bit that seems to suggest this isn't as easy as simply copying the application to the network share like I would for a native exe. Unfortunately, there seems to be a lack of documentation o...

401.1 Error when accessing virtual directory pointing to network share

IIS5 is running on SERVER1. One of the virtual directories in IIS, myfiles, is pointing to "A shared location on another computer", //SERVER2/myfilesshare When I try to access the page: http://SERVER1/myfiles ... I get the error: You are not authorized to view this page HTTP 401.1 - Unauthorized: Logon Failed Internet Information S...

Concurrency in a GIT repo on a network shared folder

Hello, I want to have a bare git repository stored on a (windows) network share. I use linux, and have the said network share mounted with CIFS. My coleague uses windows xp, and has the network share automounted (from ActiveDirectory, somehow) as a network drive. I wonder if I can use the repo from both computers, without concurrency p...

How can I demand access to a Windows share in a .NET thick-client app?

We have a thick-client that needs to access resources on a share where a client may not be logged on. The client might be on a Windows domain or it could be a mixed environment without a domain, so the user would have to log on to the server locally. In the past, one work around was to create a shortcut on the user's desktop to the share...

Access denied running C# program using reference DLL from network share

I am developing two projects which are both managed by ClearCase, which means that for Windows, it looks like they are located on a network share. The first project is a DLL written using VS 2003 in managed C++ and is intended to provide a managed interface for some legacy DLLs written in VS2003 C++. The second project is written in C#...

GetOpenFileName lpstrInitialDir is UNC path. Not prompting for credentials, so it's not using that intial directory

I'm using GetOpenFileName; my lpstrInitialDir is set to a UNC path (network share), and that share requires login. I haven't found a way to either be prompted for credentials, or have my domain credentials used. If use Windows Explorer to go to that network share, then I run my app, the GetOpenFileName works with that network share as t...

.NET (2.0) service can't see network share

I have a C# .NET service that runs as DOMAIN\username on a windows server and it needs to access a network share \\share\export docs$\. If I'm logged into the machine (as DOMAIN\username) I can see the share and I have even mapped it to X: and tried to use that. I set the path in app.config (and restart the service) and if I use a path ...

HTML links to local network shares

Why do these links not work? If I click on them in FF or Chrome, nothing happens - it doesn't even try to open them! <a href="file://someshare/dir/subdir/file.txt">Linky</a> <a href="file:////someshare/dir/subdir/file.txt"> Linky</a> <a href="file://\\someshare\dir\subdir\file.txt">Linky</a> Any ideas? ...

Force download of a file on a network share through IIS

I'm writing a quick web page to control access to a web based repository of audio file (recordings of lectures). The audio files are held on SAN and accessed from the web server using a UNC share. I want to force a "save" dialog to appear, because during testing we have found that some web browsers make it very difficult to save mp3 fi...

Windows service cannot access shared folder at boot time until manually started or Windows Explorer fiddled

I have a Windows service running in local system that simply keeps trying to access a file with a UNC path of the form \\machine\folder\file.txt until it succeeds. It succeeds immediately when I start the service manually, but on reboot it gets System Error 53 (Network Path not found) until I do something such as logoff or "fiddle" with ...

Enumerating Network Shares with C#

Is there a part of the .net framework that enumerates the file shares on a host? I've found some things that use the WMI, but I'd prefer not to go that route. Thanks in advance for the help! ...

App unable to connect to share after a period of time...

Hi, I've got a .NET app monitoring a network share and periodically it loses the connection. The app itself does not send any login info, it runs under the current (Windows) user. When this happens I can't connect to the network share in Explorer either, I need to reboot the machine. Is there any way programmatically in .NET I could ...

Proper methods to have multiple processes reading the same file?

I have many processes reading a file stored on a network share. Originally I was only able to have one process read the file, all the others would throw exceptions. I implemented the following code to deal with that: using (StreamReader fileStreamReader = new StreamReader(File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read)))...

sqlite over network share for failover

As a follow-up of this question: sqlite-over-a-network-share If I put the SQlite DB on a network share, but will not access it concurrently from different machines. I only have the SQLite db stored on a share so a cluster of failover computers can take over where one machine left off. Are there any inherent problems with that approach?...

Security warning when opening file from network share

I've created a setup executable which I have signed. It's located on a network share (which I access using unc - \server\share\setup.exe). When I double click the executable file, I get a Windows warning saying: Title: Open File -> Security Warning Do you want to run this file? Name: setup.exe Publisher: My Company Type: Application Fr...

Locking behaviour is different via network shares

I have been trying to lock a file so that other cloned services cannot access the file. I then read the file, and then move the file when finished. The Move is allowed by using FileShare.Delete. However in later testing, we found that this approach does not work if we are looking at a network share. I appreciate my approach may not have...

Designing API for Iomega network drives web access over http/https

Hello! Can you share your experience of working with network shares like Iomega StorCenter or iConnect over http(s)? Especially: Login/logout workflow Browse functionality Reading/writing objects Reading/writing object properties Your recommendations Thank you! ...