Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Unable to Build Release Version of Program

Unable to Build Release Version of Program

Scheduled Pinned Locked Moved C#
announcementcsharpsysadmindebugginghelp
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MWRivera
    wrote on last edited by
    #1

    Hi, I'm using a third party class library called SmtPop.NET, to allow me to read (Pop3) and send (SMTP) email from a server. I have this whole program working correctly when building the Debug version of the application. Only when I try and build the Release version I recieve a number of errors relating to the SmtPop reference, for example: Error: The type or namespace name 'SmtPop' could not be found (are you missing a using directive or an assembly reference?)
    I also recieve the following warning message: Warning: Could not resolve this reference. Could not locate the assembly "smtpop". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
    Does anyone know why I would recieve these messages? Or has anyone every recieved messages of this sort when trying to build a Release version of a program that inclueds a third party class library added as a referance? Any help would be really appreciated. Thanks, Mel

    M 1 Reply Last reply
    0
    • M MWRivera

      Hi, I'm using a third party class library called SmtPop.NET, to allow me to read (Pop3) and send (SMTP) email from a server. I have this whole program working correctly when building the Debug version of the application. Only when I try and build the Release version I recieve a number of errors relating to the SmtPop reference, for example: Error: The type or namespace name 'SmtPop' could not be found (are you missing a using directive or an assembly reference?)
      I also recieve the following warning message: Warning: Could not resolve this reference. Could not locate the assembly "smtpop". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
      Does anyone know why I would recieve these messages? Or has anyone every recieved messages of this sort when trying to build a Release version of a program that inclueds a third party class library added as a referance? Any help would be really appreciated. Thanks, Mel

      M Offline
      M Offline
      MWRivera
      wrote on last edited by
      #2

      Is there something you have to do with references when creating the release version of a .Net program?

      M 1 Reply Last reply
      0
      • M MWRivera

        Is there something you have to do with references when creating the release version of a .Net program?

        M Offline
        M Offline
        MWRivera
        wrote on last edited by
        #3

        Ok, I've been playing around with it and just happened to copy the SmpPop.dll and other related files (contained in a folder) into the folder of my project and then reattached the SmpPop.dll as a reference in my project. Rebuilt the solution, which was successful with no error. I'm assuming that was the problem and I had to include reference dll's in the folder of your project. Correct me please if I'm wrong of if you know of an article that I can read that describes the process of a build. Thanks, Mel

        M 1 Reply Last reply
        0
        • M MWRivera

          Ok, I've been playing around with it and just happened to copy the SmpPop.dll and other related files (contained in a folder) into the folder of my project and then reattached the SmpPop.dll as a reference in my project. Rebuilt the solution, which was successful with no error. I'm assuming that was the problem and I had to include reference dll's in the folder of your project. Correct me please if I'm wrong of if you know of an article that I can read that describes the process of a build. Thanks, Mel

          M Offline
          M Offline
          mprice214
          wrote on last edited by
          #4

          http://www.codeproject.com/Messages/1996551/Re-How-to-deploye-csharp-Application.aspx[^] or Google "deploying C# project" or similar.

          M 1 Reply Last reply
          0
          • M mprice214

            http://www.codeproject.com/Messages/1996551/Re-How-to-deploye-csharp-Application.aspx[^] or Google "deploying C# project" or similar.

            M Offline
            M Offline
            MWRivera
            wrote on last edited by
            #5

            Thanks for your reply.

            M 1 Reply Last reply
            0
            • M MWRivera

              Thanks for your reply.

              M Offline
              M Offline
              mprice214
              wrote on last edited by
              #6

              Your welcome. Hope it helped.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups