network-share

Exception when specifying defaultProxy in app.config when running NET4.0 application from network share

◇◆丶佛笑我妖孽 提交于 2019-12-21 07:57:08
问题 We're seeing a very strange issue when running the following application from a network share under NET4.0. When specifying a defaultProxy section in app.config a System.Net.WebException is thrown. There is no problem when running from a local drive. According to documentation applications will run as full-trust assemblies from a network share so we're assuming this should work just fine. Any ideas how we can work around this problem? Has anyone else experienced this issue or does anyone know

HTML links to local network shares [duplicate]

自古美人都是妖i 提交于 2019-12-18 04:34:06
问题 This question already has answers here : Linking a UNC / Network drive on an html page (3 answers) Closed 3 years ago . 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? 回答1: In general, this is disabled because it is a security risk. See also

Cannot access files on drive mapped network share from a Windows service

限于喜欢 提交于 2019-12-17 20:35:36
问题 I have a network shared folder mapped to a drive letter, which is accessible from Windows Explorer, from the command prompt as well as from my WinForms application without problem. It is also accessible from my Windows service using a UNC path. However, when I attempt to access this network location using a mapped drive letter from the Windows service, access fails. The Windows service is configured to use my personal "Log On" account credentials, which is the same in all the above cases. I

Enumerating network shares

帅比萌擦擦* 提交于 2019-12-17 06:54:40
问题 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. 回答1: You can use NetShareEnum win32 api. http://www.pinvoke.net/default.aspx/netapi32/netshareenum.html Or look at the following project which is .NET Wrapper over it. http://www.codeproject.com/KB/IP/networkshares.aspx 来源: https://stackoverflow.com/questions/2091126/enumerating-network-shares

GIT central repository on Windows network share

你。 提交于 2019-12-13 12:28:09
问题 Our company is looking at setting up a central GIT repository. As we are using Windows, we've been looking at using a network share solution, based on the following articles here and here. However, after thinking about this I have some questions. (Warning - I'm a noob at GIT) It seems that this solution might allow developers to cause problems with the repo, by allowing them to map to the drive and play with the files (outside of the GIT client). Is there a way to prevent this? Or do I

One eclipse workspace, simultaneously open on two machines [duplicate]

a 夏天 提交于 2019-12-13 08:06:29
问题 This question already has an answer here : Sharing an Eclipse workspace across computers? (1 answer) Closed 5 years ago . I have an eclipse workspace located on a server and a friend and I would like to be able to simultaneously work on a project at the same time. The problem I run into is that once I open the workspace on one computer it won't allow you to open it on the other computer (will throw an error saying it is already open). We are currently using dropbox but would like the server

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

心已入冬 提交于 2019-12-13 03:26:47
问题 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, which opens Windows Explorer, which opens a password prompt that grants or denies access to the share. How can I get the user to signon to the share without

Locking behaviour is different via network shares

心已入冬 提交于 2019-12-12 08:54:08
问题 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 been the best, but my specific question is: Why does the below demo work against the local file, but not against the network file? The more specific you can

Is Git over Network Share possible?

爱⌒轻易说出口 提交于 2019-12-12 07:57:56
问题 Is it possible to share a Git repository in Windows network? If I add remote origin located in windows shared folder - would this solution work normally? 回答1: Yes it is working normally. I used it in Windows Share without a hassle. It was not a bare repository. But I'm 99.99% sure a bare repository will work the same in a network share. Of course, you need the read/write right on that share... 回答2: According to a post in 2009 on the Git mailing list, Git should work seamlessly on NFS and CIFS

Moving a file from a directory to a network share programmatically

强颜欢笑 提交于 2019-12-12 03:32:13
问题 I am attempting to write a process that will move a file from a directory on a server, to a network share, that will not be on that computer. The methodology worked just fine when moving from my local machine to the network share. However, it is not working when I put the process on my server (this process is basically a dll, that gets picked up by a running service, the service spins up a thread, gives it to my process, and away it goes). The process is running using an identity that has