StrataFrame Forum

Error when launching BOM

http://forum.strataframe.net/Topic11194.aspx

By Keith Harvey - 8/28/2007

In my solution when I click to launch the BOM, I immediately get this error:

NullReferenceException
  Object reference not set to an instance of an object.

Source     : MicroFour StrataFrame AddIns

Stack Trace:
   at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.SearchWithinFolder(Project Folder)

I can't figure it out...

By StrataFrame Team - 8/29/2007

Can you post a screen shot of your SolutionExplorer.  I'll bet you've got some sort of special solution folder in your solution that we're not expecting.  Though we have null tests all over that method, so I'm not sure which one is being missed...
By Keith Harvey - 8/29/2007

The only thing that has changed is that I added a Web Deployment Project to my solution.
By StrataFrame Team - 8/30/2007

OK, let me try adding a web deployment project and see if some of the DTE support is not available on it.
By StrataFrame Team - 8/30/2007

I don't have a "Web Deployment Project" template anywhere on my machine, but I have a "Web Setup Project" under the Other Project Types -> Setup and Deployment.  Adding one of those does not cause a problem with the BOMapper.  Could you send me a sample solution or a snapshot of your Solution Explorer so I can recreate it?
By Keith Harvey - 8/30/2007

Here is a link to the Web Deployment Project template download page at Microsoft:

http://msdn2.microsoft.com/en-us/asp.net/Aa336619.aspx

By StrataFrame Team - 8/31/2007

Yep, that reproduced it in a hurry.  Looks like that project type's object model is an empty Project object with a null ProjectItems collection... not just an empty collection, but a null collection.  Man, I wisth MS would be consistent with the ways they implement the interfaces on their DTE object model...

Anyway, here's the DLLs for the fix.  Just put them in the common files folder and then the GAC and restart VS.