ASP.NET Samples Program Error (80040154)

Using OLE Automation API
Post Reply
sofist
Posts:3
Joined:Thu Jul 22, 2010 5:18 am
ASP.NET Samples Program Error (80040154)

Post by sofist » Thu Jul 22, 2010 5:30 am

Hey guys,

I am getting this following error when i try to run the Program from Print2Flash\Automation\Samples\ASP.NET.

Error : File could not be converted. Retrieving the COM class factory for component with CLSID {7F8A0980-3F6E-421B-87EA-4D4A077B1DDD} failed due to the following error: 80040154.


When I load the image in file open dialog and clicks convert button, i am getting this error message and not proceeding the page further. Please guide me how to use SDK samples in my program / code at runtime..

I am using Win 7 ..

Thanks & regards,
Sairam

ilya
Posts:1
Joined:Thu Jul 22, 2010 6:13 am

Re: ASP.NET Samples Program Error (80040154)

Post by ilya » Thu Jul 22, 2010 6:20 am

error 80040154 - class not registred

you need to install print2Flash service first

see http://print2flash.com/help/SettingupAu ... ccount.php for details

sofist
Posts:3
Joined:Thu Jul 22, 2010 5:18 am

Re: ASP.NET Samples Program Error (80040154)

Post by sofist » Tue Jul 27, 2010 5:49 am

Hey Ilya,

Can u pls explain in detail. I followed ur link and tried in my program.
To solve this problem, you may specify a specific Windows user account which Print2Flash OLE Automation API objects will use to launch printing applications and convert documents to Flash. This is achieved by employing a special Print2Flash Windows service. You can configure this service in Print2Flash Service Configuration window.

First I installed the application, I opened the Print2Flash application [Server Mode] -> Options -> Print2Flash Service Configuration, I 'm getting the error message as "Acess Denied".

Pls help me to make this program run without errors...

Thanks in Advance,
Sairam

ravendawson
Posts:1
Joined:Sat Jan 08, 2011 2:40 pm

Re: ASP.NET Samples Program Error (80040154)

Post by ravendawson » Sun Jan 09, 2011 1:12 am

hi!, also have this problem when trying to use the sample from the p2f sdk here is the error that print. "File could not be converted. Retrieving the COM class factory for component with CLSID {7F8A0980-3F6E-421B-87EA-4D4A077B1DDD} failed due to the following error: 80040154."

what specific step to do to get rid this error? and to make the p2f automation work. I'm running on IIS7 win7.

__________________
A certain site about program errors has a tool that could help fix certain program errors.

Marteria
Posts:1
Joined:Wed Oct 26, 2011 3:18 am

Re: ASP.NET Samples Program Error (80040154)

Post by Marteria » Wed Oct 26, 2011 3:23 am

This problem could be caused by not registering/installing the DLL correctly or if permissions are not configured properly to allow the user running the ASP.net application access to the DLL.
You need to uninstall the old COM object using regsvr32:
regsvr32 -u <dllName>.dll

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: ASP.NET Samples Program Error (80040154)

Post by staff » Thu Nov 03, 2011 3:18 pm

sofist wrote:Hey Ilya,

Can u pls explain in detail. I followed ur link and tried in my program.
To solve this problem, you may specify a specific Windows user account which Print2Flash OLE Automation API objects will use to launch printing applications and convert documents to Flash. This is achieved by employing a special Print2Flash Windows service. You can configure this service in Print2Flash Service Configuration window.

First I installed the application, I opened the Print2Flash application [Server Mode] -> Options -> Print2Flash Service Configuration, I 'm getting the error message as "Acess Denied".

Pls help me to make this program run without errors...

Thanks in Advance,
Sairam
If you get Access Denied message when opening Print2Flash Service Configuration Window, you need to launch Print2Flash Application in administrator mode by opening "Programs/Print2Flash 3" submenu of Windows start menu, right clicking the Print2Flash Printing Application icon and choosing Run as Administrator. Then Print2Flash Service Configuration Window should be opened without errors and work normally.

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: ASP.NET Samples Program Error (80040154)

Post by staff » Thu Nov 03, 2011 3:21 pm

ravendawson wrote:hi!, also have this problem when trying to use the sample from the p2f sdk here is the error that print. "File could not be converted. Retrieving the COM class factory for component with CLSID {7F8A0980-3F6E-421B-87EA-4D4A077B1DDD} failed due to the following error: 80040154."

what specific step to do to get rid this error? and to make the p2f automation work. I'm running on IIS7 win7.
Please read the Readme.htm file located in the SDK sample folder (for example, in this SDK archive folder: Automation\Samples\ASP.NET) and follow instructions set out there for configuring the Print2Flash Service.

Esmi
Posts:3
Joined:Tue Feb 07, 2012 6:09 am

Re: ASP.NET Samples Program Error (80040154)

Post by Esmi » Tue Feb 07, 2012 6:23 am

I frequently encounter the problem, when i got IIS's default error pages usually located in c:\winnt\help\iishelp\common. I don't know how to fix this problem correctly, since page doesn't have my site's look and feel.

Post Reply