Arcobjectsのサンプルコードで奇妙なエラーが発生しましたが、エラーはarcobjectsの一部ではないようです
これは、エラーが発生するコードの部分です。
// Get the typeinfo for the ActiveX common dialog control
typ = Type.GetTypeFromProgID("MSComDlg.CommonDialog");
// Create an instance of the control. We pass it to the property frame function
// so the property pages have an object from which to get current settings and apply
// new settings.
obj = Activator.CreateInstance(typ); ///////the error occurs here
// This handy function calls IPersistStreamInit->New on COM objects to initialize them
ActiveXMessageFormatter.InitStreamedObject(obj);
実行がこの行に達すると、 obj = Activator.CreateInstance(typ);
このエラーが発生しますCOM EXCEPTION WAS UNHANDELED BY THE USER
助けてください