Click here to Skip to main content
15,920,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Dot Net Remoting Pin
Dave Kreskowiak16-Oct-07 6:14
mveDave Kreskowiak16-Oct-07 6:14 
GeneralRe: Dot Net Remoting Pin
PJ_1234516-Oct-07 20:44
PJ_1234516-Oct-07 20:44 
GeneralRe: Dot Net Remoting Pin
Dave Kreskowiak17-Oct-07 2:07
mveDave Kreskowiak17-Oct-07 2:07 
GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 2:32
PJ_1234517-Oct-07 2:32 
GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 3:17
PJ_1234517-Oct-07 3:17 
GeneralRe: Dot Net Remoting Pin
Dave Kreskowiak17-Oct-07 4:25
mveDave Kreskowiak17-Oct-07 4:25 
GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 5:00
PJ_1234517-Oct-07 5:00 
GeneralRe: Dot Net Remoting Pin
Dave Kreskowiak17-Oct-07 6:50
mveDave Kreskowiak17-Oct-07 6:50 
I always use a config file for remoting. It saves having to make changes, compile, and reploy if something has to change.

In your ChannelProps dictionary, you're specifying the port and secure properties as strings. Remove the quotes and let them be the types they actually are.
Dim props As New HashTable()
props("port") = 50000
props("secure") = False

You can get rid of the username and password properties. They're not valid properties for a server-side TcpChannel.

You can also get rid of the MsgBox in your OnStart code when you call RegisterChannel. You'll never see it if it does pop up. Replace this with either writing to your own log file or one of the Event Logs.




A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 21:12
PJ_1234517-Oct-07 21:12 
GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 3:34
PJ_1234517-Oct-07 3:34 
GeneralRe: Dot Net Remoting Pin
PJ_1234517-Oct-07 3:50
PJ_1234517-Oct-07 3:50 
Question2 dimensional array ? Pin
Mr Oizo16-Oct-07 5:41
Mr Oizo16-Oct-07 5:41 
AnswerRe: 2 dimensional array ? Pin
Dave Kreskowiak16-Oct-07 5:48
mveDave Kreskowiak16-Oct-07 5:48 
GeneralRe: 2 dimensional array ? Pin
Mr Oizo16-Oct-07 5:57
Mr Oizo16-Oct-07 5:57 
QuestionVB.net 1.1 logical drives Pin
Gspro200016-Oct-07 5:26
Gspro200016-Oct-07 5:26 
AnswerRe: VB.net 1.1 logical drives Pin
Dave Kreskowiak16-Oct-07 5:43
mveDave Kreskowiak16-Oct-07 5:43 
GeneralRe: VB.net 1.1 logical drives Pin
Gspro200017-Oct-07 13:59
Gspro200017-Oct-07 13:59 
GeneralRe: VB.net 1.1 logical drives Pin
Dave Kreskowiak17-Oct-07 14:04
mveDave Kreskowiak17-Oct-07 14:04 
QuestionhOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
mpisha16-Oct-07 2:56
mpisha16-Oct-07 2:56 
AnswerRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? [modified] Pin
Jonathan [Darka]16-Oct-07 3:20
professionalJonathan [Darka]16-Oct-07 3:20 
GeneralRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
mpisha18-Oct-07 8:24
mpisha18-Oct-07 8:24 
AnswerRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
Vimalsoft(Pty) Ltd16-Oct-07 3:34
professionalVimalsoft(Pty) Ltd16-Oct-07 3:34 
GeneralRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
mpisha18-Oct-07 8:33
mpisha18-Oct-07 8:33 
GeneralRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
Vimalsoft(Pty) Ltd18-Oct-07 20:04
professionalVimalsoft(Pty) Ltd18-Oct-07 20:04 
AnswerRe: hOTEL MANAGEMENT SYSTEM USING VB.NET? Pin
Hesbon Ongira16-Oct-07 3:37
Hesbon Ongira16-Oct-07 3:37 

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.