If you try to create a virtual directory from Visual Studio, you might get the following exception when you don’t have IIS installed.
Unable to create the virtual directory. IIS is not installed on this computer. To access local IIS Web sites, you must install the following IIS components:
Internet Information Services
IIS 6 Metabase and IIS 6 Configuration Compatibility
ASP.NET
Windows Authentication
In addition, you must run Visual Studio in the context of an administrator account.
To install IIS, Search for “Turn on or off windows features” in Control Panel.
Enable the following items and Click Ok to install the following items
- Internet Information Services
- IIS 6 metabase and IIS 6 configuration compatibility
Keywords: IIS, ASP.NET, Virtual Directory
No comments:
Post a Comment