470,590 Members | 2,525 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

possible to access virtual directory without impersonation?

My problem is as follows:
I am using IIS 5.1 with .net 1.1
I have a shared folder on a different computer on our network which I want to add as a virtual directory on my computer so that I can use

<!--#include virtual="virtualDirectoryName/someFile.html" -->

the problem is that I can only gain access to this virtual folder from my asp page when i set impersonate="true" and set the explicit user to gain access to the virtual folder in my web.config. I dont want to explicitly have to hardcode a user and password into this. When I create the virtual directory on my computer I tried to set the username to MYCOMPUTERNAME\ASPNET however an error icon appeared next to the virtual directory listing in IIS management console.
Does this make sense? Any help would be greatly appreciated! Thank you!

Sep 18 '07 #1
2 3262
4,871 Expert 4TB
If you just check anonymous access in iis does this do the trick?
Sep 19 '07 #2
Well, I feel like a fool but I figured it out this morning. Apparently, I needed to set the anonymous access user name of the parent directory to the name that was authorized to access the virtual directory.
Sep 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by paritycheck | last post: by
1 post views Thread by Leonid | last post: by
2 posts views Thread by Peter O'Reilly | last post: by
3 posts views Thread by Boxman | last post: by
5 posts views Thread by Dave Kolb | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.