DirectoryInfo not working

G

G Dean Blake

the following code has a valid string in Session("ScannedInvoicedDirectory")
which is \\Machine1\c\InvoiceScans. In fact I can put that string into file
explorer and it scans to the directory on the other machine sucessfully.
but rootdi.exists is false. This code used to work. What could be wrong?

Thanks,
G

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
 
S

Scott Allen

I'd check to see if there is a permissions issue. The ASPNET account
typically can't get to network resources.
 
G

G Dean Blake

I already have the machine.config <processmodel username set to SYSTEM and I
recall that was what I had to originally do to make this work. One thing
that has happened since then was that both of my XP systems got upgraded
with the XP security release - that probably has something to do with it.
G.
 
S

Scott Allen

I already have the machine.config <processmodel username set to SYSTEM and I
recall that was what I had to originally do to make this work. One thing
that has happened since then was that both of my XP systems got upgraded
with the XP security release - that probably has something to do with it.
G.

Was it an upgrade to SP2? Is the sp2 firewall now on?
 

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

Top