Creating IIS Web Server Virtual Directories

  • Thread starter Thread starter news.iq.ca
  • Start date Start date
N

news.iq.ca

Hello.

Under

C:\Documents and Settings\Administrator\My Documents\My Projects\

I have created a folder, "ASPNET" where I plan to keep my projects.

I have started Administrative Tools -> Internet Information Services and
under "Default Web Site" I have created a virtual folder with the label
"ASPProjects" pointing to C:\Documents and Settings\Administrator\My
Documents\My Projects\ASPNET

I can see my *.aspx files in the right pane of IIS admin - everything looks
fine. However, when I try to open an aspx file, using, for instance

http://localhost/ASPProjects/CheckBoxList.aspx

IE gives me this:

Server Error in '/ASPProjects' Application.
--------------------------------------------------------------------------------

Server cannot access application directory 'C:\Documents and
Settings\Administrator\My Documents\My Projects\ASPNET\'. The directory does
not exist or is not accessible because of security settings.
No matter how I played with the permissions, I still can't make it work.
What am I doing wrong here ?
WinXP Pro SP2.

Thank You,
Alex.
 
You may have already done so, and if yes then please excuse me for asking
this.
Have you created a bin folder under C:\Documents and
Settings\Administrator\My
Documents\My Projects\ASPNET

and have you also copied your web.config and global.asax to the root folder
of your application.
 
Did you make it an application?

If not go to IIS -> ASPProjects -> Properties -> Virtual Directory Tab
and under Application settings Click the Create button.

Hope this helps
 
Is your web site running as Administrator? If you move that ASPNET folder to
a different folder (e.g. "c:\inetpub\aspnet") & change the virtual directory
to point to that new location, does it start working?
 
Back
Top