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


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

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

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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With