C# C中的ActiveX公共对话框控件错误#

C# C中的ActiveX公共对话框控件错误#,c#,.net,C#,.net,我在Arcobjects的示例代码中遇到了一个奇怪的错误,但该错误似乎不是Arcobjects的一部分 这是发生错误的代码部分: // Get the typeinfo for the ActiveX common dialog control typ = Type.GetTypeFromProgID("MSComDlg.CommonDialog"); // Create an instance of the control. We pass

我在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(典型)我收到此错误
用户未处理COM异常


有什么需要帮忙的吗?

这不算什么,但我能猜出来。该代码使用了一个古老的VB6控件。去年4月获得了一个安全补丁,修复了一个令人讨厌的远程代码执行漏洞。该修补程序更改了控件的CLSID。当然,该补丁也没有更新ArcGIS。请与供应商联系以获得支持。抱歉,我忘了提及我正在使用XP SP3,但没有更新,此信息可能会揭示一些解决方案?