Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7834585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T13:14:59+00:00 2026-06-02T13:14:59+00:00

i have a program which is .net.when i execute the program am getting this

  • 0

i have a program which is .net.when i execute the program am getting this exception .the program is supposed to communicate with fiscal printer.

Retrieving the COM class factory for component with CLSID
{741F1E1B-0D59-4F59-A775-3E1B13721638} failed due to the following
error: 80040154 Class not registered (Exception from HRESULT:
0x80040154 (REGDB_E_CLASSNOTREG)).

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FiscPrinter = FiscPrnSys.IFiscPrnIface;
using System.Runtime.InteropServices;
public class Class1
{
    public List<String> salesITems = new List<String>();
    public String user;
    public String shop;
    public double total;
    public double subtotal;
    public String tax;
    public short data = (short) 8;
    public short parity = (short)0;
    public short stopbit = (short)1;

    public void PrintBon()
    {
        FiscPrnSys.IFiscPrnIface FiscPrinter = new FiscPrnSys.FiscPrnIface();     (this     where the program is bringing this exemption)
        FiscPrinter.Connect("COM2", 9600, data, parity, stopbit);
        FiscPrinter.TestPrinter((short)48, "1,0,1", "HELLO");
        FiscPrinter.Sale("TEST ITEM 1", "A", 2, 2, 0);
        FiscPrinter.Sale("TEST ITEM 1", "A", 2, 2, 0);
        FiscPrinter.Sale("TEST STOCK ITEMS ZERO VAT", "B", 2, 2, 0);
        FiscPrinter.Sale("Cooking Fat Always Ultra", "B", 2, 2, 0);
        FiscPrinter.PrintFiscalText("TEST STOCK ITEMS VATABLE"); 
        FiscPrinter.Sale("001000124", "A", 2, 2, 0);
        FiscPrinter.PrintFiscalText("Kimbo 1 Kg");
        FiscPrinter.Sale("598699484", "A", 5, 5, 0);
        FiscPrinter.PrintFiscalText("Tily Cooking Fat");
        FiscPrinter.Sale("484949404", "A", 2, 2, 0);
        FiscPrinter.Sale("Always ULtra", "A", 10, 2, 0);
        FiscPrinter.Disconnect();
    }
    public void setUser(String user)
    {
        this.user = user;
    }
    public void setShop(String shop)
    {
        this.shop = shop;
    }
    public void addSaleItem(String item)
    {
        salesITems.Add(item);
    }
    public void setDouble(double pTotal)
    {
        this.total = pTotal;
    }
    public void setSubTotal(double sTotal)
    {
        this.subtotal = sTotal;
    }
    public void setTax(String pTax)
    {
        this.tax = pTax;
    }
 }

this class is called by another class which is

 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using IncortexLibrary;

 class Program
 {
    static void Main(string[] args)
    {
        Class1 printer = new Class1();
        printer.PrintBon();
    }
 }

Output:

 Unhandled Exception: System.Runtime.InteropServices.COMException: Retrieving the
 COM class factory for component with CLSID {741F1E1B-0D59-4F59-A775-3E1B1372163
8} failed due to the following error: 80040154 Class not registered (Exception f
rom HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
 at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOn
 ly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Bo
  olean& bNeedSecurityCheck)
  at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipChec
  kThis, Boolean fillCache)
  at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean s
 kipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache)
  at System.Activator.CreateInstance(Type type, Boolean nonPublic)
  at System.Activator.CreateInstance(Type type)
 at IncortexLibrary.Class1.PrintBon() in C:\Documents and Settings\woodley-who
 lesalers\My Documents\bst project\Projects\IncortexLibrary\IncortexLibrary\Class
 1.cs:line 29
    at ConsoleApp.Program.Main(String[] args) in C:\Documents and Settings\woodle
 y-wholesalers\My Documents\bst project\Projects\ConsoleApp\ConsoleApp\Program.cs
 :line 15

this have given headache.i have registered the files .dll files in system32 but still it is giving me problems.does it mean i am intiallizing the program in the wrong w ay.the printer is showing to be null.please help because i have tried to walk through the web but am not getting solution

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T13:15:01+00:00Added an answer on June 2, 2026 at 1:15 pm

    this usually due to permission issues set full control in registry

    http://support.software602.com/kb/view.aspx?articleID=987

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below, I have a simple program which uses the CImg library (http://cimg.sourceforge.net/) which iterates
I have a program which doesn't once reference System.I0, coded in vb.net, yet for
I have a .NET 2.0 program that has a reference to Interop.WIA.dll (.NET), which
The whole story: I have created a fancy .NET program which has an installer
I have a vb.net 2.0 program, that has a batch/queue routine to execute tasks
What profilers have you used when working with .net programs, and which would you
I have a program which needs to behave slightly differently on Tiger than on
I have a program which deliberately performs a divide by zero (and stores the
I have a program which has some Textareas / Labels these can be anywhere
I have a program which needs installing on windows 64 boxes. Most of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.