WCF and passing windows credentials
问题 I have a website hosted on ServerA which runs using an App Pool using a special user accout with domain privilages to access our database. In the config file of the website I specify: <identity impersonate="true" /> I then have a service which is also on ServerA and hosted in a console app programmatically (i.e. no config file) like below. Uri uri = new Uri("net.tcp://ServerA:9900/Service/"); ServiceHost host = new ServiceHost(typeof(Service1), uri); NetTcpBinding binding = new NetTcpBinding(