473,378 Members | 1,156 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,378 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 1268
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.