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. C# Webservice Deployment

C# Webservice Deployment

Scheduled Pinned Locked Moved C#
csharpsysadminquestionphpvisual-studio
8 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
    Victor Boctor
    wrote on last edited by
    #1

    I have created a Webservice using Visual Studio .NET 2003. The webservice works fine on my local webserver. I then created a Web Setup project to install/uninstall this webservice. I have tested it on my local machine and everything works fine. Now, I need to deploy this webservice on my website. The ISP I use supports .NET Hosting v1.0/V1.1. However, how can I run the Web Setup on their server!??? I tried copying the files, but it doesn't work. I changed custom errors mode to be Off, and changed the authorization mode to None. I also changed the .webinfo file to reflect the webservice location. Any ideas, how this can be done? phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

    U M 2 Replies Last reply
    0
    • V Victor Boctor

      I have created a Webservice using Visual Studio .NET 2003. The webservice works fine on my local webserver. I then created a Web Setup project to install/uninstall this webservice. I have tested it on my local machine and everything works fine. Now, I need to deploy this webservice on my website. The ISP I use supports .NET Hosting v1.0/V1.1. However, how can I run the Web Setup on their server!??? I tried copying the files, but it doesn't work. I changed custom errors mode to be Off, and changed the authorization mode to None. I also changed the .webinfo file to reflect the webservice location. Any ideas, how this can be done? phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

      U Offline
      U Offline
      Uwe Keim
      wrote on last edited by
      #2

      Victor Boctor wrote: I tried copying the files, but it doesn't work Arrrgh! This is the worst error message that customers can give, and I do receive them often. "It doesn't work" is useless. WHAT doesn't work? WHICH error message was delivered? Which TASK are you trying that failed? etc. -- - Free Windows-based CMS: www.zeta-software.de/enu/producer/freeware/download.html - See me: www.magerquark.de - MSN Messenger: uwe_keim@hotmail.com

      V 1 Reply Last reply
      0
      • V Victor Boctor

        I have created a Webservice using Visual Studio .NET 2003. The webservice works fine on my local webserver. I then created a Web Setup project to install/uninstall this webservice. I have tested it on my local machine and everything works fine. Now, I need to deploy this webservice on my website. The ISP I use supports .NET Hosting v1.0/V1.1. However, how can I run the Web Setup on their server!??? I tried copying the files, but it doesn't work. I changed custom errors mode to be Off, and changed the authorization mode to None. I also changed the .webinfo file to reflect the webservice location. Any ideas, how this can be done? phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

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

        You can copy file there through ftp but don't forget that you have to put it in virtual folder , they have to create it for you or give you some admin privilage to do that. I'm not sure you can run installshield there when you don't have direct access to server. For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there. Mazy No sig. available now.

        V 1 Reply Last reply
        0
        • U Uwe Keim

          Victor Boctor wrote: I tried copying the files, but it doesn't work Arrrgh! This is the worst error message that customers can give, and I do receive them often. "It doesn't work" is useless. WHAT doesn't work? WHICH error message was delivered? Which TASK are you trying that failed? etc. -- - Free Windows-based CMS: www.zeta-software.de/enu/producer/freeware/download.html - See me: www.magerquark.de - MSN Messenger: uwe_keim@hotmail.com

          V Offline
          V Offline
          Victor Boctor
          wrote on last edited by
          #4

          When I use the browser and type: http://www.example.com/dotNet/MyService/Service1.asmx I get the following (even when I set the customErrors mode to Off, I still get the same error: Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL. phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

          U 1 Reply Last reply
          0
          • M Mazdak

            You can copy file there through ftp but don't forget that you have to put it in virtual folder , they have to create it for you or give you some admin privilage to do that. I'm not sure you can run installshield there when you don't have direct access to server. For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there. Mazy No sig. available now.

            V Offline
            V Offline
            Victor Boctor
            wrote on last edited by
            #5

            Mazdak wrote: For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there. What is the difference between having it in the root of the website vs. in a sub-directory? I thought virtual directories are to map internal server paths into sub-folders of wwwroot. In my case, I copied the files to a sub-folder of wwwroot. I attempt to execute the webservice as follows: http://www.example.com/dotNet/MyService/Service1.asmx which is similar to how I run it on my local machine: http://localhost/Service1.asmx Thanks, Victor phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

            M 1 Reply Last reply
            0
            • V Victor Boctor

              Mazdak wrote: For my web service I copy files in the root of my web site(bin directory_config and asmx files) cause those stupids didn't let me to create virtual directory there. What is the difference between having it in the root of the website vs. in a sub-directory? I thought virtual directories are to map internal server paths into sub-folders of wwwroot. In my case, I copied the files to a sub-folder of wwwroot. I attempt to execute the webservice as follows: http://www.example.com/dotNet/MyService/Service1.asmx which is similar to how I run it on my local machine: http://localhost/Service1.asmx Thanks, Victor phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

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

              When you create a web service with VS.NET it automaticlly do the setting for you and set that directory as virtual directory so it works without problem, but when you upload your files you have to do setting manually. Mazy No sig. available now.

              V 1 Reply Last reply
              0
              • M Mazdak

                When you create a web service with VS.NET it automaticlly do the setting for you and set that directory as virtual directory so it works without problem, but when you upload your files you have to do setting manually. Mazy No sig. available now.

                V Offline
                V Offline
                Victor Boctor
                wrote on last edited by
                #7

                Makes sense... But what is the benefit of having it as a virtual directory? As I said before, I thought virtual directories are useful to map paths that are not under wwwroot to virtual directories under wwwroot. Thanks for your help.. Regards, Victor. phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

                1 Reply Last reply
                0
                • V Victor Boctor

                  When I use the browser and type: http://www.example.com/dotNet/MyService/Service1.asmx I get the following (even when I set the customErrors mode to Off, I still get the same error: Server Error in '/' Application. -------------------------------------------------------------------------------- Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off". Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom error page URL. phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

                  U Offline
                  U Offline
                  Uwe Keim
                  wrote on last edited by
                  #8

                  It seems to me too, that your web.config is ignored because the folder where it is inside is no virtual directory. I don't know how your ISP handles this... -- - Free Windows-based CMS: www.zeta-software.de/enu/producer/freeware/download.html - See me: www.magerquark.de - MSN Messenger: uwe_keim@hotmail.com

                  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