Click here to Skip to main content
15,912,504 members
Home / Discussions / C#
   

C#

 
QuestionLaunch an exe file from a website Pin
Caroline Bornsjö10-May-07 22:30
Caroline Bornsjö10-May-07 22:30 
AnswerRe: Launch an exe file from a website Pin
Colin Angus Mackay10-May-07 22:43
Colin Angus Mackay10-May-07 22:43 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö10-May-07 23:11
Caroline Bornsjö10-May-07 23:11 
AnswerRe: Launch an exe file from a website Pin
Christian Graus10-May-07 23:28
protectorChristian Graus10-May-07 23:28 
AnswerRe: Launch an exe file from a website Pin
subrata.jana11-May-07 0:08
subrata.jana11-May-07 0:08 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö11-May-07 2:29
Caroline Bornsjö11-May-07 2:29 
GeneralRe: Launch an exe file from a website Pin
Caroline Bornsjö14-May-07 3:01
Caroline Bornsjö14-May-07 3:01 
Questionwhy am i getting this error on delegate???? [modified] Pin
neodeaths10-May-07 22:23
neodeaths10-May-07 22:23 
hi i keep getting this error:

Type System.DelegateSerializationHolder and the types derived from it (such as System.DelegateSerializationHolder) are not permitted to be deserialized at this security level.

below is my code and yes i am trying to do remoting combined wit delegate.
please help me if you can ,thx.

i read about this something http://www.codeproject.com/useritems/RemotingEvent.asp[^]

but i dont use configuration file so how can i set the <formatter ref="soap" typeFilterLevel="Full" />

using System;<br />
<br />
class DelegateDemo<br />
{<br />
    delegate String DelegateAbc(String txt);<br />
<br />
    public String TestAbc(String txt)<br />
    {<br />
        Console.WriteLine(txt);<br />
        return "Hello from TestAbc";<br />
    }<br />
    public static String TestStatic(String txt)<br />
    {<br />
        Console.WriteLine(txt);<br />
        return "Hello from TestStatic";<br />
    }<br />
    static void Main()<br />
    {<br />
        DelegateDemo t1 = new DelegateDemo();<br />
        DelegateAbc d1 = new DelegateAbc(t1.TestAbc);<br />
        Console.WriteLine(d1("First call"));<br />
        d1 = new DelegateAbc(DelegateDemo.TestStatic);<br />
        Console.WriteLine(d1("Second call"));<br />
        <br />
        cow asdd = new cow();<br />
        asdd.setter();<br />
        Console.ReadLine();<br />
    }<br />
<br />
<br />
<br />
    public class moo<br />
    {<br />
        string data;<br />
<br />
        Delegateking abc;<br />
        public moo(Delegate lol)<br />
        {<br />
            abc = (Delegateking)lol;<br />
        }<br />
        public void set()<br />
        {<br />
            abc();<br />
            //lol();<br />
        }<br />
    }<br />
    delegate void Delegateking();<br />
    public class cow<br />
    {<br />
        <br />
<br />
        moo hihi;<br />
        public cow()<br />
        {<br />
<br />
            Delegateking lala = new Delegateking(this.setter);<br />
            hihi = new moo(lala);<br />
        }<br />
        public void setter()<br />
        {<br />
            Console.WriteLine("power");<br />
        }<br />
    }<br />
}



-- modified at 5:08 Friday 11th May, 2007
QuestionAccessing Dataconfig file from C# class Pin
Hema Vidyaraj10-May-07 21:54
Hema Vidyaraj10-May-07 21:54 
AnswerRe: Accessing Dataconfig file from C# class Pin
Hema Vidyaraj10-May-07 23:56
Hema Vidyaraj10-May-07 23:56 
QuestionOutput format .ToString() Pin
Goebel10-May-07 21:41
Goebel10-May-07 21:41 
AnswerRe: Output format .ToString() Pin
Martin#10-May-07 21:47
Martin#10-May-07 21:47 
QuestionRe: Output format .ToString() Pin
Goebel10-May-07 22:08
Goebel10-May-07 22:08 
AnswerRe: Output format .ToString() Pin
Martin#10-May-07 22:10
Martin#10-May-07 22:10 
GeneralRe: Output format .ToString() Pin
Goebel10-May-07 22:28
Goebel10-May-07 22:28 
GeneralRe: Output format .ToString() Pin
Martin#10-May-07 22:29
Martin#10-May-07 22:29 
QuestionMS Agent, why Scroll lock Pin
Muammar©10-May-07 20:51
Muammar©10-May-07 20:51 
QuestionPrinting PDF Documents Pin
blackjack215010-May-07 20:33
blackjack215010-May-07 20:33 
AnswerRe: Printing PDF Documents Pin
steffw10-May-07 22:42
steffw10-May-07 22:42 
AnswerRe: Printing PDF Documents Pin
Luc Pattyn11-May-07 2:42
sitebuilderLuc Pattyn11-May-07 2:42 
QuestionCryptography/Encryption Pin
Mr Perfect10-May-07 20:31
Mr Perfect10-May-07 20:31 
AnswerRe: Cryptography/Encryption Pin
CPallini10-May-07 20:47
mveCPallini10-May-07 20:47 
AnswerRe: Cryptography/Encryption Pin
sujithkumarsl10-May-07 20:50
sujithkumarsl10-May-07 20:50 
AnswerRe: Cryptography/Encryption Pin
subrata.jana10-May-07 20:53
subrata.jana10-May-07 20:53 
GeneralRe: Cryptography/Encryption Pin
Hari Om Prakash Sharma10-May-07 23:24
Hari Om Prakash Sharma10-May-07 23:24 

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.