UNC Path Problem

G

G. Dean Blake

I have a UNC path that points to a shared directory on another Windows XP
computer. The UNC is \\mylaptop\c\shareddir. This UNC works if I put it
into my i.e. browser so I know it's a good link.



But when I execute the following code....



Dim rootdi As DirectoryInfo = New
DirectoryInfo(Session("ScannedInvoicesDirectory"))

If Not rootdi.Exists Then

lblError.Text = "Scanned Directory" & Session("ScannedInvoicesDirectory")
& "does not exist"

Exit Sub

End If



.... it fails. rootdi.exists is false. This code works on my development
machines just fine but it is failing on our production servers.



Does anyone have a clue?

Thanks,

G
 
B

Bobby Ryzhy

I have a UNC path that points to a shared directory on another Windows XP
computer. The UNC is \\mylaptop\c\shareddir. This UNC works if I put it
into my i.e. browser so I know it's a good link.



But when I execute the following code....



Dim rootdi As DirectoryInfo = New
DirectoryInfo(Session("ScannedInvoicesDirectory"))

If Not rootdi.Exists Then

lblError.Text = "Scanned Directory" & Session("ScannedInvoicesDirectory")
& "does not exist"

Exit Sub

End If



... it fails. rootdi.exists is false. This code works on my development
machines just fine but it is failing on our production servers.



Does anyone have a clue?

Thanks,

G


Your ASP_NET user does not have the rights to the other machine file system.


Bobby Ryzhy
bobby @ domain below
http://weekendtech.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top