Web Service Question

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

    Web Service Question

    Posted in a different news group - but hoping to find an answer here...

    I am using VS 2005 and am testing my first web service. If I follow the
    common instructions for creating a web service by creating a new website
    using the ASPX.Net Web Service template, there appears to be no dll file
    created when building the web site. However, if I create a class library and
    move the asmx file and App_Code directory to that library the .dll file is
    then created. I've not seen any references that make me believe this is the
    correct way to do this.

    In other words, if I follow the steps in this link
    http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
    that says "The Service.vb (or .cs) class file and the Global.asax class file
    are compiled into the project .dll file, which is then copied to the server
    in the default \bin directory of the target virtual directory. If the project
    is set to compile a debug version, Visual Studio creates a project .pdb file
    in the \bin directory. "

    I have no dll file or \bin directory.

    Can anyone please provide additional guidance?


  • chanmm

    #2
    Re: Web Service Question

    You need to copy asmx file and asmx.cs file over to where you want to
    deploy. Watch out for your web.config file too. Good luck

    chanmm

    "Tony" <Tony@discussio ns.microsoft.co mwrote in message
    news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
    Posted in a different news group - but hoping to find an answer here...
    >
    I am using VS 2005 and am testing my first web service. If I follow the
    common instructions for creating a web service by creating a new website
    using the ASPX.Net Web Service template, there appears to be no dll file
    created when building the web site. However, if I create a class library
    and
    move the asmx file and App_Code directory to that library the .dll file is
    then created. I've not seen any references that make me believe this is
    the
    correct way to do this.
    >
    In other words, if I follow the steps in this link
    http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
    that says "The Service.vb (or .cs) class file and the Global.asax class
    file
    are compiled into the project .dll file, which is then copied to the
    server
    in the default \bin directory of the target virtual directory. If the
    project
    is set to compile a debug version, Visual Studio creates a project .pdb
    file
    in the \bin directory. "
    >
    I have no dll file or \bin directory.
    >
    Can anyone please provide additional guidance?
    >
    >

    Comment

    • Tony

      #3
      Re: Web Service Question

      I didn't think I had to copy the code to the web server... In fact, I don't
      think I would want to copy code tothe web server.

      "chanmm" wrote:
      You need to copy asmx file and asmx.cs file over to where you want to
      deploy. Watch out for your web.config file too. Good luck
      >
      chanmm
      >
      "Tony" <Tony@discussio ns.microsoft.co mwrote in message
      news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
      Posted in a different news group - but hoping to find an answer here...

      I am using VS 2005 and am testing my first web service. If I follow the
      common instructions for creating a web service by creating a new website
      using the ASPX.Net Web Service template, there appears to be no dll file
      created when building the web site. However, if I create a class library
      and
      move the asmx file and App_Code directory to that library the .dll file is
      then created. I've not seen any references that make me believe this is
      the
      correct way to do this.

      In other words, if I follow the steps in this link
      http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
      that says "The Service.vb (or .cs) class file and the Global.asax class
      file
      are compiled into the project .dll file, which is then copied to the
      server
      in the default \bin directory of the target virtual directory. If the
      project
      is set to compile a debug version, Visual Studio creates a project .pdb
      file
      in the \bin directory. "

      I have no dll file or \bin directory.

      Can anyone please provide additional guidance?
      >
      >
      >

      Comment

      • Peter Bromberg [C# MVP]

        #4
        Re: Web Service Question

        I would suggest, then, that you download and install the Web Application
        Project add-in. You will find the usage and semantics almost identical to
        VS.NET 2003.
        Peter

        --
        Co-founder, Eggheadcafe.com developer portal:

        UnBlog:





        "Tony" wrote:
        I didn't think I had to copy the code to the web server... In fact, I don't
        think I would want to copy code tothe web server.
        >
        "chanmm" wrote:
        >
        You need to copy asmx file and asmx.cs file over to where you want to
        deploy. Watch out for your web.config file too. Good luck

        chanmm

        "Tony" <Tony@discussio ns.microsoft.co mwrote in message
        news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
        Posted in a different news group - but hoping to find an answer here...
        >
        I am using VS 2005 and am testing my first web service. If I follow the
        common instructions for creating a web service by creating a new website
        using the ASPX.Net Web Service template, there appears to be no dll file
        created when building the web site. However, if I create a class library
        and
        move the asmx file and App_Code directory to that library the .dll file is
        then created. I've not seen any references that make me believe this is
        the
        correct way to do this.
        >
        In other words, if I follow the steps in this link
        http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
        that says "The Service.vb (or .cs) class file and the Global.asax class
        file
        are compiled into the project .dll file, which is then copied to the
        server
        in the default \bin directory of the target virtual directory. If the
        project
        is set to compile a debug version, Visual Studio creates a project .pdb
        file
        in the \bin directory. "
        >
        I have no dll file or \bin directory.
        >
        Can anyone please provide additional guidance?
        >
        >

        Comment

        • Tony

          #5
          Re: Web Service Question

          That did it... thanks Peter.

          It does raise a couple of questions however...

          1) Is deploying the source code the recommended method to deploy a web
          service if using Visual Studio 2005?
          2) I'm wondering why everything I read said that a dll was going to be
          generated and yet it was not.
          3) Is there a reference that you could suggest where I could read about this?

          Thanks again Peter.
          TE

          "Peter Bromberg [C# MVP]" wrote:
          I would suggest, then, that you download and install the Web Application
          Project add-in. You will find the usage and semantics almost identical to
          VS.NET 2003.
          Peter
          >
          --
          Co-founder, Eggheadcafe.com developer portal:

          UnBlog:

          >
          >
          >
          >
          "Tony" wrote:
          >
          I didn't think I had to copy the code to the web server... In fact, I don't
          think I would want to copy code tothe web server.

          "chanmm" wrote:
          You need to copy asmx file and asmx.cs file over to where you want to
          deploy. Watch out for your web.config file too. Good luck
          >
          chanmm
          >
          "Tony" <Tony@discussio ns.microsoft.co mwrote in message
          news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
          Posted in a different news group - but hoping to find an answer here...

          I am using VS 2005 and am testing my first web service. If I follow the
          common instructions for creating a web service by creating a new website
          using the ASPX.Net Web Service template, there appears to be no dll file
          created when building the web site. However, if I create a class library
          and
          move the asmx file and App_Code directory to that library the .dll file is
          then created. I've not seen any references that make me believe this is
          the
          correct way to do this.

          In other words, if I follow the steps in this link
          http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
          that says "The Service.vb (or .cs) class file and the Global.asax class
          file
          are compiled into the project .dll file, which is then copied to the
          server
          in the default \bin directory of the target virtual directory. If the
          project
          is set to compile a debug version, Visual Studio creates a project .pdb
          file
          in the \bin directory. "

          I have no dll file or \bin directory.

          Can anyone please provide additional guidance?


          >
          >
          >

          Comment

          • Peter Bromberg [C# MVP]

            #6
            Re: Web Service Question

            Tony,
            I'm really agnostic about all this. Source code (e.g. XXX.CS / .VB) doesn't
            get served under the asp.net runtime. However, personally, I've never liked
            the VS 2005 "website project" analogue and was very happy when Scott Guthrie
            and his excellent ASP.NET team finally responded with the ASP.NET Web
            Application Project. I use both, but really prefer having a single assembly
            and NO SOURCE FILES on my server! I don't need "updateable " - I can rebuild
            in a second and write over the old assembly in the /bin folder.
            Peter

            --
            Co-founder, Eggheadcafe.com developer portal:

            UnBlog:





            "Tony" wrote:
            That did it... thanks Peter.
            >
            It does raise a couple of questions however...
            >
            1) Is deploying the source code the recommended method to deploy a web
            service if using Visual Studio 2005?
            2) I'm wondering why everything I read said that a dll was going to be
            generated and yet it was not.
            3) Is there a reference that you could suggest where I could read about this?
            >
            Thanks again Peter.
            TE
            >
            "Peter Bromberg [C# MVP]" wrote:
            >
            I would suggest, then, that you download and install the Web Application
            Project add-in. You will find the usage and semantics almost identical to
            VS.NET 2003.
            Peter

            --
            Co-founder, Eggheadcafe.com developer portal:

            UnBlog:





            "Tony" wrote:
            I didn't think I had to copy the code to the web server... In fact, I don't
            think I would want to copy code tothe web server.
            >
            "chanmm" wrote:
            >
            You need to copy asmx file and asmx.cs file over to where you want to
            deploy. Watch out for your web.config file too. Good luck

            chanmm

            "Tony" <Tony@discussio ns.microsoft.co mwrote in message
            news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
            Posted in a different news group - but hoping to find an answer here...
            >
            I am using VS 2005 and am testing my first web service. If I follow the
            common instructions for creating a web service by creating a new website
            using the ASPX.Net Web Service template, there appears to be no dll file
            created when building the web site. However, if I create a class library
            and
            move the asmx file and App_Code directory to that library the .dll file is
            then created. I've not seen any references that make me believe this is
            the
            correct way to do this.
            >
            In other words, if I follow the steps in this link
            http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
            that says "The Service.vb (or .cs) class file and the Global.asax class
            file
            are compiled into the project .dll file, which is then copied to the
            server
            in the default \bin directory of the target virtual directory. If the
            project
            is set to compile a debug version, Visual Studio creates a project .pdb
            file
            in the \bin directory. "
            >
            I have no dll file or \bin directory.
            >
            Can anyone please provide additional guidance?
            >
            >

            Comment

            • Tony

              #7
              Re: Web Service Question

              Completely agree...

              Thanks Peter, at least now I know I'm not doing 'something wrong'.

              Tony

              "Peter Bromberg [C# MVP]" wrote:
              Tony,
              I'm really agnostic about all this. Source code (e.g. XXX.CS / .VB) doesn't
              get served under the asp.net runtime. However, personally, I've never liked
              the VS 2005 "website project" analogue and was very happy when Scott Guthrie
              and his excellent ASP.NET team finally responded with the ASP.NET Web
              Application Project. I use both, but really prefer having a single assembly
              and NO SOURCE FILES on my server! I don't need "updateable " - I can rebuild
              in a second and write over the old assembly in the /bin folder.
              Peter
              >
              --
              Co-founder, Eggheadcafe.com developer portal:

              UnBlog:

              >
              >
              >
              >
              "Tony" wrote:
              >
              That did it... thanks Peter.

              It does raise a couple of questions however...

              1) Is deploying the source code the recommended method to deploy a web
              service if using Visual Studio 2005?
              2) I'm wondering why everything I read said that a dll was going to be
              generated and yet it was not.
              3) Is there a reference that you could suggest where I could read about this?

              Thanks again Peter.
              TE

              "Peter Bromberg [C# MVP]" wrote:
              I would suggest, then, that you download and install the Web Application
              Project add-in. You will find the usage and semantics almost identical to
              VS.NET 2003.
              Peter
              >
              --
              Co-founder, Eggheadcafe.com developer portal:

              UnBlog:

              >
              >
              >
              >
              "Tony" wrote:
              >
              I didn't think I had to copy the code to the web server... In fact, I don't
              think I would want to copy code tothe web server.

              "chanmm" wrote:

              You need to copy asmx file and asmx.cs file over to where you want to
              deploy. Watch out for your web.config file too. Good luck
              >
              chanmm
              >
              "Tony" <Tony@discussio ns.microsoft.co mwrote in message
              news:5C24DE4B-03B7-489F-ADED-5BB867B31369@mi crosoft.com...
              Posted in a different news group - but hoping to find an answer here...

              I am using VS 2005 and am testing my first web service. If I follow the
              common instructions for creating a web service by creating a new website
              using the ASPX.Net Web Service template, there appears to be no dll file
              created when building the web site. However, if I create a class library
              and
              move the asmx file and App_Code directory to that library the .dll file is
              then created. I've not seen any references that make me believe this is
              the
              correct way to do this.

              In other words, if I follow the steps in this link
              http://msdn2.microsoft.com/en-us/library/6x71sze4.aspx there is a comment
              that says "The Service.vb (or .cs) class file and the Global.asax class
              file
              are compiled into the project .dll file, which is then copied to the
              server
              in the default \bin directory of the target virtual directory. If the
              project
              is set to compile a debug version, Visual Studio creates a project .pdb
              file
              in the \bin directory. "

              I have no dll file or \bin directory.

              Can anyone please provide additional guidance?


              >
              >
              >

              Comment

              Working...