473,792 Members | 2,937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

references do what?

Sad to say, i have developed several B2B web apps using ASP fo rnearly 5
years now and there is on area that i still don't have a grasp on. Why do
you make references? Better yet, what happens if you don't. Here is an
example. For some reason, I couldn't get my latest creation to send email.
Would return something about a SendUsing config being bad. I go to MS site
and use one of their demo codes. It says to create a new project and add a
reference to system.web.dll. Before I added it, I tried my project again and
magically, it has started working. I am pretty sure that the settings that I
made Friday just needed some time to take effect (properly set SMTP config
on IIS serv). But reading the MS code makes me wonder enough to ask: Why do
you manually add references to projects, and what happens if you don't? Mine
worked fine without adding the reference to the project. Are references what
will allow VS.Net to auto complete things for you? For example, when i use
the wizard to start a new web proj, I notice that VS.Net will auto suggest
properties for objects that I have inserted as I am coding. The proj I am
doing now I just linked to a web site (no wizard) and it auto suggests
nothing which makes me have to dig for properties as opposed to it auto
generating a pop up. how do i get VS.Net to auto pop up property suggestions
for objects? Thanks all!
Nov 17 '05 #1
4 962
References tell the compiler where to find the DLLs it needs to compile your
project.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"Rick Csucsai" <ri**@cerinosol utions.com> wrote in message
news:uU******** *****@tk2msftng p13.phx.gbl...
Sad to say, i have developed several B2B web apps using ASP fo rnearly 5
years now and there is on area that i still don't have a grasp on. Why do
you make references? Better yet, what happens if you don't. Here is an
example. For some reason, I couldn't get my latest creation to send email.
Would return something about a SendUsing config being bad. I go to MS site
and use one of their demo codes. It says to create a new project and add a
reference to system.web.dll. Before I added it, I tried my project again and magically, it has started working. I am pretty sure that the settings that I made Friday just needed some time to take effect (properly set SMTP config
on IIS serv). But reading the MS code makes me wonder enough to ask: Why do you manually add references to projects, and what happens if you don't? Mine worked fine without adding the reference to the project. Are references what will allow VS.Net to auto complete things for you? For example, when i use
the wizard to start a new web proj, I notice that VS.Net will auto suggest
properties for objects that I have inserted as I am coding. The proj I am
doing now I just linked to a web site (no wizard) and it auto suggests
nothing which makes me have to dig for properties as opposed to it auto
generating a pop up. how do i get VS.Net to auto pop up property suggestions for objects? Thanks all!

Nov 17 '05 #2
Hi,

The reference task is to add to assembly metadata all the assemblies
that used by the given assembly and indication whether the assembly got
strong name key. VS use that data to load reference assemblies’ metadata
to show inlellisense and CLR loader use it to load those assemblies. By
default when you open VS project certain references are made by the VS.
You can see those references by using ildasm tool and look in the
metadata.

Natty Gur[MVP]
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #3
How is it then that even though I didn't specifically add the reference
that it still works? Also, any answer on how to tell VS to give me the
pop ups as I am entering objects?

Thanks for the reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #4
It shouldn't. In fact it can't. If the reference isn't there, the runtime is
hopelessly lost. The fact that it is working implies that there is a
reference telling it where to find the assembly

regards

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"Rick Csucsai" <ri**@cerinosol utions.com> wrote in message
news:eR******** *****@TK2MSFTNG P10.phx.gbl...
How is it then that even though I didn't specifically add the reference
that it still works? Also, any answer on how to tell VS to give me the
pop ups as I am entering objects?

Thanks for the reply.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #5

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

Similar topics

17
3082
by: Tom | last post by:
The motivation for references seems clear: stop people from using nasty pointers when all they really want is a reference to an object. But C++ references are so inadequate that I'm still using pointers for my references to objects. There are 3 reasons why I find them inadequate: 1 - Can't be null. 2 - Can't be reseated. Now I'm sure there are good reasons for these first 2, but it's #3 that I
22
2247
by: xmp333 | last post by:
Hi All, I am trying to hide my JavaScript source. The method I chose was to keep all the important source in a password protected folder, and then use a SRC="folder/script.js" to include it in my code. This way, the script will run, but the user will be unable to view the included code. Or so I think :). I have tried this method, and it seems to work. However, I would like
33
2404
by: JKop | last post by:
I understand variables/objects and pointer variables perfectly: int X = 5; int* pX = &X; *pX = 4; int** ppX = &pX:
2
32207
by: Michelle Collier-Moore | last post by:
Please could someone offer some advice regarding adding references to an Access database? I tried to open a project a few days ago sent to me by someone whose developer had left the company. I found that I had a reference problem and went to the usual Tools, References place to fix it. The References option was greyed out and as I have never seen this happen before, after trying various things, searching here for an answer etc. gave up!!
11
1992
by: codebloatation | last post by:
I know how to use references but i DO not get WHY they exist other than to add to the language. Are they actually needed for anything?
14
2964
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with out params is that the results seem
458
21483
by: wellstone9912 | last post by:
Java programmers seem to always be whining about how confusing and overly complex C++ appears to them. I would like to introduce an explanation for this. Is it possible that Java programmers simply aren't smart enough to understand C++? This is not merely a whimsical hypothesis. Given my experience with Java programmers --- the code they write and the conversations they have --- Occam's Razor points to this explanation. For example,...
28
2040
by: Frederick Gotham | last post by:
When I was a beginner in C++, I struggled with the idea of references. Having learned how to use pointers first, I was hesitant to accept that references just "do their job" and that's it. Just recently, a poster posted looking for an explanation of references. I'll give my own understanding if it's worth anything. First of all, the C++ Standard is a very flexible thing. It gives a mountain of freedom to implementations to do things...
9
2474
by: igor.kulkin | last post by:
References is a relatively basic feature of C++ language. It might be a good thing to think of references as aliases to the variables. However it's good to think of references this way when you deal with references which are local variables. But references can also be function arguments (in fact they are more useful this way) in which case it has to have the in-memory representation.
3
3864
by: CenturionX | last post by:
Hello everybody: I'd like to know what references in my vba code are used or not. I work in a code made by another person previously, i founded to many references and i believe that someones are not used. I'd like to optimize the application ereasing the useless references. Thanks a lot.
0
9670
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
9518
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
10430
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
7538
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
6776
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
5436
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...
0
5560
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3719
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2917
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.