Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  'Class not registered' When application is installed and run on another workstat (Thursday, September 02, 2004)




Found the following interesting discussion in the Newsgroups:

'Class not registered' When application is installed and run on another workstat
by:hughsie1000@hotmail.com (Hughsie)

Hi

I have created an installation package for my app and I have installed the application onto another machine together with the framework and the correct MDAC version.

The problem is when I access something in the application that uses one of the required dlls.

All the dlls have been included with the application in the same folder as the exe when it was installed. With .net I thought this was enough.

This problem occurs with two specific dlls:-

I am using a COM control called CTDays (a calendar control). Now, in my application folder I have AxInterop.CTDAYSLib.dll and Interop.CTDAYSLib.dll which I believe are the wrappers to enable the object to be accessed from dot net.

The others are the dlls to enable my application to create Word documents.

I can't register these components with regsvr32 as they are dot net assemblies so I tried regasm. They register OK but still cause the error when accessed in the application.

In the package project I also set them to be registered but the problem was sill the same.

Any help would be MUCH appreciated as I have been working on this for over a year and it is to be installed this week.

Apologies for the long post.

Hughsie


 Reply:
by:Chris Dunaway

 
Is the CTDAYSLib.dll file present and registered on the workstation? All
COM .dll's must still be registered.
Can you show the line of code that has the problem?
--
Chris

To send me an E-mail, remove the underscores and lunchmeat from my E-Mail
address.


 Reply:
by:hughsie1000@hotmail.com (Hughsie)

 
Thanks for the response. The CTDays problem is fixed now. I didn't realise the actual COM dll had to be installed as well as the wrappers. I thought the wrappers were instead of the original.

The problem with my Word stuff remains though.

I am creating Word docs from my application and the following dependancies show (which I believe are related to Word):-

Interop.Office.dll
Interop.VBIDE.dll
Interop.Word.dll
MSO9.dll
MSWORD9.OLB

All of the above are in the application directory but still no Word access.

Again, any help would be much appreciated.

Many Thanks

Hughsie


 Reply:
by:davguy@online.microsoft.com (David Guyer [MS])

 This might sound silly, but is Word already installed on the target computer? You don't want to deploy MSO9.dll and MSWORD9.OLB, since they are not standalone files.

You probably want to create a Launch Condition in your setup project that will check to see if office/word are already installed, since your app requires that they already be there.
---
David Guyer - VBQA Deployment Testing








 
Previous Posts
    - Redirect Method
    - Textbox truncate
    - Help in Treeview
    - Microsoft Visual C++ .NET Step by Step
    - Mastering Visual C# .NET
    - OOP: Building Reusable Components with Microsoft V...
    - Mastering ASP.Net with Visual C#
    - Microsoft ADO.NET Professional Projects
    - Sams Teach Yourself Visual C++.NET in 21 Days (2nd...
    - Remoting with C# and .NET: Remote Objects for Dist...

Archives
    - 08/01/2004 - 08/08/2004
    - 08/08/2004 - 08/15/2004
    - 08/15/2004 - 08/22/2004
    - 08/22/2004 - 08/29/2004
    - 08/29/2004 - 09/05/2004
    - 09/05/2004 - 09/12/2004
    - 09/12/2004 - 09/19/2004
    - 09/19/2004 - 09/26/2004
    - 09/26/2004 - 10/03/2004
    - 10/03/2004 - 10/10/2004
    - 01/02/2005 - 01/09/2005
    - 01/09/2005 - 01/16/2005
    - 01/30/2005 - 02/06/2005
    - 01/01/2006 - 01/08/2006


Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland