hello,
this is my first time in this forum, so apologize if the question is not following the standard format.
here are the scenarios:
i am using IIS 10.0, installing in WS 2022 inside the LAN, while i have another IIS 10.0 running on windows 10 inside the LAN. the website is accessible from the internet via port forwarding from the gateway.
website currently running on windows 10, "directory browsing" enabled. i can browse all directories from the "root drive". for example http://mydomain/D where D is the whole drive D. it will list all the subdirectories including all individual files.
problem is when i enabling "directory browsing" at my WS 2022 IIS, where directory browsing taken from the network share.
for example in the IIS @ WS 2022 what i did:
a. add virtual directory
b. alias = D
c. physical path = \\windows10\D
d. connect as = specific users, where user used were administrator account at the windows 10.
e. test connection = both authentication and authorization were successful
there were 2 errors produced when browsing http://mydomain/D where D is virtual directory pointing to windows 10.
if i just running the virtual directory just like that, it shows asp.net "configuration error", whether i browse the root drive, subdirectories, or files inside the drive. for example http://mydomain/D/ or http://mydomain/D/ABC or http://mydomain/D/thefiles.ext
[No relevant source lines]
but if i convert the virtual directory into application, it shows error 500.0 with error code 0x80070002
but i can browse other subdirectories after D, for example http://mydomain/D/ABC
also i can access files inside D if i type the full url for example http://mydomain/D/thefiles.ext
i don't think it is because authentication, because test connection were successful and i can access files and subdirectories inside it, but not the root drive itself.
is the directory listing module disallow browsing the root drive from network drive, or there is some configuration that i missed out? and why do i need to convert the virtual directory to the application?
regards
azuan