IIS 7 Change DefaultAppPool to Network Service for this error ‘System.DirectoryServices.DirectoryServicesCOMException’

You may need to do this when your running you web component WCF service or whatever and you receive unusual errors like ‘System.DirectoryServices.DirectoryServicesCOMException’ when using directory services.   This is due to the fact that by default IIS7 runs as ‘IIS APPPOOL\\DefaultAppPool’  and doesn’t have enough permission. Change to Network service and it should be…

2

WCF library in Windows service common error

Service ‘<ServiceName>’ has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.   at System.ServiceModel.Description.DispatcherBuilder.EnsureThereAreNonMexEndpoints(ServiceDescription description)   at System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)   at System.ServiceModel.ServiceHostBase.InitializeRuntime()  …

5

WCF – Debugging not enabled on server

Have you a WCF service and you are trying to Debug it? Are you unable to step into the code from you test application… And is this the first time running your WCF service on your server or local dev machine? Well if you have set the web config file correctly – <compilation debug=”true’/> AND…

2

x64 Unit Tests in Visual Studio 2008(Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

Are you in the following scenario: Your requirement is to compile your managed application as x64 Your requirement is for your application to consume or communicate with unmanaged COM x64 components During development you want to follow a TDD\ agile approach or you want to build a suite of unit tests for your managed app in Visual…

2

Set DNS server Addresses Progamatically

To just read quickly individual DNS and Network configuration properties you can use the System.Net.NetworkInformation to help. Create your NW information class.  NetworkInterface[] nw = NetworkInterface.GetAllNetworkInterfaces(); This returns the first DNS entry as a string.->     nw[0].GetIPProperties().DnsAddresses[0].ToString(). You can obviously expand massively on this, just refer to MSDN. If you need to set The DNS entries programtically you should…

0

Exchange 07: Topology discovery failed, error 0x80040a02 (DSC_E_NO_SUITABLE_CDC)

Environment for this issue: Exchg 2007 Win2008 SP1 & 2 Domain controllers Win2003 SP2 If your exchange installation was working and then suddenly stopped working with the error below.( Try this if your having an installation issue to, allthough this specific issue appeared after it was working fine for a few months). (Some services won’t start ??)…

57