Click here to Skip to main content
15,890,438 members

Comments by Amund Gjersøe (Top 59 by date)

Amund Gjersøe 28-Sep-12 7:37am View    
When establishing connection, the Timeout is not used. The Timeout is just used when sending and receiving. Start a timer, and abort you connection attempt when your timer has elapsed.
Amund Gjersøe 10-Sep-12 6:44am View    
This is a question; not a solution. When building strings the data values are converted to text using all objects ToString-method. So the solution for you is: MessageBox.Show("The sum of " + intX + "+" + intY + "=" + (intX + intY).ToString());
Amund Gjersøe 6-Sep-12 13:26pm View    
Why can't filesavedialogbox be used, but your imaginary filecreatedialogbox? You'll get the full file path from the regular filesavedialogbox, and you set the FileMode in the FileStream to CreateNew if that is the issue.
Amund Gjersøe 28-Aug-12 16:47pm View    
This is my assumption: Since you have put both the service and the client on an other machine, it should have worked if Visual Studio was installed on that as well (hosting the 8732 port). If VS isn't installed, you could simply just use a named pipe binding "net.pipe//localhost/MyPipe" instead.
Amund Gjersøe 28-Aug-12 15:08pm View    
Deleted
WCF don't allow properties on interfaces. The 'get' will work as a method, but the 'set' won't. You could do a regular basic authentication. It is some work, but it is a better way to handle user name and passwords.