last day (15 days later) » 

6:38 PM
1
Q: FileInfo.CopyTo throws IOException "The specified network name is no longer available"

Mark RichmanI am trying to copy files from my local machine to a share on a remote machine. I am impersonating a domain user, and this user has full permissions to the remote machine's share. using (Impersonation.LogonUser(string.Empty, _username, _password, LogonType.Interactive)) { ... foreach (va...

 
My local machine and the remote machine are both on the same domain.
Switching from Interactive to Batch throws "Could not impersonate the elevated user. LogonUser returned error code 1385."
@Sajeetharan no that did not help, but thanks.
 
Is it failing on the first file or somewhere in the loop?
Can you check if it fails in the same way if you schedule a Windows Task that impersonates the same user and executes an xcopy or robocopy to the same location?
 
It fails on the first file.
Is it relevant that this is occurring within a BackgroundWorker?
 
But this code runs on one thread?
 
Yes and there are no other threads running in this case.
I really wish Windows had sudo at the command prompt already :(
I just tried NET USE and got this error: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again. After calling net use * /delete and retrying I get this error: The specified network name is no longer available.
 
6:38 PM
You can't have multiple connections with different identities.
Can you try the windows task I suggested here. That wil rule out if it is a code problem or a infrastructure issue. You might also check this: support.microsoft.com/kb/951037
 
Windows task failed too.
 
I'm done here, your code is fine :-)
 
All offload states (both local and remote) are set to InHost :/
 
Can you create a diferent share on that server and try to copy it to that share?
 
New share, new folder, totally different path....net use gave the same network name no longer available error.
 
6:38 PM
Could it be an issue with the virusscanner? firewall? searchindexer?
 
All possibilities. I hadn't considered the firewall. Rebooting the remote machine made no difference, but one of my colleagues can NET USE it with the same credentials I'm trying with no issues.
 
@MarkRichman Can you join here?
 
Hi @rene
I didn't know you could chat...cool!
 
Hi
welcome in chat :-)
 
so I can't map a drive to that machine either...not even to \\machine\C$
i was about to try rebooting locally
but i'm RDP'd into it no problem
perhaps it is the firewall (on either end?)
 
6:48 PM
It almost sounds like that
are you using the fqdn for that server?
 
and lucky me it's a domain policy i can't change lol
i tried machine name and fqdn
and IP
if you will indulge me a reboot and i'll be back in a few and try again...?
 
Is there anything in the eventlog on the server?
 
ooo good thought one sec
 
specially in the security log>
 
just lots of audit successes on "The Windows Filtering Platform has permitted a connection"
 
6:53 PM
Hmmm, strange...
Just give it reboot as you planned and see if that release any connections?
 
The Windows Filtering Platform has permitted a connection.

Application Information:
Process ID: 4
Application Name: System

Network Information:
Direction: Inbound
Source Address: 10.3.130.232
Source Port: 80
Destination Address: 10.85.21.26
Destination Port: 5157
Protocol: 6

Filter Information:
Filter Run-Time ID: 0
Layer Name: Receive/Accept
Layer Run-Time ID: 44
so that's interesting
that is the remote machine....this is the audit event when I tried running psexec against it and got that same network error
.26 is my local workstation
port 80 is interesting though...i'm not using port 80
 
Yeah
 
maybe some messed up NAT
 
It looks like it
It seems IIS now tries to connect...
It isn't a webdav box with sharepoint?
 
LOL "Port 5157/tcp is known to have vulnerabilities caused by trojans and remote code execution."
it may be running sharepoint
i dont see it installed
 
7:00 PM
Just give your local box a reboot so we get an idea if it is a local or a server issue
 
yeah lemme do that brb
 
You aren't using a symantec AV product by any chance? blogs.technet.com/b/networking/archive/2010/03/19/…
 
back gimme one second
yes Symantec
 
That link might be interestimng then...
 
>net use \\cltdepfe1\killme p@ssw0rd /USER:c2kbuild@campusmgmt.com
System error 64 has occurred.

The specified network name is no longer available.
yeah really interesting
how would i know if the issue is with my local Symantec AV or the remote server?
 
7:14 PM
I sunno, also from 2010 so I wonder if it still holds...
Can you check Policy:
 
