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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Simple Webservice problem

Simple Webservice problem

Scheduled Pinned Locked Moved C#
csharpdatabasesysadminhelpquestion
7 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.
  • S Offline
    S Offline
    Software2007
    wrote on last edited by
    #1

    I have written a small webservice (C#) that gets a list of users from SQL Data Base all on my local machine (192.168.1.101). If I do: -localhost:6035/service1.asmx (works) -127.0.0.1:6035/service1.asmx (works) -192.168.1.101:6035/service1.asmx (Doesn't work) The goal I want to be able to access this webservice from my other machine on same network (192.168.1.102). But, I have to get it to work on same machine first! I tried the following so far with no success: - I have turned off the firewall all the way. - >route -p ADD 192.168.1.101 MASK 255.255.255.255 MASK 127.0.0.1 Anyone?

    D I 2 Replies Last reply
    0
    • S Software2007

      I have written a small webservice (C#) that gets a list of users from SQL Data Base all on my local machine (192.168.1.101). If I do: -localhost:6035/service1.asmx (works) -127.0.0.1:6035/service1.asmx (works) -192.168.1.101:6035/service1.asmx (Doesn't work) The goal I want to be able to access this webservice from my other machine on same network (192.168.1.102). But, I have to get it to work on same machine first! I tried the following so far with no success: - I have turned off the firewall all the way. - >route -p ADD 192.168.1.101 MASK 255.255.255.255 MASK 127.0.0.1 Anyone?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Which version of Windows are you on?? Have you tried the code from a different machine accessing the database on your machine??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Which version of Windows are you on?? Have you tried the code from a different machine accessing the database on your machine??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        S Offline
        S Offline
        Software2007
        wrote on last edited by
        #3

        Windows 7. No. How do I do that? I tried putting in 192.168.1.104 from my other machine, I got the default IIS7 page. If I do 192.168.1.104:6035/Service1.asmx it stops working

        D 1 Reply Last reply
        0
        • S Software2007

          Windows 7. No. How do I do that? I tried putting in 192.168.1.104 from my other machine, I got the default IIS7 page. If I do 192.168.1.104:6035/Service1.asmx it stops working

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Turning off the firewall on Windows 7 doesn't really open up all the ports on the machine. It's a bit of the opposite. What do you mean "It stops working"?? What does it actually do? What are the error mesasges? Do you have an exception put into the Win7 firewall for Inbound port 6035? I think the URL should be closer to "http://192.168.1.104:6035/YourServiceProjectNameHere/Service1.asmx"

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          1 Reply Last reply
          0
          • S Software2007

            I have written a small webservice (C#) that gets a list of users from SQL Data Base all on my local machine (192.168.1.101). If I do: -localhost:6035/service1.asmx (works) -127.0.0.1:6035/service1.asmx (works) -192.168.1.101:6035/service1.asmx (Doesn't work) The goal I want to be able to access this webservice from my other machine on same network (192.168.1.102). But, I have to get it to work on same machine first! I tried the following so far with no success: - I have turned off the firewall all the way. - >route -p ADD 192.168.1.101 MASK 255.255.255.255 MASK 127.0.0.1 Anyone?

            I Offline
            I Offline
            indoposting
            wrote on last edited by
            #5

            I also have the same problem with you! Please help. Contact me at Internet Library 2.0

            Indoposting.com - Free High Quality Articles and Knowledge From Expert Authors | Free Articles for Reprint For Your Website, Blog, Ezines And Newsletters | Submit, Search and Find Your Article | Author Submission

            S 1 Reply Last reply
            0
            • I indoposting

              I also have the same problem with you! Please help. Contact me at Internet Library 2.0

              Indoposting.com - Free High Quality Articles and Knowledge From Expert Authors | Free Articles for Reprint For Your Website, Blog, Ezines And Newsletters | Submit, Search and Find Your Article | Author Submission

              S Offline
              S Offline
              Software2007
              wrote on last edited by
              #6

              The above poster is correct. Basically, when you create a webservice "Service.asmx" on one machine, you need to publish it on IIS before you can get at it from another machine even if it is on same network. This link a step by step of how to get it published. http://a1ashiish-csharp.blogspot.com/2012/01/cnet-how-to-publish-web-service-in-iis.html[^] Once published, You can do this from your other machine: http://192.168.1.101/YourWebServiceFolderUnderWWWRoot/Service.asmx

              D 1 Reply Last reply
              0
              • S Software2007

                The above poster is correct. Basically, when you create a webservice "Service.asmx" on one machine, you need to publish it on IIS before you can get at it from another machine even if it is on same network. This link a step by step of how to get it published. http://a1ashiish-csharp.blogspot.com/2012/01/cnet-how-to-publish-web-service-in-iis.html[^] Once published, You can do this from your other machine: http://192.168.1.101/YourWebServiceFolderUnderWWWRoot/Service.asmx

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                He doesn't have the same problem. From what I can tell, he's a spammer.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak

                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