COMException using with Business Objects

I am running the following and get the error on the first line when it tries to start the new BO application.

Imports System.IO
Imports busobj
Imports Designer
Imports Microsoft.Office.Interop.Excel

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim BusObjApp As New busobj.Application
        Dim promptName, promptValue As String

The error is:
COMException was unhandled

Retrieving the COM class factory for component with CLSID {DCDC6F02-5766-11D0-AF14-00A0C912DCDD} failed due to the following error: 80080005.

Any ideas what may be causing this?

Who is Participating?
go hkey_classes_root\clsid\{DCDC6F02-5766-11D0-AF14-00A0C912DCDD}  in the registry
note the uid of the application that it is referencing, search the registry for that string. Note the application name.
open administrative panel, component services, go to dcom and find the apllication get the properties and open up the permissions to the user of the application (if it's a web app, you'll need IIS_WPG or if that's not there then Network Service)
Also check that the folder that the application referenced above has ntfs file security permissions to read and execute.
collagesAuthor Commented:
Ok...I see if I can do that.
So what exactly is the problem here?
you probably have either of 2 permission not set for the user running the application.  Either file permissions or com permissions.
This is a guess as I'm assuming it's not a coding issue.
collagesAuthor Commented:
I think the problem may be that I need to create a wrapper for the COM....I am going to post as another question.

Thanks for your help on this.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.