iT Synergy Blogs

Growing Innovation - Soluciones a problemas reales

  • Facebook
  • Instagram
  • LinkedIn
  • Phone
  • Twitter
  • YouTube

Copyright © 2025 · iT Synergy·

Error [A]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection cannot be cast to [B]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection.
Error [A]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection cannot be cast to [B]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection. avatar

March 8, 2013 By Bernardo Enrique Cardales Acuña Leave a Comment

Error    1    [A]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection cannot be cast to [B]Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection. Type A originates from ‘Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ in the context ‘Default’ at location ‘C:\Windows\assembly\GAC_MSIL\Microsoft.Practices.EnterpriseLibrary.Common\4.1.0.0__31bf3856ad364e35\Microsoft.Practices.EnterpriseLibrary.Common.dll’. Type B originates from ‘Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ in the context ‘LoadFrom’ at location ‘C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Microsoft\Web Service Software Factory 2010\4.0\Microsoft.Practices.EnterpriseLibrary.Common.dll’

Se tiene instalada la herramienta Web Service Software Factory y el bus de servicios ESB Toolkit. Cuando se quiere generar código con el WSSF ocurre este error, esto pasa por que el bus de servicios utiliza Enterprise Library versión 4.1 y el WSSF usa la versión 5.0. Solución

Ir al archivo machine.config de las siguientes rutas:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config  (32 bits)

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config (64 bits)

comentar las siguientes lineas

<!– <section name=”enterpriseLibrary.ConfigurationSource” type=”Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ConfigurationSourceSection, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>–>

<!–
<enterpriseLibrary.ConfigurationSource selectedSource=”ESB File Configuration Source”><sources><add name=”ESB File Configuration Source” type=”Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0,Culture=neutral, PublicKeyToken=31bf3856ad364e35″ filePath=”C:\Program Files (x86)\Microsoft BizTalk ESB Toolkit 2.1\esb.config”/><add name=”ESB SSO Configuration Source” type=”Microsoft.Practices.ESB.SSOConfigurationProvider.SSOConfigurationSource, Microsoft.Practices.ESB.SSOConfigurationProvider, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ applicationName=”ESB” description=”ESB SSO Configuration” contactInfo=”someone@microsoft.com” userGroupName=”BizTalk Application Users” adminGroupName=”BizTalk Server Administrators”/></sources></enterpriseLibrary.ConfigurationSource></configuration>
–>

y listo.

nota: Descomentar las lineas cuando haya terminado de utilizar el WSSF.

Filed Under: BizTalk, BizTalk 2010 configurations, BizTalk Application, ESB, SOA

Capturar Mensaje SoapFault retornado de un Servicio Web o WCF
Capturar Mensaje SoapFault retornado de un Servicio Web o WCF avatar

March 7, 2013 By Jhon Jairo Rodriguez Leave a Comment

Hay veces cuando se importa un servicio web o WCF en el puerto ya venga el Soap Fault, para los casos en que este no venga se debe seguir los siguientes pasos;

Ir a orchestration view, hacer clic en “Type”, luego en “Port Type”

clip_image001

Se selecciona el puerto y la operación del servicio web que se desea agregar el mensaje de Soap Fault, paso a seguir se hace clic derecho y se selecciona la opción “New Fault Message”

clip_image003

Después de haber realizado el paso anterior se adiciona el fault message,

clip_image004

Se modifica el nombre del mensaje, y se va a la propiedad “MessageType” y se selecciona “schemas”

clip_image005

Luego se selecciona la opción “<select from referenced assembly … >”

clip_image006

Posteriormente aparece una ventana emergente con los esquemas que están en las referencias del proyecto, se hace clic en la referencia “Microsoft.Biztalk.GlobalPropertySchemas” y se busca el esquema Fault.

Este mensaje de Fault tiene dos versiones la 1.1 y la 1.2. Si no se tiene identificado que versión es la que nos devuelve el mensaje de Soap Fault se deben adicionar los dos mensajes. Para este ejemplo se seleccionara la versión 1.1

clip_image007

Después Se hace clic derecho sobre el scope en el que está el receive que tiene la respuesta del servicio web o WCF

clip_image008

En el catch que se generó se modifica el nombre con la propiedad “Name” y se asigna el nombre del objeto con la propiedad “Exception Object Name”.

