VBscript runtime error 'Type mismatch on line 61'
6 February 2003
When attempting to log into AnyView Browser, the VBscript runtime error "Type mismatch on line 61" is displayed.
This error occurs when the AnyView.ini file is missing from the AnyView Web application file. Here are the reasons that the AnyView.ini file can be missing:
- The AnyView.ini file was moved or deleted from the AnyView Web Application directory.
- The AnyView DSN Setup window was not used to setup the DSN.
- The incorrect path to the AnyView Web Application directory was entered in the AnyView DSN Setup window.
- The information was entered in the AnyView DSN Setup window, but it was not saved before the window was closed.
IMPORTANT NOTE: If you are changing your setup for a previously installed and running AnyView Web Application, you must unload the AnyView Web Application before making any changes to the Paths, DSNs, or the anyview.ini file.
Here are the steps to unload the AnyView web application:
- From the IIS machine, launch the Internet Services Manager.
- Navigate to the AnyView Web Application. (In a standard installation, this would be in the Default Web Site folder.)
- Right-click on AnyView and select 'Properties'.
- From the Virtual Directory tab, click 'Unload' then 'OK'.
Now that the AnyView Web Application is unloaded, you must create the AnyView.ini file in the correct directory with the AnyView DSN Setup window.
Here are the steps to follow to setup the AnyView DSN:
- Launch the AnyView DSN Setup Window. Using eEnterprise or Dynamics, open the AnyView DSN Setup window. (In a standard installation, this window can be opened by clicking on the Utilities menu, selecting 'System', and then selecting 'AV DSN Setup' from the System Utilities palette.)
- Map to the AnyView Web Site files on the IIS Server. Enter the physical path of the directory containing your AnyView Web Site files. This is the path you entered during the installation process. (In a standard installation, the path would be c:\Accountable\AnyView on the hard drive of the IIS machine.)
- Map to a temporary folder. Enter the path to an existing temporary folder. AnyView needs a folder on the IIS server in which to store temporary information when processing export to Word and Excel functionality.
- Enter the System DSN. Use the dropdown list to enter the System DSN. For SQL Server databases you may use any DSN that points to your SQL Server. For PSQL, the DSN can be any DSN that points to DDFs generated for any of your Dynamics Companies. For Faircom Ctree databases, the DSN must point to a .db file that contains paths to the System Files.
- Enter the Session Time out setting. This setting determines the amount of inactivity time in minutes that a user has before being automatically logged out of AnyView Browser.
- Enter the Company DSNs. Use the scrolling window dropdown lists to select the DSNs created for each of your Company databases.
- If using a SQL Server database, enter a valid Login and Password for External Users.
- Save your settings. Once you have completed the AnyView DSN Setup fields, click 'Save' to save your settings. If you have correctly performed these steps, you will have created an anyview.ini file on the IIS Server in the AnyView Web Application directory.
Below is a link to a screenshot example of an AnyView DSN Setup window configured for The World Online, Inc.
Here is an example of what The World Online, Inc. anyview.ini file would look like when opened in notepad:
COMPANYDSN=localeE70;TWO;The World Online, Inc.
If you have followed all of these steps, but are still getting the error message, please contact your VAR or Accountable Software's Technical Support Team for further assistance.
Email: Accountable Software Technical Support Team
Telephone: 484-875-0600 ext. 9