Email & BizTalk
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 > Email & BizTalk




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

    Email & BizTalk  
Neil Hewitt


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


 
09-02-04 11: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@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 ]



    RE: Email & BizTalk  
Narasimhan Padmanabhan


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


 
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 ]



    Sponsored Links  




 





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