[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1048
  • Last Modified:

COMException using VB.net 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?

0
collages
Asked:
collages
  • 2
  • 2
1 Solution
 
gjutrasCommented:
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.
0
 
collagesAuthor Commented:
Ok...I see if I can do that.
So what exactly is the problem here?
0
 
gjutrasCommented:
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.
0
 
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.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now