Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
GeneralRe: Editing Images on the fly... Pin
Heath Stewart9-Mar-04 8:34
protectorHeath Stewart9-Mar-04 8:34 
QuestionHow to convert html file to pdf Pin
Inam9-Mar-04 7:07
Inam9-Mar-04 7:07 
AnswerRe: How to convert html file to pdf Pin
Heath Stewart9-Mar-04 8:40
protectorHeath Stewart9-Mar-04 8:40 
GeneralMultiple Classes and Functions/Methods Pin
thewebmonster9-Mar-04 6:47
thewebmonster9-Mar-04 6:47 
GeneralRe: Multiple Classes and Functions/Methods Pin
LongRange.Shooter9-Mar-04 6:57
LongRange.Shooter9-Mar-04 6:57 
GeneralRe: Multiple Classes and Functions/Methods Pin
Heath Stewart9-Mar-04 7:02
protectorHeath Stewart9-Mar-04 7:02 
Generalserializing a delegate to a non-public method Pin
Judah Gabriel Himango9-Mar-04 6:11
sponsorJudah Gabriel Himango9-Mar-04 6:11 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 6:35
LongRange.Shooter9-Mar-04 6:35 
If you are doing XMLSerializer then only public properties that contain public setters and getters will serialize/deserialize. However if you deployed using the binary serializer, then you should get the behavior you want.

If this object is being passed between application domains via remoting, and you happen to use the SOAP formatters, that is your problem. You can change your remoting channel definition and that should behave more in the fashion you want them to behave. So you would define the channel as follows:

C#
/// <summary>
/// Establishes remote path/config for communicating w/objects
/// </summary>
/// <returns></returns>
public static void InitializeRemoting(bool DebugState)
{
    try
    {
        if (DebugState == false)
        {
            channel = new HttpChannel(null,new BinaryClientFormatterSinkProvider(),new BinaryServerFormatterSinkProvider());
            System.Diagnostics.Debug.WriteLine("System has not been requested to run in debug mode.", "Remote Communication Manager");

        }
        else
        {
            channel = new HttpChannel(null,null,null);     // used to debug errors enabling SOAP
            runningInDebugMode = true;
            System.Diagnostics.Debug.WriteLine("System has been requested to run in debug mode.", "Remote Communication Manager");
        }
        channel.Properties["proxyName"] = null;
        channel.Properties["useDefaultCredentials"] = "true";
        ChannelServices.RegisterChannel(channel);
    }
    catch (System.Exception exc)
    {
        throw new System.Exception("Problem initializing the remote object channel", exc);
    }
}


The debug work is to switch over to the SOAP converter in the event I make remote changes that return the famous 'version incompatability' error. The SOAP channel lets the true exception pass through so that I can see where I screwed up. Laugh | :laugh:

I hope this helps, and if not then just let me know where you need additional direction.

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

GeneralRe: serializing a delegate to a non-public method Pin
Judah Gabriel Himango9-Mar-04 9:17
sponsorJudah Gabriel Himango9-Mar-04 9:17 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 9:50
LongRange.Shooter9-Mar-04 9:50 
GeneralRe: serializing a delegate to a non-public method Pin
LongRange.Shooter9-Mar-04 6:40
LongRange.Shooter9-Mar-04 6:40 
GeneralBrush that does not mix with the background color Pin
Manobal9-Mar-04 6:08
Manobal9-Mar-04 6:08 
GeneralRe: Brush that does not mix with the background color Pin
Heath Stewart9-Mar-04 6:25
protectorHeath Stewart9-Mar-04 6:25 
GeneralRe: Brush that does not mix with the background color Pin
Manobal9-Mar-04 6:33
Manobal9-Mar-04 6:33 
QuestionChanging permission on a folder from C#? Pin
Xiangyang Liu 刘向阳9-Mar-04 2:45
Xiangyang Liu 刘向阳9-Mar-04 2:45 
AnswerRe: Changing permission on a folder from C#? Pin
Matthew Hazlett9-Mar-04 5:12
Matthew Hazlett9-Mar-04 5:12 
GeneralRe: Changing permission on a folder from C#? Pin
Xiangyang Liu 刘向阳9-Mar-04 5:27
Xiangyang Liu 刘向阳9-Mar-04 5:27 
GeneralRe: Changing permission on a folder from C#? Pin
Heath Stewart9-Mar-04 5:34
protectorHeath Stewart9-Mar-04 5:34 
AnswerRe: Changing permission on a folder from C#? Pin
Heath Stewart9-Mar-04 6:30
protectorHeath Stewart9-Mar-04 6:30 
GeneralRe: Changing permission on a folder from C#? Pin
Nick Parker9-Mar-04 6:34
protectorNick Parker9-Mar-04 6:34 
GeneralRe: Changing permission on a folder from C#? Pin
Heath Stewart9-Mar-04 6:47
protectorHeath Stewart9-Mar-04 6:47 
GeneralRe: Changing permission on a folder from C#? Pin
Nick Parker9-Mar-04 7:07
protectorNick Parker9-Mar-04 7:07 
GeneralRe: Changing permission on a folder from C#? Pin
Xiangyang Liu 刘向阳9-Mar-04 7:24
Xiangyang Liu 刘向阳9-Mar-04 7:24 
GeneralRe: Changing permission on a folder from C#? Pin
Heath Stewart9-Mar-04 9:02
protectorHeath Stewart9-Mar-04 9:02 
GeneralRe: Changing permission on a folder from C#? Pin
Xiangyang Liu 刘向阳9-Mar-04 7:21
Xiangyang Liu 刘向阳9-Mar-04 7:21 

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.