September 21, 2013 / Kannan / 0 Comments
Recently I was planning to format my 64GB USB Drive with FAT32 format as my Car Player doesn’t support another format and Windows 8 or Mac OS X had the only option being NTFS or exFAT.
So after little bit of googling found out that there is an utility available called fat32format here http://www.ridgecrop.demon.co.uk/index.htm?guiformat.htm.
If you want to know the default allocation sizes, check out the link http://support.microsoft.com/kb/140365
September 7, 2013 / Kannan / 0 Comments
I was testing out my own WCF REST Service using Fiddler and was getting error response “The incoming message has an unexpected message format ‘Raw'”.
After spending time diagnosing the message the clue was, the WCF was getting a request with no content type.
My contract was specifically expecting the request format to be XML using the following attribute
RequestFormat = WebMessageFormat.Xml
Hence added the content type as “application/xml” and things went fine.
The following is an example of Fiddler’s request for a REST POST with composite data type
Type: POST
URL: http://localhost:1510/GalleryService.svc/RestService/GetDataUsingDataContract/
Protocol: HTTP/1.1
Request Header:
User-Agent: Fiddler
Host: localhost:1510
Content-Length: 198
Content-Type: application/xml
Request Body:
<CompositeType xmlns="http://schemas.datacontract.org/2004/07/Net.BinaryBits.Apps.BBGallery.WebService"><BoolValue>true</BoolValue><StringValue>String content</StringValue></CompositeType>
September 7, 2013 / Kannan / 0 Comments
During our course of developing applications we might come across number of scenarios. One of the scenarios might be creating a .NET web service which can be exposed as SOAP and REST.
The following link explains with code on how to implement that.
Expose WCF 4.0 Service as SOAP and REST
September 1, 2013 / Kannan / 0 Comments
Ever wanted to copy a list of files as text from Windows Explorer?
The following has been tested in Windows 8 Pro.
- Select files/folder for which you would like to create a list
- Once selected, press Shift key and right click mouse on one of the selected files or folders
- You will get a menu “Copy as path”, click it
- That’s it, now you have the list of selected files/folders in the clipboard
- Paste it in any compatible applications like notepad