iT Synergy Blogs

Growing Innovation - Soluciones a problemas reales

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

Copyright © 2025 · iT Synergy·

Habilitar mex con binding netTcpBinding en vez de mexTcpBinding
Habilitar mex con binding netTcpBinding en vez de mexTcpBinding avatar

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 Tagged With: .NET, WCF

Asignar HeaderText(TextEncabezado) a un Datasource tipo Arraystring
Asignar HeaderText(TextEncabezado) a un Datasource tipo Arraystring avatar

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 Tagged With: .NET

WCF Application implementing the Anonymous client over Certificate WS-Security scenario
WCF Application implementing the Anonymous client over Certificate WS-Security scenario avatar

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

 

Excelente estrategia para escenarios de seguridad con WCF en una intranet, para mi caso me sirvió cuando tenemos dos dominios diferentes, no tenemos que enviar las credenciales pero si queremos asegurar el transporte, esto lo hacemos por medio de certificados digitales

WCF Application implementing the Anonymous client over Certificate WS-Security scenario

Filed Under: SOA, WCF Tagged With: .NET, WCF

  • « Previous Page
  • 1
  • 2
  • 3

Team


Marco
Antonio Hernández

Jaime
Alonso Páez

Luis
Carlos Bernal

Ana
María Orozco

Juan
Camilo Zapata

Carlos
Alberto Rueda

Sonia
Elizabeth Soriano

Diana
Díaz Grijalba

Alexandra
Bravo Restrepo

Bernardo
Enrique Cardales

Juan
Alberto Vélez

Jhon
Jairo Rodriguez

Diana
Paola Padilla

Gustavo
Adolfo Echeverry

Yully
Arias Castillo

Carlos
Andrés Vélez

Brayan
Ruiz

Jesús
Javier Hernández

Alejandro
Garcia Forero

Natalia
Zartha Suárez

Josué
Leonardo Bohórquez

Oscar
Alberto Urrea

Odahir
Rolando Salcedo

Jimmy
Quejada Meneses

Juan
Mauricio García

Mario
Andrés Cortés

Eric
Yovanny Martinez

Carolina
Torres Rodríguez

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