Author |
Topic |
|
natty
Starting Member
United States
31 Posts |
Posted - 27 April 2008 : 11:35:39
|
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
|
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.
|
|
|
natty
Starting Member
United States
31 Posts |
|
phy1729
Average Member
USA
589 Posts |
Posted - 27 April 2008 : 14:48:32
|
Talk to your system administrator. |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
gary b
Junior Member
USA
267 Posts |
Posted - 27 April 2008 : 16:53:09
|
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. |
|
|
Podge
Support Moderator
Ireland
3775 Posts |
|
natty
Starting Member
United States
31 Posts |
Posted - 27 April 2008 : 22:38:01
|
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 |
|
|
|
Topic |
|