Deploy web service in ASP.NET
-
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.
-
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.
Check out this article for a work around: http://www.devx.com/dotnet/Article/20418/0/page/7[^] ~Javier Lozano
-
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.
Make sure that your web reference's url behaviour is set to Dynamic. (default is static.)
-
Make sure that your web reference's url behaviour is set to Dynamic. (default is static.)
-
Can this Dynamic be set in certain location, like web.config file? Or where can we set this? Thanks. Vani
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.
-
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.
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.
-
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.
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;
-
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;
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
-
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
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;