Solved

Changing Web Service from Localhost to Server

Posted on 2013-12-18
8
251 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now