Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 ASP email not working
 New Topic  Topic Locked
 Printer Friendly
Author  Topic Next Topic  

natty
Starting Member

United States
31 Posts

Posted - 27 April 2008 :  11:35:39  Show Profile
Hi all,

Wondering if I could get some input on this:

When I try to implement an ASP contact form on my site, I get the following error:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/contact-inc.asp, line 61

800401f3


Line 61 is this:
Set mail = Server.CreateObject("CDONTS.NewMail")

I'm guessing it's a permissions issue from what I've read online. However, my Snitz forum is working fine, with email and everything. I don't have access to changing the permissions on my site, and it's not really an option (long story). Is there another way of implementing this script? Something in tune with the forums, maybe, since that one works? I don't have CGI or PHP, so those are out of the question.

Thanks!

-------------------
http://www.sumwebdesign.com
http://www.tppsych.net

phy1729
Average Member

USA
589 Posts

Posted - 27 April 2008 :  11:55:39  Show Profile
quote:
Originally posted by Stephen Genusa

Q: AspMail never works. I get Server object error 'ASP 0177:800401f3'. What is the problem?

A: This error means "Invalid class string" -- in other words the call to CreateObject failed because the name object cannot be found by the OLE sub-system. Causes include:

1. You really didn't run regsvr32 on the server after all.
2. You ran regsvr32 but it reported an error.
3. Someone modified security on part of the registry that's preventing the OLE subsystem from reading all or part of the HKEY_CLASSES_ROOT tree.
4. The name of the object you are trying to create was mispelled or is incorrect.
5. Determine if it's a permissions problem

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!

6. Determine if it is a file permissions problem:

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't, 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.

7. Check registry permissions

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.

Go to Top of Page

natty
Starting Member

United States
31 Posts

Posted - 27 April 2008 :  13:06:07  Show Profile
Right, I've seen this before. However, I don't have access to do any of these things. Is there an alternative script or approach I can try?

-------------------
http://www.sumwebdesign.com
http://www.tppsych.net
Go to Top of Page

phy1729
Average Member

USA
589 Posts

Posted - 27 April 2008 :  14:48:32  Show Profile
Talk to your system administrator.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 27 April 2008 :  15:57:24  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
When you go to the Email Server Config section of your admin area, which email components are listed ?

Are you on Windows 2003 ? If so, you should be using CDOSYS not CDONTS.

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

gary b
Junior Member

USA
267 Posts

Posted - 27 April 2008 :  16:53:09  Show Profile  Visit gary b's Homepage
Follow the advice Podge gave... CDONTS is deprecated. It was replaced by CDOSYS.

I'll bet a pot of coffee your hosting company does not support CDONTS. A quick call to your hosting company should put you on the correct track.
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 27 April 2008 :  17:58:38  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message
This will tell you which components are installed on the server - http://www.bier-voting.de/objcheck/

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

natty
Starting Member

United States
31 Posts

Posted - 27 April 2008 :  22:38:01  Show Profile
Podge, you're absolutely right. I discovered a few hours ago that that was the problem: using CDOSYS vs. CDONTS. I figured it out with the help of my Snitz forum, heh... since emails were getting sent from my Snitz forum, I checked out the code for that and realized that it was CDOSYS. What that is still baffles me, but knowing that's what I should be using to configure my ASP email scripts is enough for now.

-------------------
http://www.sumwebdesign.com
http://www.tppsych.net
Go to Top of Page
   Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2019 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07