clip_image009

Luego se va a la propiedad “Exception Object Type” y se selecciona el mensaje que se creó del soap Fault.

clip_image010

Después se selecciona el puerto del servicio web o del WCF para modificar la propiedad “Delivery Notification” con el valor “Transmitted”.

clip_image011

La estructura del SoapFault es

clip_image012

Para obtener los datos del error que vienen del SoapFault, se puede hacer de dos formas:

Por medio de un mapa donde el origen sea el SoapFault y el destino el esquema personalizado que se tenga en la aplicación para reportar errores

clip_image014

La otra opción es con XPATH

Se obtiene el valor “FaultCode” del SoapFault

sXPath=”string(/*[local-name()=’Fault’ and namespace-uri()=’http://schemas.xmlsoap.org/soap/envelope/’]/*[local-name()=’faultcode’ and namespace-uri()=”]/text())”;

sCodeSoapFault=System.Convert.ToString(xpath(SoapFaultException.Fault,sXPath));

Se obtiene el valor “FaultString”del SoapFault

sXPath=”string(/*[local-name()=’Fault’ and namespace-uri()=’http://schemas.xmlsoap.org/soap/envelope/’]/*[local-name()=’faultstring’ and namespace-uri()=”]/text())”;

 

sErrorSoapFault=System.Convert.ToString(xpath(SoapFaultException.Fault,sXPath));

Filed Under: BizTalk, BizTalk 2010 configurations, BizTalk Application, ESB, SOA Tagged With: Servicio Web, Soap Fault, WCF, Windows 8

Recibir archivos mediante el adaptador de AS2 en BizTalk 2010
Recibir archivos mediante el adaptador de AS2 en BizTalk 2010 avatar

December 5, 2012 By Bernardo Enrique Cardales Acuña Leave a Comment

Este es una continuación del anterior post Envío de archivos mediante el adaptador de AS2 en BizTalk 2010, por lo cual ya deben tener la configuración necesaria para recibir archivos utilizando Biztalk 2010, enviando desde la herramienta AS2Connector.

 

Creamos una aplicación en el IIS, seleccionamos BizTalkAppPool y buscamos en la ruta de instalación de BizTalkel adaptador para recibir HTTP de Biztalk BTSHTTPReceive.dll

 

image

En IIS seleccionamos el sitio por defecto en la pestaña Features View abrimos Handler Mappings

image

Llenamos el formulario como muestra la imgen y hacemos clic en Request Restrictions…

 

image

Vamos a recibir peticiones tipo POST

image

Abrimos la consola de BizTalk, crear un ReceivePort de tipo HTTP y establecer el Pipeline AS2Receive…

image

Se configura la ruta donde creamos la aplicación en IIS en este caso es /EjemploRecibirAS2/BTSHTTPReceive.dll

image

Buscar el assembly Microsoft.BizTalk.Edi.BaseArtifacts.dll en la aplicación Biztalk EDI Application y moverla a la nuestra, sino existe agregarla como recurso en nuestra aplicación.

image

Crear SendPort para guardar los mensajes en una ruta y ponerle el filtro como el siguiente

image

Para enviar el Mdn, ir al AS2Connector  extraer la ruta en el menú My Profile en la sección Asynchronous Receipts…

image

… y ponerla en un nuevo SendPort de tipo HTTP con un Pipeline de tipo AS2Send…

image

…filtrado por el puerto donde recibe el archivo AS2 y definiendo que va a enviar un Mdn.

image

Ir al AS2Connector y  establecer la configuración del Partner (igual que el anterior post)

image

Crear archivos de prueba para el envío y enviar (Send)

image

Mirar en la ruta del SendPort configurado previamente

que creó el archivo.

 

image

Filed Under: BizTalk, BizTalk 2010 configurations, BizTalk Application, SOA

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 20
  • Next Page »

Team


Marco
Antonio Hernández

Jaime
Alonso Páez

Luis
Carlos Bernal

Ana
María Orozco

Juan
Camilo Zapata

Sonia
Elizabeth Soriano

Diana
Díaz Grijalba

Carlos
Alberto Rueda

Bernardo
Enrique Cardales

Alexandra
Bravo Restrepo

Juan
Alberto Vélez

Diana
Paola Padilla

Jhon
Jairo Rodriguez

Brayan
Ruiz

Jesús
Javier Hernández

Alejandro
Garcia Forero

Gustavo
Adolfo Echeverry

Yully
Arias Castillo

Carlos
Andrés Vélez

Oscar
Alberto Urrea

Odahir
Rolando Salcedo

Jimmy
Quejada Meneses

Natalia
Zartha Suárez

Josué
Leonardo Bohórquez

Mario
Andrés Cortés

Eric
Yovanny Martinez

Carolina
Torres Rodríguez

Juan
Mauricio García

Tag Cloud

.NET (9) 940px (1) Analysis Services mdx (1) An attempt was made to load a program with an incorrect format. (1) ASP.NET MVC (1) Azure (3) Backup (1) BAM (7) BAM API (1) BAMTraceException (2) BI (3) BizTalk (24) Business Intelligence (6) C# (2) caracteristicas de publicacion (2) Content Editor (3) ESB (15) ESB Toolkit (3) General (4) habilitar caracteristicas (3) indexes (2) Integration Services (2) Master Page (3) MDX (2) MSE (11) net.tcp (2) Office 365 (2) Oracle (2) Performance Point (2) Public Website (2) Receive Location (2) SDK (2) Servicio Web (2) Sharepoint 2010 (2) SharePoint 2013 (4) SharePoint Online (2) SOA (8) Soap Fault (2) Sort Months MDX (2) SQL Server (2) Visual (2) Visual Studio 2010 (2) WCF (19) Windows (3) Windows 8 (17)

Categories

  • .NET (33)
  • Analysis Services (1)
  • ASP.NET MVC (2)
  • Azure (7)
  • BAM (9)
  • BAM PrimaryImport (3)
  • BigData (1)
  • BizTalk (77)
  • BizTalk 2010 configurations (57)
  • BizTalk Application (60)
  • BizTalk Services (13)
  • Business Intelligence (4)
  • Cloud (3)
  • CMD (1)
  • CodeSmith – NetTiers (2)
  • CommandPrompt (1)
  • CRM OptionSet mapping component (1)
  • Desarrollo de software (6)
  • develop (6)
  • developers (3)
  • DropBox (1)
  • Dynamics (1)
  • Enterprise Architect (1)
  • Entity Framework (1)
  • Errores BizTalk (2)
  • ESB (27)
  • ETL (1)
  • Event Viewer (1)
  • Excel Services (1)
  • Foreach loop container (1)
  • General (4)
  • Gerencia de Proyectos (2)
  • Google (1)
  • Grouped Slices (1)
  • Human Talent (1)
  • IIS (4)
  • Integración (6)
  • Integration Services (3)
  • KingswaySoft (1)
  • Lync (1)
  • MSE (13)
  • Office 365 (2)
  • Oracle Data Adapter (2)
  • Performance Point (4)
  • Picklist (1)
  • Pivot Table (1)
  • Procesos (1)
  • Pruebas (1)
  • Public Website (2)
  • Reports (1)
  • SCRUM (1)
  • SDK (2)
  • SEO (1)
  • Servicios (2)
  • Sharepoint (9)
  • SharePoint 2010 (10)
  • SharePoint 2013 (4)
  • SharePoint Online (2)
  • SharpBox (1)
  • Shortcuts (1)
  • Sin categoría (1)
  • SOA (50)
  • SQL (5)
  • SQL Server (3)
  • SQL Server Management Studio (1)
  • SSIS (3)
  • SSL (1)
  • SSO (1)
  • Tracking Profile Editor (2)
  • Twitter (1)
  • Uncategorized (1)
  • Virtual Network (2)
  • Visual Studio 11 (1)
  • Visual Studio 2010 (2)
  • Visual Studio Online (1)
  • VMware (2)
  • WCF (24)
  • Web (1)
  • Web Api (1)
  • Windows (5)
  • Windows 8 (11)
  • Windows Azure (2)
  • Windows Live Write (1)
  • Windows Phone (7)
  • Windows Phone 8 (1)
  • Windows Scheduler (1)
  • windows8 (2)
  • WindowsRT (3)
  • WP7 SDK (1)

Manage

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org