473,416 Members | 1,858 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,416 software developers and data experts.

visual studio web application rookie questions

I've been developing asp.net web apps for a year using Dreamweaver MX, and
we finally
purchased vs.net 03. I'm stumbling around trying to use the IDE and I
have a few questions... maybe someone could point me to a good
tutorial or book but I haven't found what I'm looking for yet.

1) When I create a new web app project, does it have to be in my
inetpub/wwwroot folder? Can I create a virtual host in IIS and put the
project in my c:\dvl\webapps folder?

2) How do I add a .net dll component to the project? I used to just
compile the component from the command line, put the dll in the web
app's bin directory, and add the imports statement to my page's
code... now this method doesn't seem to be working and I'm assuming I
have to associate the component with the project or solution in some way.
Does the component have to be a class library project in the solution or can
it be part of the same project?

thanks.
Nov 19 '05 #1
2 1358
"Bob Garbados" <bo*********@yahoo.com> wrote in message
news:PU****************@fe07.lga...
I've been developing asp.net web apps for a year using Dreamweaver MX, and
we finally
purchased vs.net 03. I'm stumbling around trying to use the IDE and I
have a few questions... maybe someone could point me to a good
tutorial or book but I haven't found what I'm looking for yet.

1) When I create a new web app project, does it have to be in my
inetpub/wwwroot folder? Can I create a virtual host in IIS and put the
project in my c:\dvl\webapps folder?
No. What I always do is create the web project folder wherever I want. I
then right-click the folder in Windows Explorer and choose Properties. On
the Web Sharing tab, I web-share the folder with the default name. I then
create the web application with VS.NET, which now knows where to put the
project.
2) How do I add a .net dll component to the project? I used to just
compile the component from the command line, put the dll in the web
app's bin directory, and add the imports statement to my page's
code... now this method doesn't seem to be working and I'm assuming I
have to associate the component with the project or solution in some way.
Does the component have to be a class library project in the solution or
can
it be part of the same project?


You reference another DLL by using Add Reference.

You want it to be a separate project, though it may or may not be part of
the same solution. If it is part of the same solution, you can add a Project
reference (a reference from the Project tab). This has the benefit that the
web site and the class library are all coordinated in terms of which project
configuration is used. That is, they can both be in Debug mode or both in
Release mode, and VS.NET will get the right version.

Otherwise, you can use a normal reference on the .NET tab by browsing to the
location of the DLL.

John Saunders

P.S. You may find the following useful, even if you're not using SourceSafe
for source control (or indeed, even if you're not using source control):

Team Development with Visual Studio .NET and Visual SourceSafe
(http://msdn.microsoft.com/library/de...asp?frame=true)
Nov 19 '05 #2
Thank you. I knew it would be simple. We are in the process of
implementing SourceSafe and the link looks like it will be very helpful.

"John Saunders" <johnwsaundersiii at hotmail.com> wrote in message
news:uU**************@TK2MSFTNGP14.phx.gbl...
"Bob Garbados" <bo*********@yahoo.com> wrote in message
news:PU****************@fe07.lga...
I've been developing asp.net web apps for a year using Dreamweaver MX, and we finally
purchased vs.net 03. I'm stumbling around trying to use the IDE and I
have a few questions... maybe someone could point me to a good
tutorial or book but I haven't found what I'm looking for yet.

1) When I create a new web app project, does it have to be in my
inetpub/wwwroot folder? Can I create a virtual host in IIS and put the
project in my c:\dvl\webapps folder?
No. What I always do is create the web project folder wherever I want. I
then right-click the folder in Windows Explorer and choose Properties. On
the Web Sharing tab, I web-share the folder with the default name. I then
create the web application with VS.NET, which now knows where to put the
project.
2) How do I add a .net dll component to the project? I used to just
compile the component from the command line, put the dll in the web
app's bin directory, and add the imports statement to my page's
code... now this method doesn't seem to be working and I'm assuming I
have to associate the component with the project or solution in some way. Does the component have to be a class library project in the solution or
can
it be part of the same project?


You reference another DLL by using Add Reference.

You want it to be a separate project, though it may or may not be part of
the same solution. If it is part of the same solution, you can add a

Project reference (a reference from the Project tab). This has the benefit that the web site and the class library are all coordinated in terms of which project configuration is used. That is, they can both be in Debug mode or both in
Release mode, and VS.NET will get the right version.

Otherwise, you can use a normal reference on the .NET tab by browsing to the location of the DLL.

John Saunders

P.S. You may find the following useful, even if you're not using SourceSafe for source control (or indeed, even if you're not using source control):

Team Development with Visual Studio .NET and Visual SourceSafe
(http://msdn.microsoft.com/library/de...-us/dnbda/html
/tdlg_rm.asp?frame=true)

Nov 19 '05 #3

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

Similar topics

1
by: angelag | last post by:
I am currently taking a college course in Visual Basic.Net and I am a beginner. I bought Visual Studio.Net 2003 to do my homework at home. I built my first project and e-mailed it to myself at...
5
by: Daniele | last post by:
Hi, how is it possible to create a project with a specific template, compile it and close it? All with a c# script. Thanks, Daniele
21
by: Paul Tremblay | last post by:
Hi All, I am a veteran C/C++ programmer (Unix background) and I want to get to speed with Visual Studio .Net I have legacy C/C++ code that I want to use in my application. However, I'm not...
3
by: Andy Lim | last post by:
I'm currently working on my second web application using VS 2003/VB.NET, after moved from Dreamweaver MX. one thing that i missed so much in VS2003 is DWMX's great visual, WYSIWYG layout design,...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
6
by: phnimx | last post by:
I'm attempting to migrate a predominately MFC application that I've just inherited from Visual Studio.NET 2003 to Visual Studio 2005. I've managed to clean up a myriad of compile and link errors...
5
by: cj | last post by:
I'm getting started writing WEB program in VB2005. I'm been doing windows apps to date. A friend told me to get Visual Web Developer Express Edition. But I have Visual Studio Pro 2005 and it...
1
by: Nathan | last post by:
Hello, I have a programming assignment due for my programming class. Basically, I have to code the program in visual studio..then I have to paste the code and the output into microsoft...
13
by: miztaken | last post by:
Hi, My C# application have a following code to create an instance of Visual Studio. System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE. 8.0"); Object obj =...
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
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
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,...
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,...
0
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...

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.