Results 1 to 6 of 6

Thread: assembly reference

  1. #1

    Thread Starter
    Hyperactive Member Iron Skull's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    325

    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

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    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

  3. #3
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    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.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: assembly reference

    Quote 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

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: assembly reference

    Quote Originally Posted by DNA7433
    Hurry up and mark this thread as resolved before jmcilhinney has a fit
    I told you

    Quote 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
  •  



Click Here to Expand Forum to Full Width