BizTalk Server Orchestration - Email & BizTalk

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > September 2004 > Email & BizTalk





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Email & BizTalk
Neil Hewitt

2004-09-02, 6:15 pm

I am setting up a port to send an email that has been created using the
Visual C# class that creates an XML document that is subsequently sent to a
Dynamic Port that was defined in an expression by :

DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="mailto:nhewitt@resortsolutions.com";

In my orchestration I have a ConstructMessage shape where the email is
constructed and then sent to the email port. Within the MessageAssignment
the code is

EmailMessage = EmailHelper.EmailHelper.ConstructEmailMessage ("Test error
message " ) ;

where EmailHelper is c class defined as:
-----------------------------------------------------------------------------------------
using System;
using System.Xml;

namespace EmailHelper
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class EmailHelper
{
public EmailHelper()
{
//f
// TODO: Add constructor logic here
//
}
public static XmlDocument ConstructEmailMessage ( string EmailContent )
{
string strMessage;
XmlDocument EmailInstance = new XmlDocument ();
strMessage = "<ns0:Email
xmlns:ns0=\"http://LINUXToAS400Process.XMLEmailSchema\"><Content>" +
EmailContent + "</Content></ns0:Email>";
EmailInstance.LoadXml(strMessage) ;
return EmailInstance;

}
}
}
-----------------------------------------------------------------------------------------
i define the emailhelper project as a reference within my project where the
orchestration is created.

I get the following error on testing it.

-----------------------------------------------------------------------------------------
Uncaught exception terminated service
LINUXToAS400Process.Orchestration_1(c97ffd1a-f27a-acb9-18c6-9e6782b1c92f),
instance 7d00220b-6922-4214-b8fa-d012c350f7f7

File or assembly name EmailHelper, or one of its dependencies, was not found.
Exception type: FileNotFoundException
Source: LINUXToAS400Process
Target Site: Microsoft.XLANGs.Core.StopConditions
segment3(Microsoft.XLANGs.Core.StopConditions)

Help Link:

Additional error information:
-----------------------------------------------------------------------------------------
Have you any ideas ?

Narasimhan Padmanabhan

2004-09-02, 6:15 pm

Run GACUTIL.EXE on the EMailHelper class.

Biztalk requires that all assemblies be GACed.

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

EBusiness Server Team
--------------------
|>>Thread-Topic: Email & BizTalk
|>>thread-index: AcSPe4+/UpeP32OARFKgKnKi9ywzSg==
|>>X-WBNR-Posting-Host: 12.42.131.10
|>>From: "=?Utf-8?B?TmVpbCBIZXdpdHQ=?="
<NeilHewitt@discussions.microsoft.com>
|>>Subject: Email & BizTalk
|>>Date: Tue, 31 Aug 2004 09:57:12 -0700
|>>Lines: 67
|>>Message-ID: <971ED3EB-3DCD-4E22-ADB8-9D68179E446D@microsoft.com>
|>>MIME-Version: 1.0
|>>Content-Type: text/plain;
|>> charset="Utf-8"
|>>Content-Transfer-Encoding: 7bit
|>>X-Newsreader: Microsoft CDO for Windows 2000
|>>Content-Class: urn:content-classes:message
|>>Importance: normal
|>>Priority: normal
|>>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
|>>Newsgroups: microsoft.public.biztalk.orchestration
|>>NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
|>>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
|>>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:7950
|>>X-Tomcat-NG: microsoft.public.biztalk.orchestration
|>>
|>>I am setting up a port to send an email that has been created using the
|>>Visual C# class that creates an XML document that is subsequently sent
to a
|>>Dynamic Port that was defined in an expression by :
|>>
DynamicSendPort(Microsoft.XLANGs.BaseTypes.Address)="mailto:nhewitt@resortso
lutions.com";
|>>
|>>In my orchestration I have a ConstructMessage shape where the email is
|>>constructed and then sent to the email port. Within the
MessageAssignment
|>>the code is
|>>
|>>EmailMessage = EmailHelper.EmailHelper.ConstructEmailMessage ("Test
error
|>>message " ) ;
|>>
|>>where EmailHelper is c class defined as:
----------------------------------------------------------------------------
-------------
|>>using System;
|>>using System.Xml;
|>>
|>>namespace EmailHelper
|>>{
|>> /// <summary>
|>> /// Summary description for Class1.
|>> /// </summary>
|>> public class EmailHelper
|>> {
|>> public EmailHelper()
|>> {
|>> //f
|>> // TODO: Add constructor logic here
|>> //
|>> }
|>> public static XmlDocument ConstructEmailMessage ( string EmailContent )
|>> {
|>> string strMessage;
|>> XmlDocument EmailInstance = new XmlDocument ();
|>> strMessage = "<ns0:Email
|>>xmlns:ns0=\"http://LINUXToAS400Process.XMLEmailSchema\"><Content>" +
|>>EmailContent + "</Content></ns0:Email>";
|>> EmailInstance.LoadXml(strMessage) ;
|>> return EmailInstance;
|>>
|>> }
|>> }
|>>}
----------------------------------------------------------------------------
-------------
|>>i define the emailhelper project as a reference within my project where
the
|>>orchestration is created.
|>>
|>>I get the following error on testing it.
|>>
----------------------------------------------------------------------------
-------------
|>>Uncaught exception terminated service
|>>LINUXToAS400Process.Orchestration_1(c97ffd1a-f27a-acb9-18c6-9e6782b1c92f)
,
|>>instance 7d00220b-6922-4214-b8fa-d012c350f7f7
|>>
|>>File or assembly name EmailHelper, or one of its dependencies, was not
found.
|>>Exception type: FileNotFoundException
|>>Source: LINUXToAS400Process
|>>Target Site: Microsoft.XLANGs.Core.StopConditions
|>>segment3(Microsoft.XLANGs.Core.StopConditions)
|>>
|>>Help Link:
|>>
|>>Additional error information:
----------------------------------------------------------------------------
-------------
|>>Have you any ideas ?
|>>
|>>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com