Results 1 to 8 of 8

Thread: WCF service library not working over the web.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    74

    WCF service library not working over the web.

    I have an Client and server application. Client would be the windows mobile 6.1 and the server is sql server 2008.

    The client the server has to be synchronize. so i used the microsoft sync framework.
    I added the web refence locally meaning the service is running within a local network and it just work fine.

    I port forwarded the pc the is hosting the webservice so it become visible over the internet. that being said i tried to add this web reference that is exposed over the internet but unfortunately i getting this error.

    Name:  servicew.png
Views: 189
Size:  73.0 KB

    anyone knows whats going on? because it display the webpage but can provide the service that need to be added to the project

    Thanks

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    74

    Re: WCF service library not working over the web.

    hello anyone please help me.

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: WCF service library not working over the web.

    You can't simply upload a Windows service application to a website and expect it to work. Any application which works on the server will have to be programmed in whatever language(s) the server supports with specific reference to the server environment. A service application is designed to work only in the Windows local environment.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    74

    Re: WCF service library not working over the web.

    Quote Originally Posted by dunfiddlin View Post
    You can't simply upload a Windows service application to a website and expect it to work. Any application which works on the server will have to be programmed in whatever language(s) the server supports with specific reference to the server environment. A service application is designed to work only in the Windows local environment.

    hello dunfiddlin,

    thanks for the response.

    173.183.199.129 is my public ip address i just forwarded the port 80 of the pc that is hosting the service. it works fine when i access it locally using (http://192.168.0.113), but when i access the service over the internet using the public ip, i'm getting the error above.

    do you have any sample code that helps how to access the service over the web?

    Thank you.

  5. #5
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: WCF service library not working over the web.

    What are you actually 'accessing'? If the service has some kind of readable output in HTML, XML or other web format then you would configure a Webclient or WebRequest to receive this. According to the error you are treating the service as though it were a document in itself which, of course, is not the case. If you want the service to 'run' on another machine then you have to install it there.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2012
    Posts
    74

    Re: WCF service library not working over the web.

    Quote Originally Posted by dunfiddlin View Post
    What are you actually 'accessing'? If the service has some kind of readable output in HTML, XML or other web format then you would configure a Webclient or WebRequest to receive this. According to the error you are treating the service as though it were a document in itself which, of course, is not the case. If you want the service to 'run' on another machine then you have to install it there.
    Actually I'm a newbie of this approach, its a about microsoft sync framework that synchronize sql server database and the smart device database. i followed the instructions on the link below

    http://community.appamundi.com/blogs...e-devices.aspx

    this link works just fine with when the service is locally hosted. i need the service to be accessible outside as the client mobile application will be located remotely.

    when i accessed the service locally i have this screen and i can be able to add the service to my smart device client project. see below



    Name:  webreference.png
Views: 136
Size:  72.8 KB


    thank you.

  7. #7
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: WCF service library not working over the web.

    Sorry. I'm a dozy wazzock today. I've only just taken in that you're talking about a WCF service! (Must learn to read the whole question!!!!)

    I'd suggest that you ask a moderator to move the question to the WCF forum where it might attract some attention from people rather more clued in than I (which given the state of my brain today shouldn't be difficult!)
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  8. #8
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: WCF service library not working over the web.

    What is the full errormessage in the textbox on the right part of the screen?
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width