iT Synergy Blogs

Growing Innovation - Soluciones a problemas reales

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

Copyright © 2025 · iT Synergy·

An application error occurred in Catalog Service Operation [GetIdFromName] Parte 2
An application error occurred in Catalog Service Operation [GetIdFromName]  Parte 2 avatar

January 31, 2012 By Jaime Alonso Páez torres Leave a Comment

Problema

Al tratar de importar un servicio WCF en MSE construido a partir de Web Service Software Factory (WSSF), se me presento el siguiente error:

An application error occurred in Catalog Service Operation [GetIdFromName]. Error Detail [Exception Information Type[MseDataException] Source[Microsoft.ManagedSolutions.Mse.Catalog.Data] Message[Procedure or function ‘GetIDFromName’ expects parameter ‘@EntityName’, which was not supplied.] StackTrace[ at Microsoft.ManagedSolutions.Mse.Catalog.Data.Entity.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection) at Microsoft.ManagedSolutions.Mse.Catalog.Module.Business.EntityManager.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection)]Exception Information Type[SqlException] Source[.Net SqlClient Data Provider] Message[Procedure or function ‘GetIDFromName’ expects parameter ‘@EntityName’, which was not supplied.] StackTrace[ at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ManagedSolutions.Mse.Catalog.Data.Entity.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection)]]

Causa

Al parecer el problema es causado por la forma como es serializado el WSDL del servicio.Posibles causas:

  • El modelo de serialización con el que se construyo el servicio WCF con WSSF. Ver la primera parte del blog.
  • No todos los data contract generados estan definidos completamete y más concretamente les hace falta su correspondiente namespace.

Solución

Verificar que en los data contract generados se encuentre establecido el valor XmlRootAttribute con el Namespace correspondiente al contrato, en caso que no lo posea.

Ejemplo,
[System.CodeDom.Compiler.GeneratedCodeAttribute(“System.Xml”, “4.0.30319.233”)]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute(“code”)]
[System.Xml.Serialization.XmlTypeAttribute(Namespace=”http://sap.com/xi/FSCM/Global2″)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = “http://sap.com/xi/FSCM/Global2”, IsNullable = true)]
public partial class BusinessScopeID {

Y sabor !!!  Podremos importar el servicio en MSE.

Filed Under: MSE, WCF

Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format. avatar

January 24, 2012 By Juan Camilo Zapata Montúfar Leave a Comment

If you are facing this same error “Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect format.” using the Oracle.DataAccess assembly in my case , and only if it happens using the iis version of your WCF service, but running it directly from Visual Studio works , then you problem is on the Application Pool on your IIS

Go to the Application Pool of your application on the IIS:

Select Advanced Settings:

And change Enable 32-bit Applications to TRUE

And finally make an IIS Reset

This option solve my problem.

Filed Under: IIS, Oracle Data Adapter, WCF Tagged With: An attempt was made to load a program with an incorrect format., Could not load file or assembly, Could not load file or assembly 'Oracle.DataAccess', Oracle DataAccess dependencies, Oracle dependencies, Oracle dll format, Oracle.DataAccess, WCF dll

Convertir un wsdl a xsd
Convertir un wsdl a xsd avatar

April 1, 2011 By Jaime Alonso Páez torres Leave a Comment

Objetivo

Utilizar el esquema XSD correspondiente de un servicio web fuente, para poder definir los mensajes de entrada y salida de sus operaciones para construir su correspondiente servicio web proxy.

Pasos a seguir

1. Generar la clase proxy y el archivo de configuración correspondiente del servicio web fuente, usando Service Model Metadata Utility (svc.exe), que es una utilidad que se encuentra en Visual Studio Command Prompt .

Ejemplo,

Svcutil.exe http://serviciofuente.dominio.com:9001/service?wsdl /out:proxy.cs  /language:c#  /config:app.config  /namespace:*,Servicios.Proxy

En la anterior sentencia, se especifica la dirección URL del servicio web fuente, el nombre de la clase proxy, el lenguaje, el nombre de archivo de configuración que contendrá la configuración del Endpoint para invocar el servicio y el NameSpace que se desea para la clase proxy (opcional).

Notas a tener en cuenta,

Esta herramienta no soporta Multiframework. Si se desea generar un artefacto .Net 4.0, se tiene que usar svcutil.exe desde el SDK de .Net 4.0. Para generar un artefacto .Net 3.5, se tiene que usar svcutil.exe desde el SDK de .Net 3.5.

2. Empaquetar la clase proxy generada, dentro de una librería de .Net y compilar el assembly.

3. Con la utilidad XML Schema Definition Tool (xsd.exe), se genera el esquema correspondiente del assembly anteriormente compilado. Esta es también es una utilidad que se encuentra en Visual Studio Command Prompt .

Ejecutar la siguiente sentencia donde se encuentra ubicado el assembly correspondiente,

xsd .exe Servicio.Proxy.Service.dll

El comando anterior genera el esquema XML para todos los tipos del ensamblado myAssembly.dll, y los guarda como schema0.xsd en el directorio actual.

Y sabor !!!   Romanos 13: 11 – 14

Filed Under: WCF Tagged With: WCF

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • …
  • 8
  • 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