.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > Impersonation for WCF Service Hosted on IIS
 

Impersonation for WCF Service Hosted on IIS

Hi,

I have hosted my Service on IIS. I need to save some files using this Service, on Other System.

I am implementing Message mode Security with Certificate Credentials for the Client.

My problem is that when I am tring to save the file on other system an error is prompted by the service invalid login for the given user.

I think I have to implement impersonation for this, but have no clue how to implement impersonation for WCF Service hosted on the IIS.

I have tried to implement impersonation in the application by following the steps given in the below link, but i was unable to get the solution

http://msdn.microsoft.com/en-us/library/ms751513.aspx

Can Any one help me in this regard.

Thanks in Adavance,

Pavithru Pinnamaneni.
Pavi Pinnamaneni
Hi Pavithru,

Please have a look at this article How to: Impersonate the Original Caller in WCF Calling from Windows Forms .
http://msdn.microsoft.com/en-us/library/cc949055.aspx

This how-to article shows you how to impersonate the original caller in a WCF service that has been called from a Windows Forms application. The article shows you how to configure the WCF service, implement impersonation, and test the service with a sample Windows Forms client.
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong
Hi Pavithru,

Please have a look at this article How to: Impersonate the Original Caller in WCF Calling from Windows Forms .
http://msdn.microsoft.com/en-us/library/cc949055.aspx

This how-to article shows you how to impersonate the original caller in a WCF service that has been called from a Windows Forms application. The article shows you how to configure the WCF service, implement impersonation, and test the service with a sample Windows Forms client.
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong

You can use google to search for other answers

Custom Search

More Threads

• Error with multiple recieve activity in a workflow service
• <soap:address location="http://dedl13/BlogService.svc"/> My HOSTNAME?
• Where to Start for WCF ....
• Simple WCF Data Transformation Question
• Help on Advise on throtle settings approach
• WCF Configuration from an xml fragment
• Error: ServiceHost only supports class service Types
• System.ServiceModel.CommunicationException
• Calling a Wcf Service Without Adding Reference..
• How do I switch from named endpoints to .config endpoints