473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Create a 3-teir Project

Hi guys, I have been working with .net for nearly a year now, and I would
like to move forward and start to learn how to create proper projects, i.e.
3-teir.

I have read extensively about the mechanics of 3-tier architecture but have
yet not stumbled upon any information regarding setting up a 3-tier app in vs.

I have had a stab at it though, but I have a few questions.

Here is what I have done to date:

Created a solution (eg - myproj)
Created 3 class library projects one called myprojWeb, one called myprojDb,
and the other called myprojBusiness.

I create a project reference between web and business and business to db.

Question #1:
All seems to be ok inside of visual studio, but inside IIS, i get four
virtual directories, one each for each class library created.

I am not sure if this is correct and would be more than greatful for some
guidance/examples of setting up a 3-tier project properly.

Kind regards

Watherton

The
Jul 21 '05 #1
1 1271
Hello Watherton,
"Watherton" <wa*******@discussions.microsoft.com> wrote in message
news:A8**********************************@microsof t.com...
Here is what I have done to date:

Created a solution (eg - myproj)
Created 3 class library projects one called myprojWeb, one called myprojDb, and the other called myprojBusiness.

I create a project reference between web and business and business to db.

Question #1:
All seems to be ok inside of visual studio, but inside IIS, i get four
virtual directories, one each for each class library created.


this happens when your class library projects are actually web projects.
When you add a new project to your solution, if it is really a class
library, you won't get a seperate virtual directory for it. It will be
created in a totally different place on your hard drive (usually) and that
is OK. Your references will take care of pulling it all together when you
compile.

My advice: add two more projects to your solution: real class libraries, not
web projects. Move the code from the extraneous web projects to the class
libraries and delete the two extra web projects. (then go into IIS, and
delete the virtual directories).

Hope this helps,
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
Jul 21 '05 #2

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

Similar topics

10
by: Zack Sessions | last post by:
Has anyone tried to create a SQL7 view using the CREATE VIEW command and ADO.NET? If so, is there a trick in trapping a SQL error when trying to create the view? I have a VB.NET app that, amoung...
37
by: Steven Bethard | last post by:
The PEP below should be mostly self explanatory. I'll try to keep the most updated versions available at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
18
by: Steven Bethard | last post by:
I've updated the PEP based on a number of comments on comp.lang.python. The most updated versions are still at: http://ucsu.colorado.edu/~bethard/py/pep_create_statement.txt...
8
by: barb | last post by:
So that the world at large benefits from our efforts, here is one fully documented way to use Windows Irfanview freeware to create thumbnail web galleries (http://www.irfanview.com). STEP 1:...
0
by: dbsog7777 | last post by:
I was trying to use the sample code below, but I encountered two errors: Application.DoEvents() and AutoText(entry). I am not sure how to correct the errors. I trying to use the sample code to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.