.NET DateTime Webservices UTC

by Brian Keating Wed, December 02 2009 23:18

With .NET 1.1 when we receive a UTC DateTime in a SOAP response from a webservice it used to get converted to Local time.

With .NET 2.0 when we receive a UTC DateTime in a SOAP response it stayes in UTC.

If you need it in local time make sure to call .ToLocalTime()

 

** Edit: P.s. Have a look at this neat class in the framework XmlConvert

Tags: , ,

C# | WCF

Configuring IIS to host WCF services

by Brian Keating Thu, November 05 2009 21:28

It's true what they say, to learn new technologies it's simple a matter of ABC (Always be coding), I've watched manys the video, read many the book but it's only when I went to try to do something the it sinks in.
Like tonight while trying to host a WCF service on my Windows 7 machine I came across a problem that you'd only find by ABC.

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

The solution.

Control Panel/Programs and Features/Add or Remove components/Microsoft .NET Framework 3.5.1 section. 

I checked the two Windows Communication Foundation checkboxes shown below (the second box enables Windows Activation Service - WAS so that IIS can host WCF services that can be called using non-HTTP bindings such as TCP) (nice!)

 

Tags: ,

WF | IIS7