| TALtech Home: Support: ActiveX Control KB: |
Troubleshooting the ActiveX Control and Active Server PagesContents:
How do I find out what the homepage or root directory of my web server is?If you do not know your Server name or the root directory of your web
server, then double click on the webserver icon in your system tray to
find out: If you are running an older version of PWS or FrontPage Web Server, then your icon and PWS manager may look like this:
If this is the case then you should upgrade your edition of Personal Web Server as it may not be configured to run ASP pages. When I submit the Form there is a broken link where the barcode image should beThe most likely causes of this problem are:
When I try to open Barcode.asp I receive "Cannot find Server"Verify that you have started the webserver by double clicking on the icon in the system tray. If a button marked "Start" is available then click on it to start the Webserver. If the button says "Stop" then try stopping and restarting the Web Server, and/or Reboot. Also make sure you are entering the URL correctly. When I try to open Barcode.asp in my web Browser, Frontpage/Interdev (or other Web Authoring Software) opens my asp file for editing. Why?Make sure that you opened the file via http, rather than as a file on your hard drive. In other words, the address line in your Browser should read: "http://your.Server.Name/aspform.htm" not "C:\INETPUB\WWWROOT\aspform.htm". If ASP pages have been associated with a web authoring tool, then if you don't open it via HTTP your Browser will try to run the associated program for you. When I try to open Barcode.asp I receive "HTTP/1.0 501 Not Supported"This means that your Web server is not configured to run ASP pages. Try re-running the setup program for your server or if you are running an older version you should upgrade it. When I try to open Barcode.asp I receive "HTTP Error 403 403.1 Forbidden"This error indicates that the folder into which you copied the barocde.asp file does not have execute permissions. Either move the asp file to a folder that does have execute permissions such as the "Scripts" Folder, or grant execute permissions to that folder. To grant execute permissions on Personal Web Server, open the Personal Web Server Manager, click on "Advanced", double click on the folder you wish to use, then check the "Execute" and "Scripts" checkboxes and click "OK". (On older versions of Personal Web Server click on "Administration", and then change the properties of the folder). When I submit the Form I receive :Server object error 'ASP 0177 : 800401f3' OR:Server object error 'ASP 0177
: 800a0035' These Errors have the following causes and solutions:
OR :Server
object error 'ASP 0177 : 80040112' This Error usually means that the license file (TALBC.LIC) is not being found by the control. The license file must be installed on the system in order for the control to work in active server pages. The license file may be in the wrong folder (the control expects the file to reside in the "Windows" or "WinNT" folder); or it may also mean that the security settings on your server have been set in a way that does not allow access to the Windows folder. If this is the case then you can copy the license file TALBC.LIC to the folder that the TAL Bar Code ActiveX control (TALBarCd.OCX) has been installed to. Note: The DLL files "TALBC.DLL", "TALBCDMX.DLL" and "TALBCMX.DLL" should normally be installed into the Windows\System folder on the web server. If you use an Internet Service Provider that hosts your website, you may find that they will not allow you to install DLLs into the system folder on their server. In this case, you can also copy the three DLL files into the folder where the TAL Bar Code ActiveX control (TALBarCd.OCX) has been installed to. OR:Server object error 'ASP 0177
: 8002801d' For more information on this error and how to fix it see Microsoft Knowledgebase article Q274038. OR:Server object error 'ASP 0177
: 800706be' This error occurs when instantiating a COM object on a remote computer that is located behind a firewall. For more information see Microsoft Knowledgebase article Q193230 If I change the symbology I sometimes get a broken link or a totally different barcode stretched out of proportion, why is this?In our example, we did not include any code to validate the data. Some Barcode symbologies have very strict rules about what can be encoded. UPC-A for instance can only accept a 12 digit numeric message. If you type in "Test" and select UPC-A then the activeX control produces an error and sets the size properties back to the dafaults for code 39 encoded with 1234567890, but it does not save a barcode to disk. You will recall that we allowed for 10 unique barcodes to be generated before it rolls over and starts overwriting. If you haven't yet created 10 barcodes then you will probably get a broken link, otherwise you will get a distorted image of the last number n barcode. To prevent this from happening you should write some code to do some basic data validation before and/or after the form data is submitted using javascript and/or ASP code. You should also create a page or message that appears to inform the user that they entered invalid parameters. Examples of these techniques are now available and can be found in the "Useful code snippets.txt" file, included with the example files above. Some of the properties on the form in your example don't work!If you try to set the Bar Height (for instance) it has no affect on the barcode produced.This is because the form contains more features than the supplied ASP Code supports: only the Message, Comment, Symbology and Image Format properties will set by the ASP Code. As a learning experience you may want to make the other properties on the form function too - this will help you learn to use both the ActiveX Control and ASP. When I try to run ASP Code that initializes the ActiveX Demo my Web Server Locks UpOne of the limitations of the Demo version of our ActiveX Control is a nag screen that appears whenever you initialize the control. In most applications you can simply click "OK" and continue testing the product. However, when testing the control on a Web Server, this message box is not always visible on screen. If you cannot see it, you cannot click on "OK" to dismiss the box and your server appears to hang indefinitely. The easiest way around this problem is to purchase the full version of the control. Like all of our software, the ActiveX Control comes with a 90 day unconditional money back guarantee. You can also see a fully working demonstration of our ActiveX Control used with ASP at freebarcodes.com. However, if you prefer to try before you buy, then search your hard disk for the file TALBCD.DLL, download this replacement DLL, and extract it to the same folder as the original file (usually C:\<Path to Windows>\System or C:\<Path to Windows>\System32). Note: The nag screen will be gone but all other demo limitations - such as the printing of the word "demo" through the barcode and the time outs - will still function as before. When I try to create a tif/bmp/gif/jpg/png/etc file I cannot open the file in any graphics editing applicationsMake sure you have the Plus version of the ActiveX Control. The 1D version of the control does not support saving the image in these file formats so the file you created is a windows metafile image with a different extention (eg .tif). Rename the file to .wmf and insert it into a program that supports that file format to view the image. Call 1-800-722-6004 or 215-496-0222 to purchase an upgrade to the Plus version of the control to gain this functionality. Note: The Demo version is based on the Plus release of the product so it does have this functionality. Related LinksIntroduction to Active Server Pages |
||||||||||||||||||||
|
||||||||||||||||||||