ASPMail Error: CreateObject Failed/Invalid Class

Results 1 to 2 of 2

Thread: ASPMail Error: CreateObject Failed/Invalid Class

  1. #1
    Join Date
    Dec 1969

    Default ASPMail Error: CreateObject Failed/Invalid Class

    Sorry if this is fundamental to most of you, but I can&#039t seem to instantiate this without getting the error that follows. Could anyone offer any suggestions? Thanks!<BR>------<BR>Set Mailer = Server.CreateObject("SMTPsvg.Mailer") &#039this is line 173<BR>Mailer.FromName = name<BR>Mailer.FromAddress = email<BR>Mailer.RemoteHost = server...<BR>Mailer.AddRecipient friendname..., friendemail...<BR>Mailer.Subject = subject...<BR>Mailer.BodyText = message...<BR>------<BR>ERROR:<BR><BR>Server object error &#039ASP 0177 : 800401f3&#039 <BR><BR>Server.CreateObject Failed <BR><BR>/email.asp, line 173 <BR><BR>Invalid class string <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: ASPMail Error: CreateObject Failed/Invalid Cl

    Here are a few possibilties:<BR>-You really didn&#039t run regsvr32 on the server after all. <BR>-You ran regsvr32 but it reported an error. <BR>-Someone modified security on part of the registry that&#039s preventing the OLE subsystem from reading all or part of the HKEY_CLASSES_ROOT tree. <BR>-The name of the object you are trying to create was mispelled or is incorrect. <BR>-Determine if it&#039s a permissions problem <BR>Add the anonymous user (used by IIS) to the Administrators group. The test page then worked, proving it was a permissions problem. Do not forget to remove the anonymous IIS user from the Admin group! <BR>-Determine if it is a file permissions problem: <BR>After removing the Anonymous user from the Admin group, add failure auditing to the file (smtpsvg.dll), which will determine if the file was ever accessed (by the lack of the failure event). If it isn&#039t, this makes it clear that the failure is prior to file access but go ahead and check file/directory permissions to make sure the anonymous IIS user can access the file. <BR>-Check registry permissions <BR>Using Regedt32, do find on smtpsvg.dll. Check the permissions for the key (and sub keys), and make sure that the anonymous user has read rights. Do a find on the class-id, which contains the location value, and version, and check those permissions as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts