iT Synergy Blogs

Growing Innovation - Soluciones a problemas reales

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

Copyright © 2026 · iT Synergy·

Habilitar mex con binding netTcpBinding en vez de mexTcpBinding

February 22, 2010 By Marco Antonio Hernández Prado Leave a Comment

 

He aquí otra vez tratando de exponer mex para binding netTCP, el escenario que yo tenía era el siguiente:

Servicios WCF expuestos por binding netTCP y WSHttp, los endpoint netTCP les tenía un binding customBinding, cuando aplicaba la típica configuración  que me recomendaban en el post a todo el mundo le funcionaba pero a mí me generaba un error, como este

Aqui la recomendación

<endpoint address="mex"
    binding="mexTcpBinding"
contract="IMetadataExchange" bindingConfiguration="mexBinding"   /> 

to

<endpoint address="mex"
    binding="netTcpBinding"
contract="IMetadataExchange" bindingConfiguration="mexBinding"   />

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Resulta que me escenario era diferente, tenía un endpoint así:

<!--Endpoint netTCPCustom-->
<endpoint address="" binding="customBinding"
bindingConfiguration="customTcpBinding_Funcionalidad"
      name="Custom_netTCPEndPoint_Funcionalidad"
      contract="Contrato.Funciolidad">
    <identity>
          <dns value="localhost" />
    </identity>
</endpoint>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Con un binding así:

<bindings>        
          <customBinding>
              <binding name="customTcpBinding_Funcionalidad">
                  <binaryMessageEncoding 
maxReadPoolSize="1024" 
maxWritePoolSize="1024" maxSessionSize="32768">
                      <readerQuotas maxDepth="1024" 
maxStringContentLength="262144"
 maxArrayLength="262144"
                     maxBytesPerRead="32768" maxNameTableCharCount="262144"/>
                  </binaryMessageEncoding>
                  <windowsStreamSecurity/>    
                  <tcpTransport manualAddressing="false" 
maxBufferPoolSize="524288"
 maxReceivedMessageSize="524288"
                        
  connectionBufferSize="65536" hostNameComparisonMode="StrongWildcard"
                        
  channelInitializationTimeout="00:01:00"
 maxBufferSize="524288"
                         
 maxPendingConnections="200" maxOutputDelay="00:00:00.2000000"
                        
  maxPendingAccepts="200" transferMode="Buffered" listenBacklog="500"
                        
  portSharingEnabled="false" teredoEnabled="false">
                      <connectionPoolSettings groupName="default" 
leaseTimeout="00:30:00" idleTimeout="00:30:00"
                                              
maxOutboundConnectionsPerEndpoint="300"/>
                  </tcpTransport>
              </binding>
          </customBinding>
      </bindings>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Tenía que agregar un endpoint para mex así:

<endpoint address="mex" binding="customBinding"
 contract="IMetadataExchange"
 bindingConfiguration="customTcpBinding_Funcionalidad"   />

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

Conclusión:

El error lo decía, las configuraciones del enpoint no concuerdan con las que se han configurado para otro servicios o endpoints.

Lo ejemplos siempre hablan de configuraciones básicas, un endpoint ya configurado binding netTCP, pero yo tenía un customBinding con una cantidad de configuraciones realizadas para tunning, lo que hacía como decía el ejemplo era cambiar mexTcpBinding por netTcpBinding, yo tenía era que cambiarlo por customBinding, con esto ya mi endpoint mex funcionaria pero solo agregando una configuración de binding igual a la que ya tenía en el otro endpoint por eso volví a utilizar el binding que ya tenía y coloque esto: bindingConfiguration=”customTcpBinding_Funcionalidad” , y listo ya tenía porfin mi endpoint netTCP y mi endpoint mex

Filed Under: .NET, WCF

Asignar HeaderText(TextEncabezado) a un Datasource tipo Arraystring

February 22, 2010 By Marco Antonio Hernández Prado Leave a Comment

 

Después de 1 hora tratando de saber cuál era el DataField que debía colocar a un Gridview con Datasource al que le asignamos un ArrayString, pude encontrar que es un simple “!”, increible no? Esto no está documentado, aquí un ejemplo del blog de Mike Pope

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false">
<Columns><asp:BoundField HeaderText="Array Field" DataField="!" />
</Columns></asp:GridView>

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, “Courier New”, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

http://www.mikepope.com/blog/AddComment.aspx?blogid=1419

Filed Under: .NET, Desarrollo de software, develop, Windows

Bug Nombres de Archivos con puntos en Managed Services Engine 7.5

February 4, 2010 By Marco Antonio Hernández Prado Leave a Comment

Tuve problemas tratando de importar entre ambientes las configuraciones de MSE, casi 2 horas importando y me generaba un error como este:

[C:\Customer.Project.MSE.Version.mse] is not a valid MSE File. Valid MSE import files will have the .mse extension

No sé porque razón solo revisaba mis binding, mis configuraciones, el archivo .mse lo revise para saber si tenía algún error, SOLUCION: No colocar puntos en el nombre del archivo de MSE, ni puntos en las carpeta en donde está ubicado el archivo; en la jerarquía de carpetas no puede existir un punto

Filed Under: .NET, MSE

  • « Previous Page
  • 1
  • …
  • 9
  • 10
  • 11

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