well, some stuff here is outdated too so it could apply
 
Start -> Settings -> Control Panel -> Administrative Tools -> Local Security Policy
Under Security Settings -> Local Policies -> Security Options
Set "Microsoft network client: Digitally sign communications (always)" to "Disabled"
 
on my local machine?
 
Better on both....
Is netbios enabled (on all nic's) and the netbios service running?
 
client for windows networks and file sharing are both enabled on the adapter
and that policy was already set to disabled
 
7:19 PM
If you check on the NIC properties, tab Wins: Netbios setting? Local and serrver?
 
i dont see WINS anywhere
does that even exist anymore?
 
On my win 7 it does ...
 
hmmm
 
Control Panel\Network and Internet\Network and Sharing Center
Connections: Local area connection
Properties
Internet protocol V4
 
oh under advanced got it
 
7:23 PM
check!
 
no WINS settings, NetBIOS default
its all pretty vanilla
 
Can you enable it?
 
isnt the default to be enabled?
oh its whatever the DHCP server sets
 
No, it takes the setting from thr dhcp servedr
check
 
blechhh
that had no effect, unless i have to release and renew?
 
7:25 PM
Give that a try... to be sure
At least we established that it is not a code issue...
 
NetBIOS over Tcpip. . . . . . . . : Enabled
same error
 
I'm out of options
0
Q: Windows Server 2008 R2 can't connect to shares using FQHN or IP - System Error 64

Matthew HallidayI have a server that can't connect to shares using FQHN or IP. I can ping other servers by IP and FQHN. I have rebooted the server and still no luck. The error is: System error 64 has occurred. The specified network name is no longer available. What could be causing this problem?

 
no thats cool
thanks for that link
i wonder if its not the VMware hypervisor
 
OK...
 
the remote machine is a VM
 
7:28 PM
That would surpise me
You would expect all kind of issues in that case
 
right
well i'm gonna throw a sniffer on here
netmon or wireshark
 
Have fun with that!
 
yeah i'll screw around with this for a while
i really appreciate all your time!
mark@markrichman.com if you ever need anything
 
Tnx mark, good luck!
 
7:43 PM
48 3:41:37 PM 4/16/2014 4.3270730 svchost.exe 10.85.21.26 cltdepfe1.campusmgmt.com WEBDAV WEBDAV:Request, OPTIONS /killme {HTTP:43, TCP:42, IPv4:29}
49 3:41:38 PM 4/16/2014 4.3595235 svchost.exe cltdepfe1.campusmgmt.com 10.85.21.26 WEBDAV WEBDAV:Response, HTTP/1.1, Status: Ok, URL: /killme {HTTP:43, TCP:42, IPv4:29}
50 3:41:38 PM 4/16/2014 4.3695877 svchost.exe 10.85.21.26 cltdepfe1.campusmgmt.com WEBDAV WEBDAV:Request, PROPFIND /killme {HTTP:43, TCP:42, IPv4:29}
53 3:41:38 PM 4/16/2014 4.4048460 svchost.exe cltdepfe1.campusmgmt.com 10.85.21.26 HTTP HTTP:Response, HTTP/1.1, Status: Metho
webdav!!!! makes no sense!!!
 
Is that from your client or on your server?
 
client
same webdav messages from net use at the command line, and mapping a drive via explorer
and its \\server not server
http
why the heck does it think i mean http/webdav for mapping a drive?!
 
is the service webclient running locally?
 
yes
stop that?
 
yes,
 
7:52 PM
no difference
unless i need to log out and back in or reboot
 
8:17 PM
so they are sending their crack IT expert down to help me lol
 
That is getting serious... :-)
 
this system runs a compliance service
it shows that i am noncompliant because of "unauthorized shares"
 
Leave the address of the prison you are transported to so I can send you a postcard...
 
yeah i was able to fix it and reproduce it at will
" Endpoint Policy: Network Shares Compliant - Admin Shares Only"
so it looks for me sharing out my system on open wifi and locks the box down automatically
as soon as i deleted my local shares, the network opened back up
so today is the rare occasion that billing by the hour was to my benefit lol
 
Glad you found it... :-)
 
8:28 PM
i'll go update my question
 
You can also flag it for a moderator to remove the comments.
 

last day (15 days later) »