subbu
subbu

Reputation: 3299

Problem in ComAutomationFactory.CreateObject

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

Upvotes: 1

Views: 1857

Answers (1)

subbu
subbu

Reputation: 3299

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

Upvotes: 1

Related Questions