Geeks With Blogs
Rohit Gupta Engaging talk on Microsoft Technologies ....My Resume
May 2010 Entries
LinqToXML removing empty xmlns attributes & adding attributes like xmlns:xsi, xsi:schemaLocation to Elements
Suppose you need to generate the following XML: 1: <GenevaLoader xmlns:xsi="http://www.w3.or... 2: xsi:schemaLocation="http://... masterschema.xsd" 3: xmlns="http://www.advent.co... 4: <PriceRecords> 5: <PriceRecord> 6: </PriceRecord> 7: </PriceRecords> 8: </GenevaLoader> Normally you would write the following C# code to accomplish this: 1: const string ns = "http://www.advent.com/Sche... ......

Posted On Friday, May 21, 2010 11:47 AM

Copying files from GAC using xcopy or Windows Explorer
use this command for copying files using a wildcard from the GAC to a local folder. xcopy c:\windows\assembly\Microso... c:\gacdll /s/r/y/c The above command will continue even it encounters any “Access Denied” errors, thus copying over the required files. To copy files using the Windows explorer just disable the GAC Cache Viewer by adding a entry to the registry: Browse to “HKEY_LOCALMACHINE\Software... Add a Dword called DisableCacheViewer. Set the value of it to ......

Posted On Friday, May 21, 2010 10:45 AM

Copyright © Rohit Gupta | Powered by: GeeksWithBlogs.net