Access Denied Follow

0
Avatar
Legacy Poster

I am using Bartender Automation

Version: 10.1 SR1

Build: 2934

OS: Windows 7 pro[x64] sp1.

 

 

I have successfully created labels via windows application and now I am trying to do the same thing from a *.aspx web page, but I am getting the following error:

 

Retrieving the COM class factory for component with CLSID {B9425246-4131-11D2-BE48-004005A04EDF} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

 

I have tried the following fixes without any results. 

 

1. set my platform target to x86

2. set the target framework to .NET Framework 4

3. added the following lines to web.config:

<startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

4. made sure the application pool has the correct credentials.

5. Set the Application Pool to enable 32-Bit Applications in IIS 7

 

do I need the Enterprise automation version???? or is automation version sufficient?  I am not running in demo mode I have purchased a 3 printer license already...

2 comments

0
Avatar
Legacy Poster
Comment actions Permalink

I have figured out the error and have a solution to the problem.

 

Solution: you have to configure dcom permissions:

1. From the Start menu, click Run and type Dcomcnfg.exe.

2. In Component Services, click Console root, expand Component Services, expand Computers, and then click My Computer. On the Action menu, click Properties.

3. In Access Permissions click Edit Default... and add Network Service(or the identity your asp.net app is running under) to it and give it "Local launch" and "Local Activation" permission. Do the same for <Machine_name>\Users

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Thanks for updating us on the forum.  Sorry that we wasn't able to get back to you quick enough.

Please sign in to leave a comment.