|
-
Nov 13th, 2012, 02:53 PM
#1
Thread Starter
Lively Member
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.

anyone knows whats going on? because it display the webpage but can provide the service that need to be added to the project
Thanks
-
Nov 14th, 2012, 10:33 AM
#2
Thread Starter
Lively Member
Re: WCF service library not working over the web.
hello anyone please help me.
-
Nov 14th, 2012, 10:54 AM
#3
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!
-
Nov 14th, 2012, 11:39 AM
#4
Thread Starter
Lively Member
Re: WCF service library not working over the web.
 Originally Posted by dunfiddlin
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.
-
Nov 14th, 2012, 11:57 AM
#5
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!
-
Nov 14th, 2012, 12:46 PM
#6
Thread Starter
Lively Member
Re: WCF service library not working over the web.
 Originally Posted by dunfiddlin
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

thank you.
-
Nov 14th, 2012, 01:07 PM
#7
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!
-
Nov 14th, 2012, 03:08 PM
#8
Re: WCF service library not working over the web.
What is the full errormessage in the textbox on the right part of the screen?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|