Rupreet's Weblog

Looking deep inside under the hood

  Home  |   Contact  |   Syndication    |   Login
  12 Posts | 0 Stories | 38 Comments | 58 Trackbacks

News

Archives

Post Categories

.NET Framework 2.0

Assembly folder in windows directory is a special folder which shows files in a different manner. To view this folder in a normal view – with all files and directory structure in it, just a tweak in registry needs to be done. Add “DisableCacheViewer&#... DWord key and set its value to 1 at HKEY_LOCAL_MACHINE\SOFTWARE...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Last week, i got the resolution for one the Designer Issue we were facing and this week we bumped into another. Here is the Designer error message we get when we open up winform. One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes. Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Hide at System.Reflection.Module.Ge...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Recently in my project we migrated from VS2003 to VS2005. The application I am working on is a smart client application so it has lot many Win Forms. After migration, when the solution was opened up in VS2005, we faced this strange problem. None of the Forms were opening in the designer mode. It was throwing exception (shown below) One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

There are some scenarios where need to check programmatically if the given file is a .NET assembly or not. How do we do that? One way is to use reflection and try to load that file (assembly). If the assembly gets loaded, and doesn’t throw any exception, then yes, it’s a valid .NET assembly. If it’s not a valid file, then it’ll throw a “BadImageFormatExcept... The idea of checking weather a file is assembly or not by loading it and checking if exception is thrown...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Last evening, I was trying to write an application which could detect IR Devices from my machine and give its details. I was using VS2005 Beta 2 Winforms. I added System.Net.IrDA.dll from “C:\Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\CompactF... path. The program is simple, just create an instance of IrDAClient and look for devices using IrDA.DiscoverDevices(int max) which gives an array of IrDADeviceInfo. But to my surprise, when...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati