473,807 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1375
"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:PU******** ********@fe07.l ga...
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" <johnwsaundersi ii at hotmail.com> wrote in message
news:uU******** ******@TK2MSFTN GP14.phx.gbl...
"Bob Garbados" <bo*********@ya hoo.com> wrote in message
news:PU******** ********@fe07.l ga...
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?fra me=true)

Nov 19 '05 #3

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

Similar topics

1
7272
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 school. When I tried to open it in the lab, I got a message saying I couldn't open it because it was created with a newer version. Evidently the lab is using Visual Studio.Net 2002. My professor doesn't just want the executable file, he wants...
5
1617
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
2041
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 sure how to call my native C++ functions from my C++ DLLs. The confusion is this: I currently have Visual Studio 2003 it is not clear whether I should use managed extensions or C++/Interop?
3
1418
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, and HTML template feature. well, as you know, developing web application is not just about inserting/updating/deleting and displaying data in plain-page design. so, here are my questions: - how to workaround this limitation in VS2003 - how to...
18
9159
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 page "How to: Connect to Data in an Access Database"
6
16192
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 but I'm stuck on one final problem. Please note that this application compiled/linked and ran just fine out of Visual Studio.NET 2003. Details: It's originally incarnated as an MFC app, i.e. CWinApp, CMultiDocTemplate,
5
2221
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 says I have Visual Web Developer in it. I'm just not sure what that is and how to start it. Any advise?
1
1556
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 word(2007). Well my friend told me that you can copy and paste the "outputbox" into Word. When i say "output box"..i mean the display window that pops up when you run the program. Well, when I try to copy the output dialog box..the copy function is
13
3749
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 = System.Activator.CreateInstance(type, true); EnvDTE80.DTE2 dte8Obj = (EnvDTE80.DTE2)obj; MessageFilter.Register(); dte8Obj.MainWindow.Visible = false;
0
9599
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
10626
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...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10112
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6879
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
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4330
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
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
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.