Scripting Functoid – Add References

Home Page Forums BizTalk 2004 – BizTalk 2010 Scripting Functoid – Add References

Viewing 2 reply threads
  • Author
    Posts
    • #17626

      Is there a way to add a library reference to an inline script functoid?  I'm trying to access an ODBC database through the scripting functoid and need to add the System.Data.Odbc library to make the appropriate calls.  I'm using inline C#.  The inline script does not allow the "using" statement.

      First of all, I noticed that I could not add the System.Data.Odbc reference to the BizTalk project.  I added System.Data and any other reference that might just include the ODBC commands.  These references don't appear to apply to the inline code.  When I build the app I receive message like this for every ODBC command I reference.

      error btm1021: Inline Script Error: The type or namespace name 'OdbcConnection' could not be found (are you missing a using directive or an assembly reference?)

      Any thoughts?  I would like to avoid using an External Assembly if possible.

      Thanks!

    • #17627

      It looks like I'm out of luck.  I'll need to use an External Assembly.  Thanks.

    • #17768

      Since a map is in fact just a XSLT, you can only use a couple of related namespaces.
      If you want to do a database lookup from a functoid, you could use the Database functoids.

       

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.