calling a dll from the orchestrationq
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > calling a dll from the orchestrationq




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    calling a dll from the orchestrationq  
john


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-05 07:50 AM

When I try calling this method from an orchestration I get a
missingmethodexception error

this is how i call it:

mathVar.WriteToFile("hello");

Thanks in advance



public int WriteToFile(string sText)

{

try

{

//Pass the filepath and filename to the StreamWriter Constructor

StreamWriter sw = new StreamWriter("C:\\Test.txt");

//Write a line of text

sw.WriteLine(sText);

//Write a second line of text

sw.WriteLine("From the StreamWriter class");

//Close the file

sw.Close();

return 0;

}

catch(Exception e)

{

return 1;



}

finally

{

//Console.WriteLine("Executing finally block.");

}

}







[ Post a follow-up to this message ]



    Re: calling a dll from the orchestrationq  
Jon Flanders[DevelopMentor]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-05 10:52 PM

I would venture to guess that an older version of your assembly is in the
GAC.  Make sure you do gacutil -i on the assembly and restart the BizTalk
host process.

--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"john" <john88m@hotmail.com> wrote in message
news:e%23NNfN9GFHA.3912@TK2MSFTNGP10.phx.gbl...
> When I try calling this method from an orchestration I get a
> missingmethodexception error
>
> this is how i call it:
>
> mathVar.WriteToFile("hello");
>
> Thanks in advance
>
>
>
> public int WriteToFile(string sText)
>
> {
>
> try
>
> {
>
> //Pass the filepath and filename to the StreamWriter Constructor
>
> StreamWriter sw = new StreamWriter("C:\\Test.txt");
>
> //Write a line of text
>
> sw.WriteLine(sText);
>
> //Write a second line of text
>
> sw.WriteLine("From the StreamWriter class");
>
> //Close the file
>
> sw.Close();
>
> return 0;
>
> }
>
> catch(Exception e)
>
> {
>
> return 1;
>
>
>
> }
>
> finally
>
> {
>
> //Console.WriteLine("Executing finally block.");
>
> }
>
> }
>
>







[ Post a follow-up to this message ]



    RE: calling a dll from the orchestrationq  
Neal Walters


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-28-05 10:53 PM

Might also check static method vs instance method.
Looks like you have an orchestration called mathVar that we must assume is
tied ot the right class?

Neal Walters
http://Biztalk-Training.com


"john" wrote:

> When I try calling this method from an orchestration I get a
> missingmethodexception error
>
> this is how i call it:
>
> mathVar.WriteToFile("hello");
>
> Thanks in advance
>
>
>
> public int WriteToFile(string sText)
>
> {
>
> try
>
> {
>
> //Pass the filepath and filename to the StreamWriter Constructor
>
> StreamWriter sw = new StreamWriter("C:\\Test.txt");
>
> //Write a line of text
>
> sw.WriteLine(sText);
>
> //Write a second line of text
>
> sw.WriteLine("From the StreamWriter class");
>
> //Close the file
>
> sw.Close();
>
> return 0;
>
> }
>
> catch(Exception e)
>
> {
>
> return 1;
>
>
>
> }
>
> finally
>
> {
>
> //Console.WriteLine("Executing finally block.");
>
> }
>
> }
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:56 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register