I'm trying to open an xml document on my computer. It is on a subst drive
f. I get a System.IO.DirectoryNotFoundException when I try to open the
file. When I switch to the C drive it works fine. I gave aspnet user admin
right to make sure it wasn't a permission problem but I am still getting the
exception whatever I do unless I look at my C drive. Any idea what gives?
Thanks guys.
Chris"Chris" <cf@.NoSpamzieQuotepro.com> wrote in
news:e2H7fPO9DHA.2432@.TK2MSFTNGP10.phx.gbl:
> I'm trying to open an xml document on my computer. It is on a subst
> drive f. I get a System.IO.DirectoryNotFoundException when I try to
> open the file. When I switch to the C drive it works fine. I gave
> aspnet user admin right to make sure it wasn't a permission problem but
> I am still getting the exception whatever I do unless I look at my C
> drive. Any idea what gives?
Are the other drives you having trouble with by chance network drives?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Showing posts with label subst. Show all posts
Showing posts with label subst. Show all posts
Saturday, March 31, 2012
subst and IIS on XP
Hi
Does anyone know why subst doesn't work with IIS on XP?
If I do
sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
This is a very useful feature that I would miss if it can't be done anymore
Ta
Ffoldface@.yahoo.co.uk wrote in news:acb840c8.0401230721.4e3e319
@.posting.google.com:
> Does anyone know why subst doesn't work with IIS on XP?
> If I do
> sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
Its subst, not sub.
And it works fine on XP.
And you would not look for o:\myproj, just o:\ as it WOULD be d:\myproj
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
"Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message news:<Xns947A10116C381cpub@.127.0.0.1>...
> foldface@.yahoo.co.uk wrote in news:acb840c8.0401230721.4e3e319
> @.posting.google.com:
> > Does anyone know why subst doesn't work with IIS on XP?
> > If I do
> > sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
> Its subst, not sub.
that was a typo, you can see I said subst above that
> And it works fine on XP.
> And you would not look for o:\myproj, just o:\ as it WOULD be d:\myproj
ok, little inaccurate message from me
make d:\versions\temp\myproj
subst o: d:\versions\temp
in iis look for o:\myproj
it can see it via the folders but when you click ok it doesn't work
try it
Does anyone know why subst doesn't work with IIS on XP?
If I do
sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
This is a very useful feature that I would miss if it can't be done anymore
Ta
Ffoldface@.yahoo.co.uk wrote in news:acb840c8.0401230721.4e3e319
@.posting.google.com:
> Does anyone know why subst doesn't work with IIS on XP?
> If I do
> sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
Its subst, not sub.
And it works fine on XP.
And you would not look for o:\myproj, just o:\ as it WOULD be d:\myproj
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
"Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message news:<Xns947A10116C381cpub@.127.0.0.1>...
> foldface@.yahoo.co.uk wrote in news:acb840c8.0401230721.4e3e319
> @.posting.google.com:
> > Does anyone know why subst doesn't work with IIS on XP?
> > If I do
> > sub o: d:\myProj and look for o:\myProj then IIS just can't see it?
> Its subst, not sub.
that was a typo, you can see I said subst above that
> And it works fine on XP.
> And you would not look for o:\myproj, just o:\ as it WOULD be d:\myproj
ok, little inaccurate message from me
make d:\versions\temp\myproj
subst o: d:\versions\temp
in iis look for o:\myproj
it can see it via the folders but when you click ok it doesn't work
try it
Subst Question
Anyone have insight as to why an ASP.NET app (1.1) would not recognize a substituted drive on the first page hit? I have done a subst e: c:\ for my local development (to mirror production), but every time that I hit the asp.net app (and force compilation maybe?) I get can't find portion of path e:\ error. (for logging components I have reference to e:\myfolder\logs in my web.config file.) If I hit my browser's back button and try again it works. Thanks in advance!
Not sure about your specific problem, but why not use Server.MapPath() to map relative paths to absolute? That way it will work on any server.Sorry, I didn't have email enabled, so I'm just getting back to checking on this... Thanks for the comment. I'm not sure this applies, unless I'm not up-to-speed on Server.MapPath(). Isn't that just for relative path to physical path mappings? We use this regularly for web site content mapping. However, we have logging components that specify a non-web location on disk (the e: drive) for the log file location. The web site, itself, may be anywhere, just mapped with a virtual dir. Anyone else have any ideas on what's happening with ASP.NET?
Subscribe to:
Posts (Atom)