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]
An application error occurred in Catalog Service Operation [GetIdFromName] avatar

March 31, 2011 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. Construyendo el servicio con WSSF, inicialmente se definió el modelo con la siguiente serialización:

Al nivel del modelo del service Contract

Serializer Type = DataContractSerializer

Y a nivel de las operaciones:

Is Wrapped = True

Solución

Cambiar la forma como se serializa el servicio y no permitir que las operaciones sean “envueltas” (wrapped) con un elemento raíz., es decir,

Al nivel del modelo del service Contract

Serializer Type = XmlSerializer

Y a nivel de las operaciones:

Is Wrapped = False

La siguientes son las diferencias del WSDL generado, con una serialización tipo XmlSerializer vs DataContractSerializer.

DiferenciasSerializer

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

Referencias

http://blogs.itsynergy.co/mhernandezp/2010/04/25/web-service-software-factory-errores-en-la-generacion-proxy-cuando-es-iswrapped-false/

Filed Under: MSE Tagged With: MSE

Error Timeout occured while trying to acquire a writer lock on path
Error Timeout occured while trying to acquire a writer lock on path avatar

March 24, 2011 By Jaime Alonso Páez torres Leave a Comment

Problema

Al trata de compilar una plantilla de NetTiers en CodeSmith Studio, me genero un error de compilación al parecer con el cache que se maneja. El error era el siguiente:

Timeout occured while trying to acquire a writer lock on path ‘c:\users\luis\appdata\local\codesmith\v5.2\template cache\999062333’

Solución

Lo que se debe hacer es limpiar el cache de CodeSmith. Seguir los siguientes pasos:

  1. Cerrar todas las ventanas abiertas de CodeSmith y Visual Studio.
  2. Abrir una consola (cmd.exe) y digitar el siguiente comando. No hay necesidad de ubicarse en una ruta en especial.

        cs /clearcache

  3.  Volver a compilar y listo !!!

Filed Under: CodeSmith - NetTiers, Windows 8

Incluir plantilla .cst en NetTiers-CodeSmith
Incluir plantilla .cst en NetTiers-CodeSmith avatar

March 24, 2011 By Jaime Alonso Páez torres Leave a Comment

En mi caso, lo que requeria era incluir una clase en el  proyecto de Services que es una de las capas que construye NetTiers.

Los siguientes son los pasos que se deben seguir:

  1. Se debe crear la nueva plantilla .cst y colocarla donde se requiere que quede ubicada la clase a generar. Para mi caso deseaba que la clase quede generada en el proyecto de Services y la ruta es “…\NetTiers\Components”.
  2. Adicionar la referencia de la nueva plantilla .cst a los siguientes archivos:
  • …\NetTiers\TemplateLib\FrameworkTemplates.cst
  • …\NetTiers\TemplateLib\CreateTemplates.cst

De la siguiente forma:

En FrameworkTemplates.cst

<%@ Register Name=”NuevaPlantilla” Template=”../Components/NuevaPlantilla.cst” MergeProperties=”False” ExcludeProperties=”” %>

En CreateTemplates.cst

CodeTemplates.Add(“NuevaPlantilla.cst“, base.CreateTemplate<NuevaPlantilla>()); this.PerformStep();

3. Modificar …\Nettiers\NetTiers.cst, para adicionar la referencia de la nueva plantilla, en el sitio donde se definen las plantilla para el proyecto donde se desea generar la clase:

XmlElement iSecurityContextViewsNode = AddFileNode(commonNode, “NuevaPlantilla.cs“);
//Se establece los valores de las propiedades que maneje la nueva plantilla
this.GetTemplate(“NuevaPlantilla.cst“).SetProperty(“NameSpace”, ComponentsNameSpace);
this.GetTemplate(“NuevaPlantilla.cst“).SetProperty(“BLLNameSpace”, BLLNameSpace);
this.GetTemplate(“NuevaPlantilla.cst“).SetProperty(“DALNameSpace”, DALNameSpace);
this.RenderToFile(“NuevaPlantilla.cst“, rootPathComponents + \\NuevaPlantilla.cs, true);

4.  Adicionar referencia de la nueva plantilla en …\NetTiers\VisualStudio\vsnet2005.project.cst.

Se debe ubicar las lineas donde se estan incluyendo las clases del proyecto o capa donde se va a incluir la nueva clase y luego incluir:

<Compile Include=”<%=ComponentsSubFolder%>NuevaPlantilla.cs“>
<SubType>Code</SubType>
</Compile>

5. Compilar NetTiers.cst en CodeSmith Studio y listo !!!!

Filed Under: CodeSmith - NetTiers

  • « Previous Page
  • 1
  • …
  • 42
  • 43
  • 44
  • 45
  • 46
  • …
  • 72
  • 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

Carlos
Andrés Vélez

Yully
Arias Castillo

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