Permission Denied '800a0046' - but why?

This is a discussion on "Permission Denied '800a0046' - but why?" within the Classic ASP section. This forum, and the thread "Permission Denied '800a0046' - but why? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 29th, 2006, 19:59
New Member
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Permission Denied '800a0046' - but why?

Bit of newbie to asp but I have created a script for sending emails out for registration but I am getting the error:
Microsoft VBScript runtime error '800a0046'
Permission denied
/clpmarket/Market/aspmkrfn.asp, line 350
(line 350 being objMail.Send)
Now I am using the smtp from my exchnage server to send these email and I wasn't where the error orginates (the asp is on a hosted service for now I am using 7host.com and brinkster.com - 7hosts gives me error message and brinkster just says page cannot be displayed). Also the smtp works fine I have used smtp diagnostics to try sending an email throught that.
The error line 350 is from nt/2000 machine (and since my exhange server is on 2003 I assume it is not there that the error is - let me know if I am wrong).
Basically is this something that you get with free hosting and will it get sorted if I pay for a hosting service? If not how can I sort out this problem?
This is the full code:
If sIISVer <= "5.0" Then
' NT / 2000 using CDONTS
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = sFrEmail
objMail.To = sToEmail
If sCcEmail <> "" Then
objMail.Cc = sCcEmail
End If
If sBccEmail <> "" Then
objMail.Bcc = sBccEmail
End If
If LCase(sFormat) = "html" Then
objMail.BodyFormat = 0 ' 0 means HTML format, 1 means text
objMail.MailFormat = 0 ' 0 means MIME, 1 means text
End If
objMail.Subject = sSubject
objMail.Body = sMail
objMail.Send
Set objMail = Nothing
Else
' XP / 2003 using CDO
' Set up Mail
Set objMail = Server.CreateObject("CDO.Message")
sSmtpServer = "smtp.hoster.co.uk"
iSmtpServerPort = 25
If (sIISVer < "6.0") Or (sSmtpServer <> "" And LCase(sSmtpServer) <> "localhost") Then ' XP or not localhost
' Set up Configuration
Set objConfig = CreateObject("CDO.Configuration")
objConfig.Fields("http://schemas.microsoft.com/cdo/con...tion/sendusing") = 2 ' cdoSendUsingMethod = cdoSendUsingPort
objConfig.Fields("http://schemas.microsoft.com/cdo/con...ion/smtpserver") = sSmtpServer ' cdoSMTPServer
objConfig.Fields("http://schemas.microsoft.com/cdo/con...smtpserverport") = iSmtpServerPort ' cdoSMTPServerPort
objConfig.Fields.Update
Set objMail.Configuration = objConfig ' Use Configuration
End If
objMail.From = sFrEmail
objMail.To = sToEmail
If sCcEmail <> "" Then
objMail.Cc = sCcEmail
End If
If sBccEmail <> "" Then
objMail.Bcc = sBccEmail
End If
If LCase(sFormat) = "html" Then
objMail.HtmlBody = sMail
Else
objMail.TextBody = sMail
End If
objMail.Subject = sSubject
objMail.Send
Set objMail = Nothing
Set objConfig = Nothing
End If

End Sub
Reply With Quote

  #2 (permalink)  
Old Jan 30th, 2006, 13:18
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Permission Denied '800a0046' - but why?

I would check the permissions on the dll/exe of your mail program. It's likely not an error with your code with a message like that.
Reply With Quote
  #3 (permalink)  
Old Jan 30th, 2006, 15:11
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Permission Denied '800a0046' - but why?

I doubt your free asp service will have access to out onto the net beyond your own server.

If I maintained a FREE hosting service like that, then it would be first thing I would block.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
  #4 (permalink)  
Old Jan 30th, 2006, 15:13
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Re: Permission Denied '800a0046' - but why?

..... additionally, they may have set restrictions on cdosys.dll and cdonts.dll to prevent people using their free accounts for spamming.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
permission, denied, 800a0046, but

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
access denied benbramz PHP Forum 10 Aug 19th, 2005 11:01
Image copy denied LadyT Graphics and 3D 7 May 7th, 2005 10:26


All times are GMT. The time now is 20:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43