Cannot create new MxDocumentClass

2200
1
06-22-2011 12:36 PM
kyleknoche
New Contributor
hi -

I'm trying this :


 Type t = Type.GetTypeFromProgID("esriArcMapUI.MxDocument");
            IDocument mxd = Activator.CreateInstance(t) as IDocument;


and I've tried

 IDocument mxd = New MxDocument()



neither work.  I get

Retrieving the COM class factory for component with CLSID {006B1AFE-C66C-11D0-B94C-080009EE4E51} failed due to the following error: 80040111.


I've looked through the help and can't find anything that is pertinent to this issue. Any help would be appreciated.

Thanks,

kyle
0 Kudos
1 Reply
kyleknoche
New Contributor
The reason that I want to do this, in particular, is so that I can use ClickONce deployments to update my customizations for my users.  if someone has a better solution to this please let me know!

thanks.
0 Kudos