Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read password from text file and compare with user textbox input Pin
ak2029-Aug-09 21:21
ak2029-Aug-09 21:21 
QuestionCOM interoperability Pin
ThetaClear26-Mar-07 23:51
ThetaClear26-Mar-07 23:51 
AnswerRe: COM interoperability Pin
ThetaClear27-Mar-07 23:04
ThetaClear27-Mar-07 23:04 
QuestionMaking COM+ Application. Pin
Vlad~26-Mar-07 23:50
Vlad~26-Mar-07 23:50 
QuestionReport viewer Pin
kalyan_241626-Mar-07 23:47
kalyan_241626-Mar-07 23:47 
Questionproblem with WindowService and InternetExplorer Object Pin
Amit Agarrwal26-Mar-07 23:46
Amit Agarrwal26-Mar-07 23:46 
QuestionHow to use C# syntax in RDL report expressions Pin
AndrusM26-Mar-07 23:15
AndrusM26-Mar-07 23:15 
QuestionIn case of web service, a remote call is required for a dynamically loaded assembly Pin
2508197426-Mar-07 23:02
2508197426-Mar-07 23:02 
Hello,

The business class of my application caters to both, a web service and the windows UI application. One of the business class, loads an assembly dynamically and invokes a particular method on the type in that assembly. This works fine when the call is originated from Windows UI app. but when I call the same method of BC from webService I get an exception of "Method not found" when the method is invoked after loading the assembly dynamically.
Not understanding the reasonong, I tried various things. One of them was using remoting. I created a marshallar class (a class inheriting from MarshalByRef Class) and wrote an Invoke method in that. In the constructor of Marshallar I created the handler by creating instance of type from assembly which I wanted to load dynamically. In the invoke method I wrote type.InvokeMember. By loading this marshallar assembly into a new AppDomain, my webService call completed without any exception !!!
but now I have another problem, this particular assembly is used for processing of heavy amount of data and when the method is invoked as a remote method call, it takes too much of time and the performance is getting hampered greatly.
Can anybody tell me why a remote call succeeds and a local call fails in case of web service ?

Thanks in advance.





Questioncustom url handler in MS Word Pin
kamPooh26-Mar-07 22:55
kamPooh26-Mar-07 22:55 
Questionsize requested in a EM_GETLINE Pin
manustone26-Mar-07 22:28
manustone26-Mar-07 22:28 
AnswerRe: size requested in a EM_GETLINE Pin
Christian Graus27-Mar-07 2:26
protectorChristian Graus27-Mar-07 2:26 
QuestionExporting Data from Windows form to MSExcel Pin
seemadavid26-Mar-07 21:18
seemadavid26-Mar-07 21:18 
QuestionHow to save the data while moving from one page to another page Pin
AR Reddy26-Mar-07 20:54
AR Reddy26-Mar-07 20:54 
AnswerRe: How to save the data while moving from one page to another page Pin
Harini N K26-Mar-07 22:50
Harini N K26-Mar-07 22:50 
GeneralRe: How to save the data while moving from one page to another page Pin
AR Reddy27-Mar-07 1:39
AR Reddy27-Mar-07 1:39 
AnswerRe: How to save the data while moving from one page to another page Pin
Christian Graus27-Mar-07 2:29
protectorChristian Graus27-Mar-07 2:29 
Questionusing Reflection Pin
goldli26-Mar-07 20:49
goldli26-Mar-07 20:49 
AnswerRe: using Reflection Pin
m@u26-Mar-07 21:41
m@u26-Mar-07 21:41 
GeneralRe: using Reflection Pin
goldli26-Mar-07 21:56
goldli26-Mar-07 21:56 
QuestionCrash Reports Pin
Mridang Agarwalla26-Mar-07 20:37
Mridang Agarwalla26-Mar-07 20:37 
QuestionListView Question? Pin
Khoramdin26-Mar-07 20:33
Khoramdin26-Mar-07 20:33 
AnswerRe: ListView Question? Pin
Christian Graus27-Mar-07 2:31
protectorChristian Graus27-Mar-07 2:31 
QuestionFolderBrowserDialog Pin
HUMPPAAA!26-Mar-07 20:04
HUMPPAAA!26-Mar-07 20:04 
AnswerRe: FolderBrowserDialog Pin
stancrm26-Mar-07 20:08
stancrm26-Mar-07 20:08 
GeneralRe: FolderBrowserDialog Pin
HUMPPAAA!26-Mar-07 20:24
HUMPPAAA!26-Mar-07 20: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.