Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: 2 Web Browser Problem Pin
erwinliong7-Oct-05 7:24
erwinliong7-Oct-05 7:24 
GeneralRe: 2 Web Browser Problem Pin
XRaheemX7-Oct-05 7:27
XRaheemX7-Oct-05 7:27 
QuestionDetermine if a thread has been instantiated Pin
raysot7776-Oct-05 16:28
raysot7776-Oct-05 16:28 
AnswerRe: Determine if a thread has been instantiated Pin
Mohamad Al Husseiny6-Oct-05 18:18
Mohamad Al Husseiny6-Oct-05 18:18 
GeneralRe: Determine if a thread has been instantiated Pin
raysot7776-Oct-05 18:32
raysot7776-Oct-05 18:32 
AnswerRe: Determine if a thread has been instantiated Pin
S. Senthil Kumar6-Oct-05 18:27
S. Senthil Kumar6-Oct-05 18:27 
QuestionGetHashCode and composite key Pin
devvvy6-Oct-05 16:02
devvvy6-Oct-05 16:02 
QuestionWebException when calling a web service Pin
Luis Alonso Ramos6-Oct-05 15:20
Luis Alonso Ramos6-Oct-05 15:20 
(I'm not sure if this belongs better in the ASP.NET forum, but since it's a Windows forms app calling it, and the problem is in the caller, I thought it goes here.)

Hello,

I have a Windows Forms application that uses web services on a remote server (hosted somewhere else, no access to it). It works perfectly when run with a local server or in that remote/production server.

But when the main window appears, a secondary thread is started to call another method in a web service in the same server to get the newest version, and if newer than the current version, a form is displayed to the user telling him to go to the website to download.

This works perfectly on both my development machines with a local server. And this works perfectly with the client running on both my development machines against the remote server.

But that's it. When I run the app in any other machine, the call to the web service to get the latest version throws a System.Net.WebException with a message The underlying connection was closed: Unable to connect to the remote server. I found this with a development copy full of Console.WriteLines on another machine on my same network. The only difference I can think of between that machine and mine is that mine have IIS installed while that one does not. But still, it puzzles me that everything from the main thread works fine, and not from the secondary thread.

So, any ideas?

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005
QuestionIs there collection object in C# .NET? Pin
Lilli Alexis6-Oct-05 14:21
Lilli Alexis6-Oct-05 14:21 
AnswerRe: Is there collection object in C# .NET? Pin
Mohamad Al Husseiny6-Oct-05 14:48
Mohamad Al Husseiny6-Oct-05 14:48 
QuestionHow can I ? Pin
snouto6-Oct-05 14:15
snouto6-Oct-05 14:15 
AnswerRe: How can I ? Pin
Mohamad Al Husseiny6-Oct-05 14:57
Mohamad Al Husseiny6-Oct-05 14:57 
AnswerRe: How can I ? Pin
Daniel Grunwald7-Oct-05 6:35
Daniel Grunwald7-Oct-05 6:35 
QuestionHowTo: Marshal an array of strings? Pin
CTI Guru6-Oct-05 11:33
CTI Guru6-Oct-05 11:33 
QuestionWindows 98? Pin
Anonymous6-Oct-05 11:27
Anonymous6-Oct-05 11:27 
AnswerRe: Windows 98? Pin
ehuysamer6-Oct-05 21:08
ehuysamer6-Oct-05 21:08 
GeneralRe: Windows 98? Pin
Anonymous7-Oct-05 1:38
Anonymous7-Oct-05 1:38 
QuestionForeign Key Problem Pin
Ming Luo6-Oct-05 10:20
Ming Luo6-Oct-05 10:20 
AnswerRe: Foreign Key Problem Pin
enjoycrack6-Oct-05 10:27
enjoycrack6-Oct-05 10:27 
GeneralRe: Foreign Key Problem Pin
Ming Luo6-Oct-05 10:36
Ming Luo6-Oct-05 10:36 
GeneralRe: Foreign Key Problem Pin
enjoycrack6-Oct-05 10:50
enjoycrack6-Oct-05 10:50 
AnswerRe: Foreign Key Problem Pin
Robert Rohde6-Oct-05 10:49
Robert Rohde6-Oct-05 10:49 
QuestionHow can I auto-adjust the column width using Excel Automation Pin
miah alom6-Oct-05 9:47
miah alom6-Oct-05 9:47 
QuestionUsing C++ libraries with C# Pin
ddiller6-Oct-05 8:35
ddiller6-Oct-05 8:35 
AnswerRe: Using C++ libraries with C# Pin
Tom Larsen6-Oct-05 8:57
Tom Larsen6-Oct-05 8:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.