1

I tried to create object using ComAutomationFactory.CreateObject . It is giving following exception

     "Failed to create an object instance for the specified ProgId"

My application is running on OOB and has elevated permission.

if (ComAutomationFactory.IsAvailable && App.Current.HasElevatedPermissions) {

                dynamic sample = ComAutomationFactory.CreateObject("SampleCom.ComClass");

            }

where SampleCom is a my Com Application created in C#

I use Silverlight 4

Peter Kelly
  • 14,253
  • 6
  • 54
  • 63
subbu
  • 3,229
  • 13
  • 49
  • 70

1 Answers1

1

Only if the Dll is signed you can Create object using ComAutomationFactory.CreateObject

subbu
  • 3,229
  • 13
  • 49
  • 70
  • This solved my problem, but could you point me towards *any* documentation that says the COM component must be signed? So far I've only seen statements about how the XAP file of the Silverlight application should be signed. – Thorarin May 31 '11 at 21:21