Click here to Skip to main content
15,901,736 members
Home / Discussions / C#
   

C#

 
GeneralInternet downloading problem... Pin
profoundwhispers14-Jan-04 4:26
profoundwhispers14-Jan-04 4:26 
GeneralRe: Internet downloading problem... Pin
Heath Stewart14-Jan-04 4:56
protectorHeath Stewart14-Jan-04 4:56 
GeneralRe: Internet downloading problem... Pin
Kentamanos14-Jan-04 6:35
Kentamanos14-Jan-04 6:35 
GeneralRe: Internet downloading problem... Pin
Heath Stewart14-Jan-04 7:45
protectorHeath Stewart14-Jan-04 7:45 
GeneralRe: Internet downloading problem... Pin
Kentamanos14-Jan-04 9:05
Kentamanos14-Jan-04 9:05 
Generalremoting "newbie" questions Pin
Palladino14-Jan-04 2:24
Palladino14-Jan-04 2:24 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 3:07
LongRange.Shooter14-Jan-04 3:07 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 3:23
LongRange.Shooter14-Jan-04 3: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 8:13
Palladino14-Jan-04 8:13 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter14-Jan-04 10:46
LongRange.Shooter14-Jan-04 10:46 
GeneralRe: remoting "newbie" questions Pin
Palladino15-Jan-04 1:36
Palladino15-Jan-04 1:36 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter15-Jan-04 2:55
LongRange.Shooter15-Jan-04 2:55 
GeneralRe: remoting "newbie" questions Pin
LongRange.Shooter15-Jan-04 3:24
LongRange.Shooter15-Jan-04 3:24 
GeneralRe: remoting "newbie" questions Pin
Palladino15-Jan-04 5:43
Palladino15-Jan-04 5:43 
GeneralDebugging Pin
jyoti doiphode13-Jan-04 23:58
jyoti doiphode13-Jan-04 23:58 
GeneralRe: Debugging Pin
Heath Stewart14-Jan-04 4:41
protectorHeath Stewart14-Jan-04 4:41 
GeneralFinding names of local user accounts Pin
EnkelIk13-Jan-04 23:46
EnkelIk13-Jan-04 23:46 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 2:51
Mazdak14-Jan-04 2:51 
GeneralRe: Finding names of local user accounts Pin
EnkelIk14-Jan-04 4:54
EnkelIk14-Jan-04 4:54 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 8:20
Mazdak14-Jan-04 8:20 
GeneralReversible Frames on Windows Forms Pin
occcy13-Jan-04 22:22
occcy13-Jan-04 22:22 
GeneralRe: Reversible Frames on Windows Forms Pin
Heath Stewart14-Jan-04 4:14
protectorHeath Stewart14-Jan-04 4:14 
QuestionHow use Ms treeView In asp.net Pin
Old Gun13-Jan-04 22:03
Old Gun13-Jan-04 22:03 
AnswerRe: How use Ms treeView In asp.net Pin
Heath Stewart14-Jan-04 4:04
protectorHeath Stewart14-Jan-04 4:04 
GeneralRe: How use Ms treeView In asp.net Pin
Not Active14-Jan-04 7:02
mentorNot Active14-Jan-04 7: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.