Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opening web project set to IIS directory in machine without IIS, pointing to embedded server

I can open a web project in TFS; however, in my QA environment I have to change it to use IIS. In my local dev environment, I don't have IIS and can't install it.

New company rules deny access in QA to me and I can't open my web project to fix it in my machine.

When I open the project I receive "The Web Application Project ... is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account." Then I open as administrator but VS asks for the virtual directory to be creatred on my IIS.

like image 525
iries14 Avatar asked Jul 01 '11 15:07

iries14


People also ask

What is virtual directory in IIS and how to create it?

A virtual directory is a directory name that you specify in IIS and map to physical directory on a local server's hard drive or a directory on another server (remote server). You can use Internet Information Services Manager to create a virtual directory for an ASP.NET Web application that is hosted in IIS.

What is local IIS website?

Your choices for locating Web pages and other files include the following: In a folder on the local hard disk, which is referred to as a file system Web site. As a Web application under a local copy of Microsoft Internet Information Services (IIS), which is referred as a local IIS Web site.


1 Answers

The NgM link can really help, but if you need a step-by-step way than go to your .csproj file property. Make it writable, open it in a text editor and search for <UseIIS>True</UseIIS> turn it to <UseIIS>False</UseIIS>. Open solution, get the latest version and when you receive a warning, keep the local version of your modified .csproj. You can too check-in your modified .csproj to stop troubles in the next latest version.

bye

like image 74
sebusahong Avatar answered Oct 23 '22 03:10

sebusahong