If your pen-drive is not showing data and you know that there is some data in it then below steps can help you in displaying data in pen-drive.
WEB API is a framework developed by Microsoft to build REST APIs. Building REST APIs using WEB API is very easy.
You can use below method to serialize an object to XML string.
To debug a window service you can make use of below property of Environment class: