WCF: Transport Layer Security – with client certificates

WCF-Transport Layer Security –  with client certificates   Requiremnt: HTTPS/SSL Channel Authentication mode Certificate Windows / NTLM   WCF HOST: IIS   Certificates Authentication on Transport Layer – IIS   Requirement: SSL  Channel (using Server/SSL certificate) Adding a Https binding on IIS and assigning the required SSL certificate. Client to have private key of client…

1

WCF: Handling multiple IIS bindings

WCF: Handling multiple IIS bindings – This collection already contains an address with scheme http   Environment: IIS configured for multiple bindings with different host headers.     WCF Reporting Error: This collection already contains an address with scheme http.   IIS supports specifying multiple IIS bindings per site, which results in multiple base addresses…

0

WCF: Transport Security with User Name + Client Certificate

WCF: Transport Security with User Name + Client Certificate   Vast world of WCF provides endless possibilities to handle the security. This is one interesting scenario, where service needs to get dual layer of credentials. Along with the valid user name and password, it also expects the client application to send a valid client certificate….

0

WCF: Learning Impersonation and Delegation

Configure DC: Please follow link to configure your domain controller. http://techsthing.com/2012/how-to-create-a-domain-controller-using-the-dcpromo-command/ Add all three boxes (A, B, C) to your new DC. First Box/Domain Controller/Client box: DCSAURABH Second Box: DCSAURABH1 Third Box: DCSAURABH2 Architecture: User on Box A (DCSAURABH) using IE to browse the web app running on BOX B (DCSAURABH1) Web App internally impersonates…

2

CngKey.Import() throws an exception saying “An internal error occurred” when importing a key-blob under a non-admin user from a WCF web service

This was a typical error reported by a customer on Windows Server 2008 R2 with IIS 7.5. I created a user named TestCngKey which is a non-admin user as shown in the screen shot below. I tested twice. The first time I logged onto the machine as a domain user. I was not able to…


COMException (0x800a01ad): ActiveX component can’t create object

While troubleshooting an issue with a customer I found this error from an ASP.Net page while trying to create a COM object. The web page was hosted from IIS6 on a Windows Server 2003 machine. Troubleshooting further I figured that the OS was 64 bit and w3wp.exe was running as a 64 bit process trying…


WCF: Troubleshooting Socket Abort Error

WCF: Troubleshooting Socket Abort Error ============================================================================================================================================================ Scenario 1: Client: Console application Server: WCF service Same machine: Yes Step 1: Search for “Exception” keyword, start from bottom System.Net.Sockets Verbose: 0 : [6488] Socket#37659220::Receive() System.Net.Sockets Error: 0 : [6488] Exception in the Socket#37659220::Receive – An existing connection was forcibly closed by the remote host System.Net.Sockets Verbose: 0…

0

Error 0x8013101b when doing a registration free COM activation

Jenfeng’s blog discusses in details about registration free COM/ .Net interop. Please see http://blogs.msdn.com/b/junfeng/archive/2006/05/17/registration-free-com-net-interop.aspx for a reference. The error 0x8013101b stands for COR_E_NEWER_RUNTIME which means “A module specified in the manifest was not found”. For example this might happen if an EXE trying to create a COM object was targeting version 2.0 of the .Net…


WCF: Create client proxy – For WCF service running on SSL – with client certificate

WCF: Create client proxy – For WFC service Running On SSL – With Client Certificate Problem: We can’t use the default svcutil.exe to pass the client certificates. Resolution: So we have two work around. 1) Use the modified svcutil.config file and add the required client certificate in same. http://msdn.microsoft.com/en-us/library/aa395212.aspx 2) We can use Credential Manager…

1

WCF: Learning Impersonation

Learning Impersonation in WCF services   What is Impersonation ? Ability of a thread to execute in a security context that is different from the context of the process that owns the thread When running in a client’s security context, a service “is” the client, to some degree. Why we need it ? We require…

0