Page 1 of 1

ASP.NET Samples Program Error (80040154)

Posted: Thu Jul 22, 2010 5:30 am
by sofist
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

Re: ASP.NET Samples Program Error (80040154)

Posted: Thu Jul 22, 2010 6:20 am
by ilya
error 80040154 - class not registred

you need to install print2Flash service first

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

Re: ASP.NET Samples Program Error (80040154)

Posted: Tue Jul 27, 2010 5:49 am
by sofist
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

Re: ASP.NET Samples Program Error (80040154)

Posted: Sun Jan 09, 2011 1:12 am
by ravendawson
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.

Re: ASP.NET Samples Program Error (80040154)

Posted: Wed Oct 26, 2011 3:23 am
by Marteria
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

Re: ASP.NET Samples Program Error (80040154)

Posted: Thu Nov 03, 2011 3:18 pm
by staff
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.

Re: ASP.NET Samples Program Error (80040154)

Posted: Thu Nov 03, 2011 3:21 pm
by staff
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.

Re: ASP.NET Samples Program Error (80040154)

Posted: Tue Feb 07, 2012 6:23 am
by Esmi
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.