System.Web.Mail

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris

    #1

    System.Web.Mail

    Hi,

    We have the latest version of Visual Studio installed on two machines.

    Both give an error when trying to use System.Web.Mail
    "The type or namespace name 'Mail' does not exist in the class or
    namespace 'System.Web' (are you missing an assembly reference?)"

    According to the microsoft examples & the help this should be there.

    Does anyone know what is wrong?

    Regards,


    Chris


  • Wim Hollebrandse

    #2
    Re: System.Web.Mail

    Have you added the System.Web.dll assembly to your Project References?

    Cheers,
    Wim Hollebrandse

    Zealand IT Ltd is a UK based IT consultancy and software development company that specialises in bespoke Microsoft .NET solutions including ASP.NET web applications and advanced SOA architectures for public and private sector clients. Please contact us for a free quote.


    ---
    Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/

    Comment

    • Jon Skeet [C# MVP]

      #3
      Re: System.Web.Mail

      Chris <Chris@freeserv e.co.uk> wrote:[color=blue]
      > We have the latest version of Visual Studio installed on two machines.
      >
      > Both give an error when trying to use System.Web.Mail
      > "The type or namespace name 'Mail' does not exist in the class or
      > namespace 'System.Web' (are you missing an assembly reference?)"
      >
      > According to the microsoft examples & the help this should be there.
      >
      > Does anyone know what is wrong?[/color]

      As the error suggests, you've almost certainly not got an assembly
      reference to the assembly containing the System.Web.Mail namespace;
      it's in the System.Web.dll assembly.

      --
      Jon Skeet - <skeet@pobox.co m>
      Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

      If replying to the group, please do not mail me too

      Comment

      • Chris Bennett

        #4
        Re: System.Web.Mail


        "Chris" <Chris@freeserv e.co.uk> wrote in message
        news:3f965f7c$0 $246$cc9e4d1f@n ews.dial.pipex. com...[color=blue]
        > Hi,
        >
        > We have the latest version of Visual Studio installed on two machines.
        >
        > Both give an error when trying to use System.Web.Mail
        > "The type or namespace name 'Mail' does not exist in the class or
        > namespace 'System.Web' (are you missing an assembly reference?)"
        >
        > According to the microsoft examples & the help this should be there.
        >
        > Does anyone know what is wrong?
        >
        > Regards,
        >
        >
        > Chris
        >
        >[/color]


        Thanks for the help guys.
        It's my first day with c# and that had me stumped



        Comment

        Working...