Failed to register output error for ocx

1.2k views Asked by At

I have created one sample ocx project in Microsoft Visual Studio 2008. and compiled the same. i'm getting the following error,

1>Registering output (per-user redirection)... 1>Project : error PRJ0050: Failed to register output. Please try enabling Per-user Redirection or register the component from a command prompt with elevated permissions.

I checked the UAC settings, that is in "Never Notify"

And also I tried invoking Visual Studio by "Run As Administrator" still it failed.

I tried register the OCX using regsvr32 also but its not working.

Kindly provide your suggestions to get out of this.

2

There are 2 answers

0
David Feurle On

Are any dependent dlls missing? When installing the ocx all dll's that are loaded by your ocx need to be present. Check with depends.

0
unknown On

There was a problem with Admin rights. Once I get Admin rts, i'm able to register my ocx. Thank you David.