You can find full article here
Most important parts:
1) Create a Certificate to Act as Your Root Certificate Authority
makecert -n "CN=RootCATest" -r -sv RootCATest.pvk RootCATest.cer
2) Create and Install Your Temporary Service Certificate
makecert -sk MyKeyName -iv RootCATest.pvk -n "CN=tempCert" -ic RootCATest.cer -sr localmachine -ss my -sky exchange -pe tempCert.cer
3) In Client config set RevocationMode to "NoCheck"
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior">
<clientCredentials>
<serviceCertificate>
<authentication *revocationMode="NoCheck" />
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
<client>
<endpoint behaviorConfiguration="NewBehavior" ….>
</endpoint>
</client>
czwartek, 11 czerwca 2009
wtorek, 9 czerwca 2009
"Add Service Reference" 16384 quota
If you got a problem with adding large WCF service into your Visual Studio sollution via "Add Service Reference" you can use following sollution.
You need to edit devenv.exe.config (default located in c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\) and add larger quota info to IMetadataExchange binding. This configuration will be used by VS and it is used for netTcpBinding.
<configuration>
.
.
.
<system.serviceModel>
<client>
<endpoint name="net.tcp" binding="netTcpBinding" bindingConfiguration="bc" contract="IMetadataExchange" />
</client>
<bindings>
<netTcpBinding>
<binding name="bc" maxReceivedMessageSize="512000">
<readerQuotas maxNameTableCharCount="163840" />
<security mode="None"/>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
.
.
.
</configuration>
You need to edit devenv.exe.config (default located in c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\) and add larger quota info to IMetadataExchange binding. This configuration will be used by VS and it is used for netTcpBinding.
<configuration>
.
.
.
<system.serviceModel>
<client>
<endpoint name="net.tcp" binding="netTcpBinding" bindingConfiguration="bc" contract="IMetadataExchange" />
</client>
<bindings>
<netTcpBinding>
<binding name="bc" maxReceivedMessageSize="512000">
<readerQuotas maxNameTableCharCount="163840" />
<security mode="None"/>
</binding>
</netTcpBinding>
</bindings>
</system.serviceModel>
.
.
.
</configuration>
Subskrybuj:
Posty (Atom)