HTTP could not register URL http://+:8000/HelloWCF/. Your process does not have access rights to this namespace

Unfortunately the link in the exception text, http://go.microsoft.com/fwlink/?LinkId=70353, is broken. However, it used to lead to http://msdn.microsoft.com/en-us/library/ms733768.aspx which explains how to set the permissions. It basically informs you to use the following command: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user You can get more help on the details using the help of netsh For example: netsh … Read more

How do I return clean JSON from a WCF Service?

Change the return type of your GetResults to be List<Person>. Eliminate the code that you use to serialize the List to a json string – WCF does this for you automatically. Using your definition for the Person class, this code works for me: public List<Person> GetPlayers() { List<Person> players = new List<Person>(); players.Add(new Person { … Read more

Namespace for [DataContract]

DataContractAttribute Class is in the System.Runtime.Serialization namespace. You should add a reference to System.Runtime.Serialization.dll. That assembly isn’t referenced by default though. To add the reference to your project you have to go to References -> Add Reference in the Solution Explorer and add an assembly reference manually.

WCF on IIS8; *.svc handler mapping doesn’t work

More specifically: Run Server Manager (on task bar and start menu) Choose the server to administer (probably local server) Scroll down to “Roles and Features” section. Choose “Add Role or Feature” from Tasks drop down On “Add Role or Feature Wizard” dialog, click down to “Features” in list of pages on the left. Expand “.Net … Read more

The provided URI scheme ‘https’ is invalid; expected ‘http’. Parameter name: via

Try adding message credentials on your app.config like: <bindings> <basicHttpBinding> <binding name=”defaultBasicHttpBinding”> <security mode=”Transport”> <transport clientCredentialType=”None” proxyCredentialType=”None” realm=””/> <message clientCredentialType=”Certificate” algorithmSuite=”Default” /> </security> </binding> </basicHttpBinding> </bindings>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)