I am getting below error when try to create com object in .net for user without admin rights.
The COM class factory for component with CLSID {6CA9DEBE-BA91-4E56-9CD3-D40FE0755204} failed due to the following error Unable to retrieve: 800704ec This program is blocked by group policy. Apply to get your system administrator for more information. (Exception from HRESULT: 0x800704EC).
Code is as shown below:
dynamic obj=null; try { try { var ComType = Type.GetTypeFromProgID("XenReports.XenReportsX"); obj = Activator.CreateInstance(ComType); } catch(Exception) { throw new Exception(TextMessageProvider.GetText(ResourceKeys.XenReportErrorMessage)); }
Please let me know if any one has faced this problem. Com object is for C++ exe.