Solved

Changing Web Service from Localhost to Server

Posted on 2013-12-18
8
252 Views
Last Modified: 2013-12-25
Hi Experts,

My window app use web service to talk to a web app, it work fine on my localhost machine, but after I put the web app remotely to a web server, the window app can’t connect to it any more.
uploaded is the catch message got from the window app.

What goes wrong ? please help !

Thanks in advance
error-message1.JPG
0
Comment
Question by:LoGa1234567890
  • 4
  • 3
8 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39729189
What does the web method do?
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 200 total points
ID: 39730038
Is it possible that your localhost machine is 64-bit, that you have set the project's options to compile for 64-bit, and that the server is 32-bit? This could trigger an overflow in some situations.

Try compiling the application as x86, it might correct the problem.
0
 

Author Comment

by:LoGa1234567890
ID: 39730478
Hi,
Initially it was set for any CPU, then i change it to x86, but make no different, that error message still come up.
Could it be the server is 64 bit and causing the problem ?
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 300 total points
ID: 39730874
Please show what the web method looks like, so we might see some possible candidates for that error.
0
 

Accepted Solution

by:
LoGa1234567890 earned 0 total points
ID: 39731171
TheLearnedOne give me a hint to review my web method, because the method is for checking login from user, username and password all encrypted with a lot of special characters and send back to web service via url string, may be some of them were not allowed. I change it back for testing just simple handshake, and it work, can you tell me what character is not allow for my encryption ?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 39731821
What type of encryption are you using?  Are you converting to Base-64 string after encryption?
0
 

Author Comment

by:LoGa1234567890
ID: 39733312
There are special characters after encryption because I generate my own encryption dictionary, which include special characters as well.
I should avoid special character and go back to base64 or 62.

Thank you for helping me to solve my problem.
0
 

Author Closing Comment

by:LoGa1234567890
ID: 39738979
There are special characters after encryption because I generate my own encryption dictionary, which include special characters as well.
I should avoid special character and go back to base64 or 62.

Thank you for helping me to solve my problem.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question