interop.MODI.dll not working in windows server 2012 - asp.net

I am using Microsoft Document imaging tool for OCR functionality in my asp.net application. I have referred interop.MODI.dll in my project. It works fine in my local windows 7 dev environment. But when I move it to server which is winodws server 2012 environment. Its gives me a error.
Error Message: Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
I have installed Microsoft document imaging tool in server.
Could anyone help me with this

Got Solution. Changed the Identity settings in IIS this solved the issue.

Related

Crystal Reports Not Working in Web Application: COMException (0x8007007F)

I am currently working on upgrading an ASP.NET web application to use Crystal Reports SP31. When running the web application on our web server, I get the following error:
System.Runtime.InteropServices.COMException (0x8007007F): Retrieving the COM class factory for component with CLSID {F734A321-8381-4FFD-A614-139E8906DC83} failed due to the following error: 8007007f The specified procedure could not be found. (Exception from HRESULT: 0x8007007F).
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.CreateRptDoc()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Initialize()
at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
The Crystal Reports runtime (32-bit) is installed on the web server, and its IIS is configured to allow 32-bit applications. I've run the same web application on my own local machine with no problems.
Any advice would be greatly appreciated.
Update - I've identified the cause of the issue. The server also has Shibboleth 3.3.0 installed on it, and apparently that "breaks" the Crystal Reports runtime. Unfortunately, the Shibboleth application is required, so I can't just uninstall it.
Does anyone have any suggestions on what to do here?

SAP Business One DI API for ASP.NET Web Application

I developed one console application using DI API(x64). Now I am trying to develop a web application using the same code but getting the following error in the very first line
SAPbobsCOM.Company sboCompany = new SAPbobsCOM.Company(); //in this line
Retrieving the COM class factory for component with CLSID {632F4591-AA62-4219-8FB6-22BCF5F60090} failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)).
I have tried changing Platform target (x84, any, x64) but no luck. I also have Enabled 32-Bit Applications on IIS.
I am using Visual studio 2017 community version and Windows 10(x64).
I have no idea why I am getting this error as its perfectly working for my console application. I have seen some are suggesting to use DI Server for web application but I am wondering if its possible to use DI API as I won't have much traffic.
Any help would be highly appreciated.

Retrieving the COM class factory for component with CLSID failed due to:80040154 Class not registered (Exception from HRESULT: 0x80040154

I have a application written in asp.net VB; it runs well on my production server. However, when I executed on my desktop / or development server, I get the 80040154 related error mentioned in my header. While doing some research, it was mentioned that the issue is a result of the target platform being set to run on any computer and that I need to set it to run on 64-bit. Using Visual Studio 2012 Ultimate, I performed the following Build >> Configuration Manager >> ... and then under "Active Solution Platform" >> I selected "New" and added x64 to list. ...I still get the error: Retrieving the COM class factory for component with CLSID {E916A72F-7F85-4642-A2CB-CD13DAC01F55} failed due to the following error: 80040154.
Label As I mentioned, it works on my live server, and I'm trying to get it to run on my development server. ..Could I please get some assistance? Thanks in Advance.

not able to deploy crystal report Visual Studio 2010 website at webserver

I have developed my application in vs10 using crystal report 13.0.2000.0, my Application works fine on development machine, but after deployment on webserver I m getting following error:
Retrieving the COM class factory for component with CLSID {4DB2E2BB-78E6-4AEA-BEFB-FDAAB610FD1B} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
the environment at server is Windows 2008 R2 in 32 bit.
I have installed following
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
pls help me on this issue.
Regards,
Maybe IIS user or ASP.NET user doesn't have the right to access Reports Folder, please check
My Issue was resolved after giving the IIS User access to the C:\Windows\Temp folder. Crystal uses this directory and if IIS user does not have access, you might get above error.

PDFCreator and ASP.NET

Has anyone managed to get PDFCreator running on an ASP.NET 2.0 website ?
On my development machine with Visual Studio webserver, it works just fine after following this procedure :
create a com interop dll with tlbimp
reference this dll
write some code to use it
However, when I deploy it to our test server, it fails miserably with this error :
Retrieving the COM class factory for component with CLSID {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {082391C9-8188-4364-B4FD-66A1524B2097} failed due to the following error: 80070005.
And I can't find this component in DCOMCNFG.msc.
Our server configuration :
Windows 2003
Asp.net 2.0
MS Office XP
PDFCreator 0.9.0
The problem is that IIS process (and so ASP.Net processes) run as the SYSTEM account, wich does not have any printers set up.
You have two options:
1 - Set up the printers for the system account using the article provided by Craig Lebakken
2 - Impersonate the ASP.Net site to use an account wich has the printers set up
The following Microsoft Knowledgebase article describes the problem and a solution:
COM objects fail to print when called from ASP

Resources