Information générale
Titre:
Invalid path or file name.
I get “Invalid path or file name. “ on the OleDbCon.Open()
When I try to access the data on another machine called "MAINSERV" in the
OleDbCon.ConnectionString = "User ID=;DSN=;Collating Sequence=MACHINE;Data Source=""\\MAINSERV\C\CITINET"";Passw" & _
"ord=;Provider=""VFPOLEDB.1"";Cache Authentication=False;Mask Password=False;Mode=""" & _
"ReadWrite|Share Deny None"";Extended Properties=;Encrypt Password=False"
I have set up a user “MyWebUsr1” on both machines.
I have made the “MyWebUsr1” the Anonymous Access User.
(in IIS, Directory Security Anonymous access and authentication control)
I created this same user and password on the “MAINSERV” machine and have given this user FULL rights to the C drive and the Dir.
I have given ASPNET rights to the drive and folders on the MAINSERV machine.
I can see the other Server in the Server Explorer and have set a Data connection to
\\MAINSERV\C\CITINET
It will even show me the tables in the dir.
I can access the same data on the Local drive fine (FoxPro)
OleDbCon.ConnectionString = "Provider=VFPOLEDB.1;Data Source=C:\CITINET;Mode=Share Deny None;Extended Properti" & _
"es="""";User ID="""";Password="""";Mask Password=False;Cache Authentication=False;Encr" & _
"ypt Password=False;Collating Sequence=MACHINE;DSN="""""
Also I can’t get this to work with the mapped drive either... ??
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement