|
-
Sep 7th, 2006, 09:00 AM
#1
Thread Starter
Hyperactive Member
assembly reference
The type or namespace name 'Mail' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)
How do I add that? (Fix)
506C65617365205261746520506F7374732E2E2E
-
Sep 7th, 2006, 09:04 AM
#2
Re: assembly reference
It's System.Net.Mail not System.Web.Mail
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 7th, 2006, 04:47 PM
#3
Fanatic Member
Re: assembly reference
Hurry up and mark this thread as resolved before jmcilhinney has a fit
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
-
Sep 7th, 2006, 04:51 PM
#4
Re: assembly reference
 Originally Posted by DNA7433
Hurry up and mark this thread as resolved before jmcilhinney has a fit 
He's gonna read it anyway, so you have no point
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Sep 7th, 2006, 08:42 PM
#5
Re: assembly reference
How do we know that the OP has even read the reply, plus it is incorrect to say that it is not System.Web.Mail because it is. System.Net.Mail is new in .NET 2.0, while System.Web.Mail exists in all versions of the Framework. The error here is not specifying the version being used, so we don't know. Either way you need to add a reference to the appropriate assembly to be able to use the types it contains. If you're using .NET 2.0 then it should be System.Net.Mail.dll, otherwise it has to be System.Web.Mail.dll. Once you've referenced the appropriate assembly your project knows it exists and can interrogate it to see what it contains. Then you can import namespaces from that assembly. Note that the two namespaces and the types they contain are similar but not the same, so make sure you read the documentation for the correct one. Please specify your version using the radio buttons provided when creating threads in the future. Otherwise you are more likely to get information that doesn't apply to you, and we may waste our time providing an elaborate solution that you can't use.
-
Sep 7th, 2006, 09:55 PM
#6
Re: assembly reference
 Originally Posted by DNA7433
Hurry up and mark this thread as resolved before jmcilhinney has a fit 
I told you
 Originally Posted by jmcilhinney
System.Web.Mail exists in all versions of the Framework.
I don't remember the old name for the namespace but you have a good point about the version tool
please people specify the version in the future
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|