Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BarTender Error: Retrieving the COM class factory for component with CLSID in Asp.Net

enter image description here

I selected the BarTender from Com tab on preferences screen and add BarTender into my project.

enter image description here

enter image description here

when I execute the project with Ctrl+F5 on my local computer I can print the barcode smoothly.

enter image description here

But when I publish my project under wwwroot I get an error as follows,

enter image description here

Also I set the project platform “ x86 – x64 Any Cpu” but nothing was changed.

PS: I am giving the screenshots as links because of I have not enough points. Sorry for this

like image 564
Barış Avatar asked Dec 04 '25 19:12

Barış


1 Answers

It's an EXE server, so it looks like you need to give Local Launch and Local Activation permissions to the COM Class for the identity that your web site is running under. You can do this with DCOMCnfg.exe. Have a look at the Application Pool identity and make sure it has the appropriate rights. A good way to test the problem is to set it to "EVERYONE". If that works then it's definately your problem, but DO NOT leave it set to "EVERYONE". Once you've proven this is the issue, you'll need to set the activation, launch and probably access permissions correctly.

like image 194
cirrus Avatar answered Dec 07 '25 11:12

cirrus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!