FileNotFoundException method call from orchestration BizTalk2004
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 General > FileNotFoundException method call from orchestration BizTalk2004




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

    FileNotFoundException method call from orchestration BizTalk2004  
Johan Nedin


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


 
06-26-04 03:51 PM

I'm trying to call a method in a selfmade component from an
orchestration. My component references another component, and both of
them are installed into the GAC. When I run the orchestration I get
the FileNotFoundException, it cannot find my component or one of its
dependencies.

(Orchestration.dll(?) calling DBComponent.dll calling SQLHelper.dll,
DBComponent gets the FileNotFoundException or one of it's dependencies
not found)

I have been trying many different scenarios trying to get the
references right. Could anyone please tell me how to get them right?
Are the references supposed to be project references or "hard"
references or what?

I have been beating my head against the wall for several hours now and
some help would be greatly appreciated.

/ Johan





[ Post a follow-up to this message ]



    Re: FileNotFoundException method call from orchestration BizTalk2004  
Christof


Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:51 PM

Most probably an inconsistency between the referred version and the real
version of a deployed GACced assembly.  Your best option probably is to
remove all assemblies you have created out of the GAC.  Remove all "bin"
directories.  Recompile all projects again.

Now try to deploy things again.  (Just make sure you have project references
and did not configure the assembly as "copy local".  That way, you are sure
that the assembly being referenced is referenced by its very last version
number!)

Best regards,
Christof


"Johan Nedin" <radioboring@hotmail.com> wrote in message
news:2bb8ab8f.0406220950.6c6d8cc@posting.google.com...
> I'm trying to call a method in a selfmade component from an
> orchestration. My component references another component, and both of
> them are installed into the GAC. When I run the orchestration I get
> the FileNotFoundException, it cannot find my component or one of its
> dependencies.
>
> (Orchestration.dll(?) calling DBComponent.dll calling SQLHelper.dll,
> DBComponent gets the FileNotFoundException or one of it's dependencies
> not found)
>
> I have been trying many different scenarios trying to get the
> references right. Could anyone please tell me how to get them right?
> Are the references supposed to be project references or "hard"
> references or what?
>
> I have been beating my head against the wall for several hours now and
> some help would be greatly appreciated.
>
> / Johan







[ Post a follow-up to this message ]



    Re: FileNotFoundException method call from orchestration BizTalk2004  
Johan Nedin


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


 
06-26-04 03:51 PM

Hello Christof!

Thanx for your advice.
I followed your advice and after some additional banging of my head
against the wall I managed to get my component up and running (only to
discover a different error... 

Here is how I solved the problem:
1. I removed everything from the GAC.
2. Removed all dll's from the bin directories.
3. Recompiled all my projects.
4. Used the BizTalk deployment wizard to deploy my BizTalk assembly.
5. Tested my orchestration...
6. No luck...
7. Dragged and dropped my components from the bin\deployment to the
GAC.
8. Tested my orchestration...
9. Felt lucky...
10. Partial success... 

My Orchestration is performing database insert using SQLXml (via a
database component, now happily functioning with my orchestration),
and for some reason the orchestration removes the XML-declaration.
(<?xml version="1.0 encoding="ISO-8859-1" ?> )

My next question... Is this by design? Or is there a property that
disables this "feature" when you are getting your xml-message from
file... SQLXml doesn't seem to work very well without the
xml-declaration, which means that I have to put the xml-declaration
back in my database component (the one called from the orchestration),
which ofcourse is a small matter, but irritating.

Thanx

/ Johan





[ Post a follow-up to this message ]



    Re: FileNotFoundException method call from orchestration BizTalk2004  
Christof


Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:51 PM

Two things:
- what about the SQLAdapter?  (Or are you using another database?)
- the XMLAssembler pipeline component has an option that lets you specify wh
ether to keep the processing instruction or not
- the mapper has an option called "Omit XML Declaration" - set this to "no"

I don't know how you call your component, but that's probably from within yo
ur orchestration so the XMLAssembler won't help you a lot.  Are you using th
e mapper?

Best regards,
Christof

"Johan Nedin" <radioboring@hotmail.com> wrote in message news:2bb8ab8f.0406230030.8bf6be0@po
sting.google.com...
> Hello Christof!
> 
> Thanx for your advice.
> I followed your advice and after some additional banging of my head
> against the wall I managed to get my component up and running (only to
> discover a different error... 
> 
> Here is how I solved the problem:
> 1. I removed everything from the GAC.
> 2. Removed all dll's from the bin directories.
> 3. Recompiled all my projects.
> 4. Used the BizTalk deployment wizard to deploy my BizTalk assembly.
> 5. Tested my orchestration...
> 6. No luck...
> 7. Dragged and dropped my components from the bin\deployment to the
> GAC.
> 8. Tested my orchestration...
> 9. Felt lucky...
> 10. Partial success... 
> 
> My Orchestration is performing database insert using SQLXml (via a
> database component, now happily functioning with my orchestration),
> and for some reason the orchestration removes the XML-declaration.
> (<?xml version="1.0 encoding="ISO-8859-1" ?> )
> 
> My next question... Is this by design? Or is there a property that
> disables this "feature" when you are getting your xml-message from
> file... SQLXml doesn't seem to work very well without the
> xml-declaration, which means that I have to put the xml-declaration
> back in my database component (the one called from the orchestration),
> which ofcourse is a small matter, but irritating.
> 
> Thanx
> 
> / Johan





[ Post a follow-up to this message ]



    Re: FileNotFoundException method call from orchestration BizTalk2004  
Johan Nedin


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


 
06-26-04 03:51 PM

Here is the complete scenario:

1. A file is saved to [drive]:\[somewhere]
2. This file looks something like this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<ns0:infil xmlns:ns0="http://apa.apa.apa/infil" attribute="fkjdsh">
<element attribute="dksjdh" />
</ns0:infil>

3. This file is picked up by a XMLReceive pipeline (Standard) and is
sent to a ReceivePort (no mapping applied).
4. My database component is created in an expresssion shape.
5. A return message is created as the result of calling my database
component with my message (2) as a input paramter.

At step 4 (the input to my database component) the message is without
namespace. Why? Is there a way to avoid this happening?

/ Johan





[ Post a follow-up to this message ]



    RE: FileNotFoundException method call from orchestration BizTalk2004  
Maria Belousova [MSFT]


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


 
06-26-04 03:51 PM

You need to deploy your assemblies in BizTalk, just as you would deploy
your orchestration assemblies. Use BizTalk Deployment Wizard and go through
the Wizard steps.


--------------------[vbcol=seagreen] 
17:50:20 GMT)[vbcol=seagreen] 
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!border1.nntp.dca.gi
ganews.com!nntp.giganews.com!news.glorb.com!postnews2.google.com!not-for-mai
l[vbcol=seagreen] 

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:36 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