Click here to Skip to main content
15,559,491 members
Home / Discussions / C#
   

C#

 
GeneralInternet downloading problem... Pin
profoundwhispers14-Jan-04 5:26
profoundwhispers14-Jan-04 5:26 
GeneralRe: Internet downloading problem... Pin
Heath Stewart14-Jan-04 5:56
protectorHeath Stewart14-Jan-04 5:56 
GeneralRe: Internet downloading problem... Pin
Kentamanos14-Jan-04 7:35
Kentamanos14-Jan-04 7:35 
GeneralRe: Internet downloading problem... Pin
Heath Stewart14-Jan-04 8:45
protectorHeath Stewart14-Jan-04 8:45 
GeneralRe: Internet downloading problem... Pin
Kentamanos14-Jan-04 10:05
Kentamanos14-Jan-04 10:05 
Generalremoting "newbie" questions Pin
Palladino14-Jan-04 3:24
Palladino14-Jan-04 3:24 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 4:07
LongRange.Shooter14-Jan-04 4:07 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 4:23
LongRange.Shooter14-Jan-04 4:23 
By the way....there is one problem with using a BinaryClientFormatterSink in your application: any fault that occurs on the server side during initialization will return the error that the remoting version is wrong version, expected 1.0 and received (an ugly number)

This is due to the exception being sent out in text and the client is expecting a return of the version number. To get around this, I had to incorporate the ability to put the application into debug state. So my code is as follows during init time:

C#
try
{
    if (DebugState == false)
    {
    channel = new HttpChannel(null,new BinaryClientFormatterSinkProvider(),new BinaryServerFormatterSinkProvider());
    }
    else
    {
    channel = new HttpChannel(null,null,null);     // used to debug errors enabling SOAP
    runningInDebugMode = true;
    System.Diagnostics.Debug.WriteLine("TCA Navigator has been requested to run in debug mode.", "Remote Communication Manager");
    }
    channel.Properties["proxyName"] = null;
    channel.Properties["useDefaultCredentials"] = "true";
    ChannelServices.RegisterChannel(channel);
        }
        ...


Also : setting the channel properties is required to keep the code from trying to locate a proxy server and use that to navigate to the site. This is used assuming your application is internal (though you really would not want to do remoting in the open on the internet).

Michael

_____________________________________________
Of all the senses I could possibly lose,
It is most often the one called 'common' that gets lost.

GeneralRe: remoting "newbie" questions Pin
Palladino14-Jan-04 9:13
Palladino14-Jan-04 9:13 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 11:46
LongRange.Shooter14-Jan-04 11:46 
GeneralRe: remoting "newbie" questions Pin
Palladino15-Jan-04 2:36
Palladino15-Jan-04 2:36 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter15-Jan-04 3:55
LongRange.Shooter15-Jan-04 3:55 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter15-Jan-04 4:24
LongRange.Shooter15-Jan-04 4:24 
GeneralRe: remoting "newbie" questions Pin
Palladino15-Jan-04 6:43
Palladino15-Jan-04 6:43 
GeneralDebugging Pin
jyoti doiphode14-Jan-04 0:58
jyoti doiphode14-Jan-04 0:58 
GeneralRe: Debugging Pin
Heath Stewart14-Jan-04 5:41
protectorHeath Stewart14-Jan-04 5:41 
GeneralFinding names of local user accounts Pin
EnkelIk14-Jan-04 0:46
EnkelIk14-Jan-04 0:46 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 3:51
Mazdak14-Jan-04 3:51 
GeneralRe: Finding names of local user accounts Pin
EnkelIk14-Jan-04 5:54
EnkelIk14-Jan-04 5:54 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 9:20
Mazdak14-Jan-04 9:20 
GeneralReversible Frames on Windows Forms Pin
occcy13-Jan-04 23:22
occcy13-Jan-04 23:22 
GeneralRe: Reversible Frames on Windows Forms Pin
Heath Stewart14-Jan-04 5:14
protectorHeath Stewart14-Jan-04 5:14 
QuestionHow use Ms treeView In asp.net Pin
Old Gun13-Jan-04 23:03
Old Gun13-Jan-04 23:03 
AnswerRe: How use Ms treeView In asp.net Pin
Heath Stewart14-Jan-04 5:04
protectorHeath Stewart14-Jan-04 5:04 
GeneralRe: How use Ms treeView In asp.net Pin
Not Active14-Jan-04 8:02
mentorNot Active14-Jan-04 8:02 

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.