473,785 Members | 2,720 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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
Nov 18 '05 #1
2 2052
Avi Shilon wrote:
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!

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
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.

"Avi Shilon" <Av*******@disc ussions.microso ft.com> wrote in message
news:B2******** *************** ***********@mic rosoft.com...
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

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1036
by: Cemoran | last post by:
Receiving Unable to read the project file WebTest.csproj. The device is not ready. I am working on a test area and I have had to create and remove a web project many times in an effort to get code copied from another server to work correctly. Now when I want to recreate the web project, click on the Add Project button, I click on Web application button and entered the project name and for simplicity I will call it WebTest.
7
5430
by: Wysiwyg | last post by:
Is there any way to add an embedded resource to a project without copying it to the project's directory? I have shared resources and don't want each project using the images, xml files, etc. to need to be updated with the current copy before being built. I also don't want projects being built with the old copy. Thanks! Bill
4
5590
by: Dmitry Korolyov [MVP] | last post by:
When we use btnSubmit.Attributes = "javascript: this.disabled=true;" to make the button disabled and prevent users from clicking it again while form data still posting, there is no longer postback. I.e. the button does go disabled, but the form does not invoke submit() method. Of course, it does work fine without this property. Clues?
2
2793
by: Danny Miller | last post by:
Hi there, I'm facing a problem that is driving me nuts. The scenario is as follows: 1) Create an empty directory structure e.g. C:\Dev1\TestWebApp 2) Map a virtual directory e.g. TestWebApp to this new directory 3) Under C:\Dev1 create a blank visual studio solution and add a new web project called TestWebApp (which will be created in C:\Dev1\TestWebApp and
3
1994
by: _DS | last post by:
The two obvious methods for ref'ing assemblies are: Add a reference and 'Browse' for the actual DLL OR Add existing project to the solution, then add a ref to 'Project'. 1: I'd like to find out what the latter method is doing. I'm assuming that it makes sure that debug exe gets matched to
1
1375
by: Frank Rizzo | last post by:
Is there a way to create a web service project that has a proper project file (e.g. csproj), instead of having it be file based where whatever happens to be in the directory magically becomes part of the project? Thanks
9
1681
by: Stimp | last post by:
I'm trying to copy an asp.net project onto another computer in order to work on it from there as well. Whatever way I set up the directory in IIS the project cannot be run on the new computer (I posted a similar post yesterday but this one should be a bit clearer as to the steps I took..) When I copied the project directory into the wwwroot, and then went into IIS, it showed the directory in 'Default Web Site' as a 'folder'.
1
3835
RRick
by: RRick | last post by:
I have a unix C++ project that needs to be converted over to windows visual studio. I'm not sure of the exact version of VS, but it's a recent version, probabIy 2003 or 2005. I would like the windows directory tree to mimic the unix tree as closely as possible, but I don't want duplicate files and other inconsistencies. I have come up with an idea but I don't know how close it fits a "typical" windows project. If you know of specific...
12
1511
by: Jeff Gaines | last post by:
I am a hobbyist programmer, using C# and VS2008 and writing desktop apps. I am trying hard to take a modular approach to avoid re-inventing the wheel but I'm finding it a bit frustrating. For instance I have a ListViewEx class (based on a ListView) which has in-place editing and a sorter based on column content. It uses custom column headers and custom ListViewItems. In turn the ListViewEx may have a further class base on it and so on. ...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8978
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.