Troubleshooting Mailer Control Demos

Dundas

Troubleshooting the Mailer Control Demos


The uninstall does not remove the UploadControl.dll and DSMailer.dll

 

The inetinfo.exe process may be referencing the dlls during the uninstall process.  Reboot your computer and remove the dlls manually. 
 
Object variable not set

This will occur as a result of referencing a collection item which does not exist (e.g. using the Form collection to reference a checkbox which is not checked).  

 

To rectify this error check to make sure that the item you are referencing in the collection has the correct spelling.    To test for an empty checkbox use the following line of code: "If objUpload.Form("chkMyCheckbox") Is Nothing Then ... Else...End If".  

 

The relevant Err.Number will be "91".  
 
Server.CreateObject failed.  Invalid class string specified

The specified ProgID of either the Mailer or Upload control is incorrect.  The ProgID of the Mailer control is "Dundas.Mailer", and the ProgID of the Upload control is "Dundas.Upload".  

 

This can also be caused by a control which is not registered.  Register the control in question by using regsvr32.exe.
 
HTTP Error 403 Forbidden: Execute Access Forbidden 
You have not set up the permissions for your ASP files correctly. Use Windows Explorer to set up proper NTFS directory permissions if you are running Win NT or Win 2000 (Read access is required), and also make sure that the Web permissions set in MMC (Microsoft Management Console) are at least Read with Script Execute rights.  Also make sure that the Samples/Images folder has Read permissions as well.
 
HTTP Error 404 File Not Found 
The URL you are specifying in your browser is incorrect.  Determine where your ASP pages are and enter the appropriate URL (e.g. http://127.0.0.1/RelativePathFromRootWebDirectory/PostArticle.ASP).
 
Access is Denied
The appropriate permissions have not been set up for the deletion of files or folders.  You need to either give the default web account (usually IUSR_MACHINENAME) Full Control NTFS permission for the folder in question or you can use the ImpersonateUser method of the Upload control to utilize a user account which does have the right to delete files/folders.  

  VBSCript RunTime Error "800a01ad" ActiveX component can not create object

Either the UploadControl.dll or DSMailer.dll does not have the appropriate permissions.  Make sure that the default web account has Full Control rights for both dll's.

 
Error "800a001e" A required priviledge is not held by the client

This is probably caused by calling the ImpersonateUser method of the Upload control in conjunction with the "Run in Separate Memory Space" box being checked in your Home Directories property page (found in the Microsoft Management Console, or MMC).  To get around this you can either grant the default web account "Act as Part of the Operating System" priviledges or alternatively you can just turn off the "Run in Separate Memory Space" option.  Refer to either the MSDN or the Free Programs Documentation (examine the ImpersonateUser topic) for details on how to grant operating system priviledges.