Adding an asp.net web app project to the solution's directory

G

Guest

Hi,

I'm trying to create a Solution that contains several
projects within it, one of which is an ASP.NET web
application and the others are class libraries (Data
and Business tiers, which are seperate projects).
When i created the two class
library projects, the projects were added to the
root directory of the solution, but when i tried to
add the web application project, it wouldn't let
add it to the solution's root directory, only to the
wwwroot directory of iis. So i did and added it
to the wwwroot directory. But when i cut the
web application directory from wwwroot to the
solution's root directory, Visual Studio could not
load the web app. The error code was 404 or something
like that. Is there a way to have all the projects under
one directory of my choice, even when one of them
is an ASP.NET Web Application? And is there a way
to let visual studio allow me to add an asp.net web app
to directories other than wwwroot at the beginning,
when i first create the project?

Thanks a lot guys
 
C

Craig Deelsnyder

Avi said:
Hi,

I'm trying to create a Solution that contains several
projects within it, one of which is an ASP.NET web
application and the others are class libraries (Data
and Business tiers, which are seperate projects).
When i created the two class
library projects, the projects were added to the
root directory of the solution, but when i tried to
add the web application project, it wouldn't let
add it to the solution's root directory, only to the
wwwroot directory of iis. So i did and added it
to the wwwroot directory. But when i cut the
web application directory from wwwroot to the
solution's root directory, Visual Studio could not
load the web app. The error code was 404 or something
like that. Is there a way to have all the projects under
one directory of my choice, even when one of them
is an ASP.NET Web Application? And is there a way
to let visual studio allow me to add an asp.net web app
to directories other than wwwroot at the beginning,
when i first create the project?

Thanks a lot guys

Change the Home Directory of the virtual folder of the web app in IIS to
point where you want (if it's already created). AFA having VS.NET do
this upon creation locally, you'd have to change the localhost Home
Directory for your Default Web Site (or whatever website is localhost)
temporarily, load your project on your machine, then change the Home
Directory back (since you pry wouldn't want all future web apps going in
that hierarchy).

I'm working w/ a client now where we setup different websites on the
webserver, with different 'domain names' (other than localhost), but
have yet to figure out how to get VS.NET to allow me to set

http://mylocaldomain/

as the local web app to create. It always wants to lookup
mylocaldomain like a server name, then create a web app called / under
it, not just resolve it to the local website (mylocaldomain which maps
to some home directory). If anyone knows how to do this, please forward
the info; would be greatly appreciated, as our process for loading the
apps on new PCs is downright painful!
 
R

Rick Spiewak

Create the folder where you want the ASP.NET project to live. Go into IIS
and create a virtual directory which points to the folder you created. Then
create the ASP.NET project, and point it to the the virtual directory.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top