Server Paths
am 14.09.2007 14:32:12 von jimstruckster
I'm pretty new to this stuff so please bear with me. I'm trying to
access files that are on the same server as my web app. I can connect
to files that are in the same path as my app, but if I try to connect
to any other folder on the server I get the "invalid path" error.
This connection string works for me:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
\;Extended Properties=dBase III"
But this one throws the error:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
Properties=dBase III"
I set the IIS to allow parent paths also and that didn't help.
Any help would be huge. Thanks a lot.
Re: Server Paths
am 14.09.2007 16:48:04 von Kristofer Gafvert
You say that you connect to "files". Are these files dBase III files? What
are their extension?
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
jimstruckster@gmail.com wrote:
>I'm pretty new to this stuff so please bear with me. I'm trying to
>access files that are on the same server as my web app. I can connect
>to files that are in the same path as my app, but if I try to connect
>to any other folder on the server I get the "invalid path" error.
>This connection string works for me:
>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
>\;Extended Properties=dBase III"
>
>But this one throws the error:
>
>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
>Properties=dBase III"
>
>I set the IIS to allow parent paths also and that didn't help.
>
>Any help would be huge. Thanks a lot.
Re: Server Paths
am 14.09.2007 17:04:51 von jimstruckster
On Sep 14, 9:48 am, "Kristofer Gafvert"
wrote:
> You say that you connect to "files". Are these files dBase III files? What
> are their extension?
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
>
>
> jimstrucks...@gmail.com wrote:
> >I'm pretty new to this stuff so please bear with me. I'm trying to
> >access files that are on the same server as my web app. I can connect
> >to files that are in the same path as my app, but if I try to connect
> >to any other folder on the server I get the "invalid path" error.
> >This connection string works for me:
> >"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
> >\;Extended Properties=dBase III"
>
> >But this one throws the error:
>
> >"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
> >Properties=dBase III"
>
> >I set the IIS to allow parent paths also and that didn't help.
>
> >Any help would be huge. Thanks a lot.- Hide quoted text -
>
> - Show quoted text -
They are .dbf files. I copied one into the C: drive I can open it and
query it within the code, but it will not open if it's not on the C:
drive.
Re: Server Paths
am 14.09.2007 17:14:18 von Daniel Crichton
jimstruckster@gmail.com wrote on Fri, 14 Sep 2007 12:32:12 -0000:
> I'm pretty new to this stuff so please bear with me. I'm trying to
> access files that are on the same server as my web app. I can connect
> to files that are in the same path as my app, but if I try to connect
> to any other folder on the server I get the "invalid path" error.
> This connection string works for me:
> "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
> \;Extended Properties=dBase III"
> But this one throws the error:
> "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
> Properties=dBase III"
> I set the IIS to allow parent paths also and that didn't help.
> Any help would be huge. Thanks a lot.
Have you ensured that the IIS user account has permissions to reader the
other path?
Dan
Re: Server Paths
am 14.09.2007 17:17:37 von jimstruckster
On Sep 14, 10:14 am, "Daniel Crichton"
wrote:
> jimstrucks...@gmail.com wrote on Fri, 14 Sep 2007 12:32:12 -0000:
>
> > I'm pretty new to this stuff so please bear with me. I'm trying to
> > access files that are on the same server as my web app. I can connect
> > to files that are in the same path as my app, but if I try to connect
> > to any other folder on the server I get the "invalid path" error.
> > This connection string works for me:
> > "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
> > \;Extended Properties=dBase III"
> > But this one throws the error:
> > "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
> > Properties=dBase III"
> > I set the IIS to allow parent paths also and that didn't help.
> > Any help would be huge. Thanks a lot.
>
> Have you ensured that the IIS user account has permissions to reader the
> other path?
>
> Dan
I haven't. What do I need to do to look for that?
Re: Server Paths
am 14.09.2007 17:21:39 von Kristofer Gafvert
Is F: a local drive or a network drive (or something else)?
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
jimstruckster@gmail.com wrote:
>On Sep 14, 9:48 am, "Kristofer Gafvert"
>wrote:
>>You say that you connect to "files". Are these files dBase III files? What
>>are their extension?
>>
>>--
>>Regards,
>>Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>
>>
>>jimstrucks...@gmail.com wrote:
>>>I'm pretty new to this stuff so please bear with me. I'm trying to
>>>access files that are on the same server as my web app. I can connect
>>>to files that are in the same path as my app, but if I try to connect
>>>to any other folder on the server I get the "invalid path" error.
>>>This connection string works for me:
>>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
>>>\;Extended Properties=dBase III"
>>
>>>But this one throws the error:
>>
>>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
>>>Properties=dBase III"
>>
>>>I set the IIS to allow parent paths also and that didn't help.
>>
>>>Any help would be huge. Thanks a lot.- Hide quoted text -
>>
>>- Show quoted text -
>
>They are .dbf files. I copied one into the C: drive I can open it and
>query it within the code, but it will not open if it's not on the C:
>drive.
Re: Server Paths
am 14.09.2007 17:25:18 von jimstruckster
On Sep 14, 10:21 am, "Kristofer Gafvert"
wrote:
> Is F: a local drive or a network drive (or something else)?
>
> --
> Regards,
> Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>
>
>
> jimstrucks...@gmail.com wrote:
> >On Sep 14, 9:48 am, "Kristofer Gafvert"
> >wrote:
> >>You say that you connect to "files". Are these files dBase III files? What
> >>are their extension?
>
> >>--
> >>Regards,
> >>Kristofer Gafverthttp://www.gafvert.info/iis/-IIS Related Info
>
> >>jimstrucks...@gmail.com wrote:
> >>>I'm pretty new to this stuff so please bear with me. I'm trying to
> >>>access files that are on the same server as my web app. I can connect
> >>>to files that are in the same path as my app, but if I try to connect
> >>>to any other folder on the server I get the "invalid path" error.
> >>>This connection string works for me:
> >>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
> >>>\;Extended Properties=dBase III"
>
> >>>But this one throws the error:
>
> >>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
> >>>Properties=dBase III"
>
> >>>I set the IIS to allow parent paths also and that didn't help.
>
> >>>Any help would be huge. Thanks a lot.- Hide quoted text -
>
> >>- Show quoted text -
>
> >They are .dbf files. I copied one into the C: drive I can open it and
> >query it within the code, but it will not open if it's not on the C:
> >drive.- Hide quoted text -
>
> - Show quoted text -
It's a local drive. I actually can open the F: root, but once I try
to get into a subfolder is when I get the invalid path error.
Re: Server Paths
am 15.09.2007 09:14:39 von Kristofer Gafvert
Hi,
Can you please download FileMon and see what is going wrong. It may be a
permissions problem, and if it is, FileMon will tell you.
http://www.microsoft.com/technet/sysinternals/utilities/file mon.mspx
--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info
jimstruckster@gmail.com wrote:
>On Sep 14, 10:21 am, "Kristofer Gafvert"
>wrote:
>>Is F: a local drive or a network drive (or something else)?
>>
>>--
>>Regards,
>>Kristofer Gafverthttp://www.gafvert.info/iis/- IIS Related Info
>>
>>
>>
>>jimstrucks...@gmail.com wrote:
>>>On Sep 14, 9:48 am, "Kristofer Gafvert"
>>>wrote:
>>>>You say that you connect to "files". Are these files dBase III files?
>>>>What
>>>>are their extension?
>>
>>>>--
>>>>Regards,
>>>>Kristofer Gafverthttp://www.gafvert.info/iis/-IIS Related Info
>>
>>>>jimstrucks...@gmail.com wrote:
>>>>>I'm pretty new to this stuff so please bear with me. I'm trying to
>>>>>access files that are on the same server as my web app. I can connect
>>>>>to files that are in the same path as my app, but if I try to connect
>>>>>to any other folder on the server I get the "invalid path" error.
>>>>>This connection string works for me:
>>>>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
>>>>>\;Extended Properties=dBase III"
>>
>>>>>But this one throws the error:
>>
>>>>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
>>>>>Properties=dBase III"
>>
>>>>>I set the IIS to allow parent paths also and that didn't help.
>>
>>>>>Any help would be huge. Thanks a lot.- Hide quoted text -
>>
>>>>- Show quoted text -
>>
>>>They are .dbf files. I copied one into the C: drive I can open it and
>>>query it within the code, but it will not open if it's not on the C:
>>>drive.- Hide quoted text -
>>
>>- Show quoted text -
>
>It's a local drive. I actually can open the F: root, but once I try
>to get into a subfolder is when I get the invalid path error.
Re: Server Paths
am 16.09.2007 10:13:24 von David Wang
I don't see IIS nor ParentPath having anything to do with your issue.
Is F: an actual local drive letter mapped through VDS, or are you
using hacks like subst to wire it up?
Is the referenced content on the root of F: or a sub-directory off of
root. NTFS hides the root of a partition by default which IIS has
special logic to bypass, but it may not be present in the more legacy
database provider you are using.
In the NTFS ACLs on F: allow read permission to the remote-
authenticated user of IIS? The actual user identity depends on the
authentication protocol applicable to that request, and FileMon can
help you figure this out.
You can try to get around this by mounting the partition currently
named "F:\" onto a directory at "C:\inetpub\wwwroot\F-drive" (using
Windows Disk Management MMC Snapin or DISKPART.EXE commandline tool,
both of which tweak VDS) and then setting your connection string as "C:
\inetpub\wwwroot\F-drive"
//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//
On Sep 14, 8:25 am, jimstrucks...@gmail.com wrote:
> On Sep 14, 10:21 am, "Kristofer Gafvert"
> wrote:
>
>
>
>
>
> > Is F: a local drive or a network drive (or something else)?
>
> > --
> > Regards,
> > Kristofer Gafverthttp://www.gafvert.info/iis/-IIS Related Info
>
> > jimstrucks...@gmail.com wrote:
> > >On Sep 14, 9:48 am, "Kristofer Gafvert"
> > >wrote:
> > >>You say that you connect to "files". Are these files dBase III files? What
> > >>are their extension?
>
> > >>--
> > >>Regards,
> > >>Kristofer Gafverthttp://www.gafvert.info/iis/-IISRelated Info
>
> > >>jimstrucks...@gmail.com wrote:
> > >>>I'm pretty new to this stuff so please bear with me. I'm trying to
> > >>>access files that are on the same server as my web app. I can connect
> > >>>to files that are in the same path as my app, but if I try to connect
> > >>>to any other folder on the server I get the "invalid path" error.
> > >>>This connection string works for me:
> > >>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\inetpub\wwwroot
> > >>>\;Extended Properties=dBase III"
>
> > >>>But this one throws the error:
>
> > >>>"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\;Extended
> > >>>Properties=dBase III"
>
> > >>>I set the IIS to allow parent paths also and that didn't help.
>
> > >>>Any help would be huge. Thanks a lot.- Hide quoted text -
>
> > >>- Show quoted text -
>
> > >They are .dbf files. I copied one into the C: drive I can open it and
> > >query it within the code, but it will not open if it's not on the C:
> > >drive.- Hide quoted text -
>
> > - Show quoted text -
>
> It's a local drive. I actually can open the F: root, but once I try
> to get into a subfolder is when I get the invalid path error.- Hide quoted text -
>
> - Show quoted text -