W
wizofaus
Under firefox, if you enter in the URL
file://c:/
You'll get an HTML-ized version of the C:/ directory. Under IE, it
actually redirects to a regular Explorer window showing your c:\
folder.
But if you try to use .NET WebRequest.Create("file://c:/"), at least
with .NET 1.1, you get an "Access to the path "c:\" is denied" error,
which seems a bit rude. There's actually nothing in the documentation
that says if you're using the file:// scheme you can't reference a
directory, but obviously it's not designed to work. Is this any
different in .NET 2.0, and if not, is there any likelihood of it
changing in the future?
file://c:/
You'll get an HTML-ized version of the C:/ directory. Under IE, it
actually redirects to a regular Explorer window showing your c:\
folder.
But if you try to use .NET WebRequest.Create("file://c:/"), at least
with .NET 1.1, you get an "Access to the path "c:\" is denied" error,
which seems a bit rude. There's actually nothing in the documentation
that says if you're using the file:// scheme you can't reference a
directory, but obviously it's not designed to work. Is this any
different in .NET 2.0, and if not, is there any likelihood of it
changing in the future?