# Wednesday, September 03, 2008

Another day, another fun error message.  Thanks to all the fun I've been having with - I've given up and created a new virtual machine with XP Pro to run Visual Studio in.   So I grab the latest revision from source control and load the solution in Visual Studio.  Boom.  Sytem.Runtime.InteropServices.ComException.  That's it. No more details.  This is one of those errors where it could be just about anything.  A gives way too many results.

So I'm going to add one more search result on this error message.  After much muckery - I've resolved my instance of the problem.  The background is simple.  I have an ASP.NET web application with a few DLL projects and a deployment project.  As stated, I've created a new install of Windows XP.  First ensure that you have the add-on installed.  That can also cause this error (in some cases).

The key thing in this case was the lack of IIS on the machine.  On my primary development machine (the one where Oracle is a massive pain) I do have IIS installed, and the last time I ran this project from that machine - Oracle was working OK with the data access hack.  But apparently something has changed on that box and now I'm getting the evil "Oracle client and networking components were not found." error.  So I gave up.

First obvious work around is to install IIS.  I'm sick of messing around today, and just want to work.  So the quicker solution is to enable the built in development web server.  This can be accomplished by right clicking the unloaded project in the Visual Studio solution explorer and choosing "Edit <projectname.whateverlanguateyouuseproj>".  This will bring up the XML view of the project.  Find the ProjectExtensions section of the config and change UseIIS to be False.  Setting this up could also prevent problems when you have a larger, or more dynamic team accessing the project.

   1: <ProjectExtensions>
   2:     <VisualStudio>
   3:       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
   4:         <WebProjectProperties>
   5:           <UseIIS>False</UseIIS>
   6:           <AutoAssignPort>False</AutoAssignPort>
   7:           <DevelopmentServerPort>4088</DevelopmentServerPort>
   8:           <DevelopmentServerVPath>/webrade</DevelopmentServerVPath>
   9:           <IISUrl>http://localhost/WebRADE32</IISUrl>
  10:           <NTLMAuthentication>False</NTLMAuthentication>
  11:           <UseCustomServer>False</UseCustomServer>
  12:           <CustomServerUrl>
  13:           </CustomServerUrl>
  14:           <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
  15:         </WebProjectProperties>
  16:       </FlavorProperties>
  17:     </VisualStudio>
  18:   </ProjectExtensions>

 

Reload the project, and it should load now.

P.S. Oracle, please please please release something for Vista x64 and ODAC/ODP.  Even an alpha.  I promise I will test on an x86 machine before I release..

Technorati Tags: ,
Wednesday, September 03, 2008 3:04:14 PM (Mountain Standard Time, UTC-07:00)  #    Disclaimer  |   |  Trackback
# Friday, August 15, 2008

has an article stating that the next version of will support multiple displays.  I'm very excited about this enhancement.  Long Long ago, we went to dual head Matrox G200 cards and dual displays for all developers at Kanotech.  This was fantastic. Particularly since 95% of my time was spent doing AutoCAD development.  Whether it was Visual Lisp, VB, or C++ - debugging something in AutoCAD screamed for multiple monitors. The AutoCAD window would start up and switching between the IDE to step through code, and doing what needed to be done in the AutoCAD UI was a huge pain.

More recently, I was running quad 19" monitors, and Visual Studio was maximized (manually) across the two center monitors.  This was a bit of a pain - but left a lot of room for running other apps as well as debugging.  Now - I've got a Samsung 305T 30" monitor for primary, and a 24" and one remaining 19" (need to upgrade this one of these days so everything looks consistent =]).  Visual Studio is maximized on the 30" and I debug on the left or right monitor.

More details on the Multi-Display enhancement can be found - sadly it doesn't have much detail other than "Windows within Visual Studio should be docked by default and allow the user to undock any window and move it to another display on the system".  I really hope they knock this one out of the park though.

Technorati Tags:
Friday, August 15, 2008 9:41:54 AM (Mountain Standard Time, UTC-07:00)  #    Disclaimer  |   |  Trackback
# Monday, July 14, 2008

Recently, I purchased a copy of .  I'm not even going to pretend I've scratched the surface of what ReSharper can do, but I can assure you it's a massive time saver when creating classes from scratch.  I'm furiously plugging away, implementing an ORM for RADE, and to do that I needed to create a lot of classes pretty much from scratch (oh, and do I have a few things to say about that, but that's for another day).  Let's look at a simple example.  To get things started, create a new class.  Select the folder in the solution explorer, and press Alt+Insert:

ReSharper Class Creation

Press enter and you are prompted for the class name.  So Visual Studio has this of course, but this is a small example of some of the time savings you can achieve.  Enter the class name and you start off with an empty class.  Next, lets define a couple of private members.   Let's run with the following example.

   1: namespace RADE.BO.Domain
   2: {
   3:     public class SampleClass
   4:     {
   5:         private Int32 _ID;
   6:         private String _Description;
   7:         private Int64 _BiggerInt;
   8:     }
   9: }

 

Simple class.  Three member variables.  Here is where the big time savers come in.  Next, click Alt+Insert again and you will be prompted with the following options:

Some ReSharper Code Generation Tools

Choose Properties.  You will now be given the option to select one or many fields, set the access rights, read only and virtual properties as well a bunch of others. 

ReSharper Properties Generator

Execute that and all of your get/sets are defined.  My one complaint is that ReSharper is not maintaining the type on the properties.  My Int32's become int, and Int64's become long's.  Apparently this is slated to be fixed.  

So yes, this sample class is tiny, but the time savings on larger classes, or projects full of classes are significant.  The last feature I've been using extensively in this project is the generate constructor tool.  Again, a form is displayed with the defined properties, select the ones you want and boom.  You can create half a dozen different constructors in seconds.  I've created a full object model on, roughly 20 different mildly complex objects in less than an hour, around midnight on a Sunday =)

Some of the other things ReSharper does is suggest code cleanup ideas by removing unused directives, easy execution of , improved code completion.  I encourage you to check it out, .

Technorati Tags:
Sunday, July 13, 2008 11:43:17 PM (Mountain Standard Time, UTC-07:00)  #    Disclaimer  |   |  Trackback
# Saturday, May 24, 2008

Came across a really of the various Visual Studio 2008 releases today.  Now if only I could come up with the ten grand Microsoft wants for a Team Suite license =[

Technorati Tags:
Saturday, May 24, 2008 3:51:01 PM (Mountain Standard Time, UTC-07:00)  #    Disclaimer  |   |  Trackback