Service certificate: Keyset does not exist

When you try to use a service certificate in WCF namely message security, you might have an error :

Keyset does not exist

Or in a detailed manner the message could be:

It is likely that certificate ‘CN=xxx’ may not have a private key that is capable of key exchange or the process may not have access rights for the private key. Please see inner exception for detail.

Read the rest of this entry »

Tags: , ,

Client Certificate Authentication – Error 403.7

When you implement client certificate authentication in IIS(7.5), you might get Error 403.7, and in the client side the error message looks like

The HTTP request was forbidden with client authentication scheme ‘Anonymous’.

While you have done everything according to the books, you attached a valid certificate from client side, and its Root is  indeed installed in Trusted Root Certificate Authorities on server. No matter what you do you keep getting 403.7 error from IIS.

Read the rest of this entry »

Tags: , ,

Wpf DataBinding And INotifyPropertyChanged

In WPF, data binding between a binding target which is normally a ui control property (DepdencyProperty) and  a binding source which is normally the view model property can be two way.  There is hardly any issues of binding from target to source, that is the changes on UI are quite reliably pushed back to source the view model, but to get UI updates every time model changes is not very obvious.

Read the rest of this entry »


Magic @Html.DropDownList

This is observed in MVC5

When one of properties of model is associated with another list, it is normal practice that  list is saved in the ViewData as a SelectList , then in the View, the same list is retrieved back and passed to the html helper @Html.DropDownList(modelpropertyname,the SelectList)

What puzzled me is the second parameter, the SelectList could be ignored or even is attempted to be retrieved in a wrong way,  the List could still be loaded correctly. Read the rest of this entry »



Many years ago I have written an article about demystifying WCF in Asp.Net, today I am going to show you how to create and host WCF services in a MVC environment, in the article mentioned earlier, it is said that WCF service is a ServiceHost, what is it then for WCF service consumer? So you will also be able to see in here that how to create a service consumer in a demystified way.

Read the rest of this entry »

Tags: ,

Page 2 of 2112345...1020...Last »