09-02-04 11: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: "examnotes"
<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 ?
|>>
|>>
[ Post a follow-up to this message ]
|