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. Web Development
  3. ASP.NET
  4. Deploy web service in ASP.NET

Deploy web service in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netwcfsysadminhelp
9 Posts 3 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.
  • V Offline
    V Offline
    VK Link
    wrote on last edited by
    #1

    People, I have developed and consumed web service on my computer without any issues. Created two different projects, one for actual "app project" and one for "web services project". Added a web service reference in "app project". Now, want to move this project to staging server. I just copied over the folder "app project". It has a folder with Web References, with a list of all web services that were created. But when I try to access the project over the web, it comes back with message: "The request failed with HTTP status 404: Not Found." any help would be appreciated. any links on how to deploy projects with web services would be helpful. Thanks.

    J S 2 Replies Last reply
    0
    • V VK Link

      People, I have developed and consumed web service on my computer without any issues. Created two different projects, one for actual "app project" and one for "web services project". Added a web service reference in "app project". Now, want to move this project to staging server. I just copied over the folder "app project". It has a folder with Web References, with a list of all web services that were created. But when I try to access the project over the web, it comes back with message: "The request failed with HTTP status 404: Not Found." any help would be appreciated. any links on how to deploy projects with web services would be helpful. Thanks.

      J Offline
      J Offline
      Javier Lozano
      wrote on last edited by
      #2

      Check out this article for a work around: http://www.devx.com/dotnet/Article/20418/0/page/7[^] ~Javier Lozano

      1 Reply Last reply
      0
      • V VK Link

        People, I have developed and consumed web service on my computer without any issues. Created two different projects, one for actual "app project" and one for "web services project". Added a web service reference in "app project". Now, want to move this project to staging server. I just copied over the folder "app project". It has a folder with Web References, with a list of all web services that were created. But when I try to access the project over the web, it comes back with message: "The request failed with HTTP status 404: Not Found." any help would be appreciated. any links on how to deploy projects with web services would be helpful. Thanks.

        S Offline
        S Offline
        Selahattin Bostanci
        wrote on last edited by
        #3

        Make sure that your web reference's url behaviour is set to Dynamic. (default is static.)

        V 1 Reply Last reply
        0
        • S Selahattin Bostanci

          Make sure that your web reference's url behaviour is set to Dynamic. (default is static.)

          V Offline
          V Offline
          VK Link
          wrote on last edited by
          #4

          Can this Dynamic be set in certain location, like web.config file? Or where can we set this? Thanks. Vani

          S 1 Reply Last reply
          0
          • V VK Link

            Can this Dynamic be set in certain location, like web.config file? Or where can we set this? Thanks. Vani

            S Offline
            S Offline
            Selahattin Bostanci
            wrote on last edited by
            #5

            Choose the web reference from solution explorer. right-click and choose properties. set URL Behaviour to dynamic if not so. then rebuild the solution and deploy your project.

            V 1 Reply Last reply
            0
            • S Selahattin Bostanci

              Choose the web reference from solution explorer. right-click and choose properties. set URL Behaviour to dynamic if not so. then rebuild the solution and deploy your project.

              V Offline
              V Offline
              VK Link
              wrote on last edited by
              #6

              Hi - I set the URL Behavior to "Dynamic" for a web reference, re-built the solution and copied over to staging/development server from my computer and it comes up with following error message: "Error source:System.Web.Services Error Message:The request failed with HTTP status 404: Not Found." Same error message when URL Behavior is set to "static" Thanks.

              S 1 Reply Last reply
              0
              • V VK Link

                Hi - I set the URL Behavior to "Dynamic" for a web reference, re-built the solution and copied over to staging/development server from my computer and it comes up with following error message: "Error source:System.Web.Services Error Message:The request failed with HTTP status 404: Not Found." Same error message when URL Behavior is set to "static" Thanks.

                S Offline
                S Offline
                Selahattin Bostanci
                wrote on last edited by
                #7

                does the virtual directory you created in remote server has the same address with the one in your local? If not; change the address in the web.config. I mean; if your project is in your localhost and the virtual directory you created in remote server is like e.g. localhost:8080 then change your projects web.config file with the right address. e.g. change it to: hope this works;

                V 1 Reply Last reply
                0
                • S Selahattin Bostanci

                  does the virtual directory you created in remote server has the same address with the one in your local? If not; change the address in the web.config. I mean; if your project is in your localhost and the virtual directory you created in remote server is like e.g. localhost:8080 then change your projects web.config file with the right address. e.g. change it to: hope this works;

                  V Offline
                  V Offline
                  VK Link
                  wrote on last edited by
                  #8

                  AWESOME!!!! Thanks a whole bunch!! It is working! By setting the Web references URL to Dynamic and recompiling, I guess those lines with path were added to web.config file, right? I never checked there yesterday and today after you mentioned, had a look and it is there those lines were there. Another note - does this sound right - I had to copy over only the .asmx file from "web services project" to the "application project". It just seems odd that it had to be done, it this right? Many thanks for all your time! Vani

                  S 1 Reply Last reply
                  0
                  • V VK Link

                    AWESOME!!!! Thanks a whole bunch!! It is working! By setting the Web references URL to Dynamic and recompiling, I guess those lines with path were added to web.config file, right? I never checked there yesterday and today after you mentioned, had a look and it is there those lines were there. Another note - does this sound right - I had to copy over only the .asmx file from "web services project" to the "application project". It just seems odd that it had to be done, it this right? Many thanks for all your time! Vani

                    S Offline
                    S Offline
                    Selahattin Bostanci
                    wrote on last edited by
                    #9

                    For the application project nothing is necessary to copy from web service project cause you are already referencing the path in your web.config file. See ya;

                    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