| |
   
Support Home | Search | FAQ | Library | Order | Forum  
Home : Fontware Products : Font Tools/2D Font Encoders
Q10028 - HOWTO: ASP Object Permission Error when using PDF417/Data...

Error: ASP Object Permission Error when using PDF417/DataMatrix Font Encoders within an ASP project

Products: Morovia PDF417 Fontware, DataMatrix Fontware
Operating Systems: Windows 2000; Windows NT; Windows 2003 Server
Programming Language: ASP

Description

When you create an encoder object in an ASP page, you get an ASP error that Server.CreateObject failed due to permissions:

006~ASP 0178~Server.CreateObject Access Error~The call to 
Server.CreateObject failed while checking permissions. Access is 
denied to this object.. 

This behavior can be easily reproduced by creating the font encoder object within an ASP page that has the default execution permission.

<%
on error resume next
Set encoder = Server.CreateObject("Morovia.PDF417FontEncoder")
if err.number <> 0 then
response.write err.source
response.write err.description
response.write err.number
end if
x = encoder.encode("PDF417DATA")
%>

Solution

To resolve this issue, you must give the IUSR_<machine_name> account permissions to launch and access the encoder object.
Prior to changing the security settings, please check:
  • The encoder ActiveX object is registered properly. This can be done by firing up the GUI Encoder, and make a barcode from the GUI interface. If the barcode is successfully created, the ActiveX object is registered correctly.
  • Make sure that you used the IUSER_<machine_name> as the account to run IIS process. If you have chosen a configuration which requires you to use an account other than the local Internet Guest Account (IUSR_<machine name>), you will need to give that user the necessary permissions mentioned below.

After you verified that the conditions above are met, proceed with the followint steps:

  1. Open control Panel | Administrative Tools | Component Service.
  2. Expand the node Console Root | Component Services | Computers | DCOM Config.
  3. On the right side, find the encoder object. The application name for Morovia PDF417 Font Encoder is PDF417FontEncoderAx; The one for DataMatrix is called MrvDMFEAX3.
  4. Right click on the object and choose Properties. Select the Security Tab.
  5. In the launch Permissions box, choose Customize and click on Edit button. Add your IUSR_<machine_name> account , then click OK.
  6. Repeat step 5 for other three security properties: Access and Configuration Permissions.
  7. After you finish, close all dialogs and reboot your machine.

PDF417 Encoder, COM Security, DCOM, DataMatrix Encoder, 2D Font

Note: if you are using the trial version of the product, please read article: ASP page hangs when calling Encode function of a trial version PDF417/DataMatrix Font Encoder (Article Q10029) for more information.

Related Articles
No Related Articles Available.

Article Attachments
encoder-com-security.gif

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
Excellent Added: 2/16/2007
Created on 9/13/2004.
Last Modified on 9/13/2004.
Last Modified by glitch.
Suggested by Unknown.
Article has been viewed 4737 times.
Rated 3 out of 10 based on 7 votes.
Print Article
Email Article