Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

MPF2012 Project Property Page Fails To Load

$
0
0

Hi All,

I have a package that I have developed that has a number of features including the ability to right click a loaded project and click properties to bring up a custom set of MPF (project) property pages. Or at least, I did have in VS2010 and it's version of the MPF, but now I have moved over to 2012 it has stopped working.

So I went back a step and looked at the NestedProject sample and have found that when I choose to display it's properties, the exact same error is stopping the pages from loading. The second line below in ProjectDesignerDocumentManager.cs is generating an InvalidCastException:

IVsUIHierarchyparentHierarchy =this.Node.ProjectMgr.GetProperty((int)__VSHPROPID.VSHPROPID_ParentHierarchy)asIVsUIHierarchy;

uintparentHierarchyItemId = (uint)this.Node.ProjectMgr.GetProperty((int)__VSHPROPID.VSHPROPID_ParentHierarchyItemid);

Specifically, the error is E_NOINTERFACE but since I don't seem to be able to debug into the cast to uint, I can't even find out what interface is being requested.

The problem happens in the sample and in my code at exactly the same place, and the exception causes the loading of the properties page to be aborted.

As I said, it used to work in VS2010 but I don't have that installed anymore to do a comparison. Does anyone have any ideas? It's been driving me nuts for quite a while now.

Thanks in advance, Loz.


LozCool


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>