Bin directory

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

    Bin directory

    Hi,

    I develop with VS 2005.

    Why I don't have a bin directory with a dll when I create a web service
    project and generate the site web. I only have a *.asmx file and a *.vb file
    in a App_code directory

    I have done something wrong ?


  • Mr. Arnold

    #2
    Re: Bin directory


    "Amirallia" <mcapetola@hisp eed.chwrote in message
    news:ed$5k5nIJH A.1556@TK2MSFTN GP03.phx.gbl...
    Hi,
    >
    I develop with VS 2005.
    >
    Why I don't have a bin directory with a dll when I create a web service
    project and generate the site web. I only have a *.asmx file and a *.vb
    file in a App_code directory
    >
    I have done something wrong ?
    >
    A Web service is hosted by the Web Server, which is IIS. A Web service is
    not a executable exe or DLL so all the Web server needs to host a Web
    service is the .asmx, and the .asmx needs the .VB code behind file
    associated to the .asmx to host the solution.

    The only time you would need a Bin directory is if the Web service had
    references set to some 3rd party DLL(s), as an example, that it was using,
    and the DLL(s) would be kept in the Bin directory of the Web site's virtual
    directory for the solution.

    Comment

    • John Saunders

      #3
      Re: Bin directory

      "Amirallia" <mcapetola@hisp eed.chwrote in message
      news:ed$5k5nIJH A.1556@TK2MSFTN GP03.phx.gbl...
      Hi,
      >
      I develop with VS 2005.
      >
      Why I don't have a bin directory with a dll when I create a web service
      project and generate the site web. I only have a *.asmx file and a *.vb
      file in a App_code directory
      >
      I have done something wrong ?
      Are you running VS 2005 SP1? If not, then you should upgrade immediately.

      Did you create a "Web Site project" using File->New Web Site? If so, then
      you did not create a project, and you will not have a bin directory. You
      should use File->New Project and choose "ASP.NET Web Service" if you want a
      project, a bin directory, etc.

      Microsoft mistakenly replaced Web Application Projects (with the "bin"
      directory) out of VS2005 when it shipped. They put them back in SP1. I
      recommend that web services should always be created using File->New
      Project.

      --
      John Saunders | MVP - Connected System Developer

      Comment

      • Scott M.

        #4
        Re: Bin directory

        Microsoft mistakenly replaced Web Application Projects (with the "bin"
        directory) out of VS2005 when it shipped. They put them back in SP1. I
        recommend that web services should always be created using File->New
        Project.
        If by "mistakenly ", you mean "made a bad decision, but knowingly did so",
        then I agree. But, if you mean that they somehow "forgot" about WAP, that's
        not the case.

        In any case, there is only one way to create a Web Service, which is to have
        a Web Service project. Because this is a "project", it comes with a /bin
        directory.

        -Scott


        Comment

        • John Saunders

          #5
          Re: Bin directory

          "Scott M." <s-mar@nospam.nosp amwrote in message
          news:e9$HQVBJJH A.4600@TK2MSFTN GP06.phx.gbl...
          >Microsoft mistakenly replaced Web Application Projects (with the "bin"
          >directory) out of VS2005 when it shipped. They put them back in SP1. I
          >recommend that web services should always be created using File->New
          >Project.
          >
          If by "mistakenly ", you mean "made a bad decision, but knowingly did so",
          then I agree. But, if you mean that they somehow "forgot" about WAP,
          that's not the case.
          I know they didn't forget it. They just made a very stupid decision. They
          should *NEVER* break our code, and they cost me six weeks just trying to get
          existing, working .NET 1.1 code to build. Their stupid mistake kept deciding
          that my WAP was really a web site - which happens not to build.
          In any case, there is only one way to create a Web Service, which is to
          have a Web Service project. Because this is a "project", it comes with a
          /bin directory.
          In VS2008 - File->New Web Site lists "ASP.NET Web Service" as well as "WCF
          Service".

          John Saunders | MVP - Connected System Developer

          Comment

          Working...