WCF service hosted in IIS – "This collection already contains an address with scheme http" – Why does this happen?

I came across this error when I tried hosting a WCF endpoint from a website in IIS. This can be resolved by adding the following section in the web.config file     <serviceHostingEnvironment aspNetCompatibilityEnabled=”true”>       <baseAddressPrefixFilters>         <add prefix=http://www.myhost.com/ />       </baseAddressPrefixFilters>     </serviceHostingEnvironment>   Why does this happen? When you host a website using a…

Unhandled Error in Silverlight Application Code: 2103 Category: InitializeError Message: Invalid or malformed application: Check manifest

This is one weird error I encountered while creating a simple Silverlight application.  Scenario: Tested my application and post that I decided (for some reasons not relevant here) to change the namespace of the classes in my silverlight project. As part of this, I changed the namespace of the App class in the App.xaml.cs file….