|
 |
asp_cdo thread: Re: error 0x800A0046' Permission Denied
Message #1 by Eli Schilling <eschilli@t...> on Fri, 19 Oct 2001 16:12:06 -0700
|
|
I have a Windows 2000 web server with SMTP services installed. I have a
simple sendmail page that does:
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
ObjNewMail.To = "me@h..."
.from = "you@t..."
.subject = "Test"
.Body = "This is a test."
.send
Set ObjNewMail = nothing
Now, this particular directory is set for Anonymous access
(IUSR_Servername). I have givent he IUSR_Servername account full access to
the Mailroot folder and everything underneath. I have also tried making the
IUSR account either a Local Administrator or a Power User on this web
server. I even added this user to the \Winnt directory and all
subdirectories with "modify" permissions.
No matter what, I get this errer:
Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied
/cdonts.asp, line 9 (<---- this line being .Send)
Now, if I set the permissions on the directory to NT Password Auth and
access the page using my account (domain admin) it works just fine.
Any ideas?
Message #2 by "Siegfried Weber" <sweber@c...> on Mon, 22 Oct 2001 11:13:52 +0200
|
|
It might be a registry issue. Check
http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
might be useful.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Saturday, October 20, 2001 1:12 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> I have a Windows 2000 web server with SMTP services installed. I have a
> simple sendmail page that does:
>
> Set objNewMail = Server.CreateObject("CDONTS.NewMail")
>
> ObjNewMail.To = "me@h..."
> .from = "you@t..."
> .subject = "Test"
> .Body = "This is a test."
> .send
>
> Set ObjNewMail = nothing
>
>
> Now, this particular directory is set for Anonymous access
> (IUSR_Servername). I have givent he IUSR_Servername account full access
> to the Mailroot folder and everything underneath. I have also tried
> making the IUSR account either a Local Administrator or a Power User on
> this web server. I even added this user to the \Winnt directory and all
> subdirectories with "modify" permissions.
>
> No matter what, I get this errer:
>
> Error Type:
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
> /cdonts.asp, line 9 (<---- this line being .Send)
>
> Now, if I set the permissions on the directory to NT Password Auth and
> access the page using my account (domain admin) it works just fine.
>
> Any ideas?
Message #3 by "Morgan, Rob" <Rob.Morgan@o...> on Mon, 22 Oct 2001 06:43:47 -0400
|
|
Make sure that system has full control to the mailroot and everything under
it.
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Monday, October 22, 2001 5:14 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
It might be a registry issue. Check
http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
might be useful.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Saturday, October 20, 2001 1:12 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> I have a Windows 2000 web server with SMTP services installed. I have a
> simple sendmail page that does:
>
> Set objNewMail = Server.CreateObject("CDONTS.NewMail")
>
> ObjNewMail.To = "me@h..."
> .from = "you@t..."
> .subject = "Test"
> .Body = "This is a test."
> .send
>
> Set ObjNewMail = nothing
>
>
> Now, this particular directory is set for Anonymous access
> (IUSR_Servername). I have givent he IUSR_Servername account full access
> to the Mailroot folder and everything underneath. I have also tried
> making the IUSR account either a Local Administrator or a Power User on
> this web server. I even added this user to the \Winnt directory and all
> subdirectories with "modify" permissions.
>
> No matter what, I get this errer:
>
> Error Type:
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
> /cdonts.asp, line 9 (<---- this line being .Send)
>
> Now, if I set the permissions on the directory to NT Password Auth and
> access the page using my account (domain admin) it works just fine.
>
> Any ideas?
Message #4 by Eli Schilling <eschilli@t...> on Mon, 22 Oct 2001 09:37:03 -0700
|
|
Siegfried, lots of useful stuff there (another new bookmark for my list) but
it didn't have the answer I was looking for.
For testing purposes I have now given "everyone" modify access to the
mailroot folder and all subdirectories. I am still not able to send CDONTS
messages using anonymous access.
Thanks in advance!
-Eli
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Monday, October 22, 2001 2:14 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
It might be a registry issue. Check
http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
might be useful.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Saturday, October 20, 2001 1:12 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> I have a Windows 2000 web server with SMTP services installed. I have a
> simple sendmail page that does:
>
> Set objNewMail = Server.CreateObject("CDONTS.NewMail")
>
> ObjNewMail.To = "me@h..."
> .from = "you@t..."
> .subject = "Test"
> .Body = "This is a test."
> .send
>
> Set ObjNewMail = nothing
>
>
> Now, this particular directory is set for Anonymous access
> (IUSR_Servername). I have givent he IUSR_Servername account full access
> to the Mailroot folder and everything underneath. I have also tried
> making the IUSR account either a Local Administrator or a Power User on
> this web server. I even added this user to the \Winnt directory and all
> subdirectories with "modify" permissions.
>
> No matter what, I get this errer:
>
> Error Type:
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
> /cdonts.asp, line 9 (<---- this line being .Send)
>
> Now, if I set the permissions on the directory to NT Password Auth and
> access the page using my account (domain admin) it works just fine.
>
> Any ideas?
Message #5 by "Siegfried Weber" <sweber@c...> on Tue, 23 Oct 2001 08:17:17 +0200
|
|
The only thing that comes in mind is that the pickup directory path
stored in the IIS metabase doesn't point to an existing directory (or to
a directory your account doesn't have permissions).
See if you can get hold of a Microsoft tool called "Metaedit". Search
the Microsoft Knowledge Base about it. Install it on that machine and
browse the IIS metabase to find those settings (warning: DO NOT use
metaedit for this purpose if you have Exchange 2000 installed).
The IIS metabase is pretty easy to understand and you should be able to
find the appropriate value pretty easy.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Monday, October 22, 2001 6:37 PM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> Siegfried, lots of useful stuff there (another new bookmark for my
list)
> but
> it didn't have the answer I was looking for.
>
> For testing purposes I have now given "everyone" modify access to the
> mailroot folder and all subdirectories. I am still not able to send
> CDONTS
> messages using anonymous access.
>
> Thanks in advance!
>
> -Eli
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Monday, October 22, 2001 2:14 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
>
> It might be a registry issue. Check
> http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
> might be useful.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Saturday, October 20, 2001 1:12 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
> >
> > I have a Windows 2000 web server with SMTP services installed. I
have a
> > simple sendmail page that does:
> >
> > Set objNewMail =3D Server.CreateObject("CDONTS.NewMail")
> >
> > ObjNewMail.To =3D "me@h..."
> > .from =3D "you@t..."
> > .subject =3D "Test"
> > .Body =3D "This is a test."
> > .send
> >
> > Set ObjNewMail =3D nothing
> >
> >
> > Now, this particular directory is set for Anonymous access
> > (IUSR_Servername). I have givent he IUSR_Servername account full
access
> > to the Mailroot folder and everything underneath. I have also tried
> > making the IUSR account either a Local Administrator or a Power User
on
> > this web server. I even added this user to the \Winnt directory and
all
> > subdirectories with "modify" permissions.
> >
> > No matter what, I get this errer:
> >
> > Error Type:
> > Microsoft VBScript runtime (0x800A0046)
> > Permission denied
> > /cdonts.asp, line 9 (<---- this line being .Send)
> >
> > Now, if I set the permissions on the directory to NT Password Auth
and
> > access the page using my account (domain admin) it works just fine.
> >
> > Any ideas?
>
>=20
Message #6 by "Morgan, Rob" <Rob.Morgan@o...> on Wed, 24 Oct 2001 07:16:07 -0400
|
|
Just $.02 worth
Have you tried to reinstalling SMTP? It only takes a few minutes. If you
do, make sure you don't install in a directory that might be a web or have
frontpage extentions. I have been install mine it in the root of a dive.
When you send it the mail see if it shows up in the queued directory. Could
it be that the place you are sending the mail to is not accepting it?
If your using frontpage to edit, try making a form that send email using the
extentions and see if it goes.
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Tuesday, October 23, 2001 2:17 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
The only thing that comes in mind is that the pickup directory path
stored in the IIS metabase doesn't point to an existing directory (or to
a directory your account doesn't have permissions).
See if you can get hold of a Microsoft tool called "Metaedit". Search
the Microsoft Knowledge Base about it. Install it on that machine and
browse the IIS metabase to find those settings (warning: DO NOT use
metaedit for this purpose if you have Exchange 2000 installed).
The IIS metabase is pretty easy to understand and you should be able to
find the appropriate value pretty easy.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Monday, October 22, 2001 6:37 PM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> Siegfried, lots of useful stuff there (another new bookmark for my
list)
> but
> it didn't have the answer I was looking for.
>
> For testing purposes I have now given "everyone" modify access to the
> mailroot folder and all subdirectories. I am still not able to send
> CDONTS
> messages using anonymous access.
>
> Thanks in advance!
>
> -Eli
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Monday, October 22, 2001 2:14 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
>
> It might be a registry issue. Check
> http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
> might be useful.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Saturday, October 20, 2001 1:12 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
> >
> > I have a Windows 2000 web server with SMTP services installed. I
have a
> > simple sendmail page that does:
> >
> > Set objNewMail = Server.CreateObject("CDONTS.NewMail")
> >
> > ObjNewMail.To = "me@h..."
> > .from = "you@t..."
> > .subject = "Test"
> > .Body = "This is a test."
> > .send
> >
> > Set ObjNewMail = nothing
> >
> >
> > Now, this particular directory is set for Anonymous access
> > (IUSR_Servername). I have givent he IUSR_Servername account full
access
> > to the Mailroot folder and everything underneath. I have also tried
> > making the IUSR account either a Local Administrator or a Power User
on
> > this web server. I even added this user to the \Winnt directory and
all
> > subdirectories with "modify" permissions.
> >
> > No matter what, I get this errer:
> >
> > Error Type:
> > Microsoft VBScript runtime (0x800A0046)
> > Permission denied
> > /cdonts.asp, line 9 (<---- this line being .Send)
> >
> > Now, if I set the permissions on the directory to NT Password Auth
and
> > access the page using my account (domain admin) it works just fine.
> >
> > Any ideas?
Message #7 by "Alex Shiell, ITS, EC, SE" <alex.shiell@s...> on Wed, 24 Oct 2001 12:34:48 +0100
|
|
Is it possible to reinstall SMTP without re-applying the whole Option pack?
I have the exact same problem as detailed below, but on NT4/IIS4 with Site
Server.
Like Eli I have given the IUSER far too many rights just to get round it,
but no luck. All directories are Full Control for everyone, but permission
is still denied.
Interestingly it works when I put the code into a vbs file and run it under
WSH, but not when I put the code into an ASP and run it as a user
authenticated with site server.
-----Original Message-----
From: Morgan, Rob [mailto:Rob.Morgan@o...]
Sent: 24 October 2001 12:16
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
Just $.02 worth
Have you tried to reinstalling SMTP? It only takes a few minutes. If you
do, make sure you don't install in a directory that might be a web or have
frontpage extentions. I have been install mine it in the root of a dive.
When you send it the mail see if it shows up in the queued directory. Could
it be that the place you are sending the mail to is not accepting it?
If your using frontpage to edit, try making a form that send email using the
extentions and see if it goes.
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Tuesday, October 23, 2001 2:17 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
The only thing that comes in mind is that the pickup directory path
stored in the IIS metabase doesn't point to an existing directory (or to
a directory your account doesn't have permissions).
See if you can get hold of a Microsoft tool called "Metaedit". Search
the Microsoft Knowledge Base about it. Install it on that machine and
browse the IIS metabase to find those settings (warning: DO NOT use
metaedit for this purpose if you have Exchange 2000 installed).
The IIS metabase is pretty easy to understand and you should be able to
find the appropriate value pretty easy.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Monday, October 22, 2001 6:37 PM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> Siegfried, lots of useful stuff there (another new bookmark for my
list)
> but
> it didn't have the answer I was looking for.
>
> For testing purposes I have now given "everyone" modify access to the
> mailroot folder and all subdirectories. I am still not able to send
> CDONTS
> messages using anonymous access.
>
> Thanks in advance!
>
> -Eli
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Monday, October 22, 2001 2:14 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
>
> It might be a registry issue. Check
> http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
> might be useful.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Saturday, October 20, 2001 1:12 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
> >
> > I have a Windows 2000 web server with SMTP services installed. I
have a
> > simple sendmail page that does:
> >
> > Set objNewMail = Server.CreateObject("CDONTS.NewMail")
> >
> > ObjNewMail.To = "me@h..."
> > .from = "you@t..."
> > .subject = "Test"
> > .Body = "This is a test."
> > .send
> >
> > Set ObjNewMail = nothing
> >
> >
> > Now, this particular directory is set for Anonymous access
> > (IUSR_Servername). I have givent he IUSR_Servername account full
access
> > to the Mailroot folder and everything underneath. I have also tried
> > making the IUSR account either a Local Administrator or a Power User
on
> > this web server. I even added this user to the \Winnt directory and
all
> > subdirectories with "modify" permissions.
> >
> > No matter what, I get this errer:
> >
> > Error Type:
> > Microsoft VBScript runtime (0x800A0046)
> > Permission denied
> > /cdonts.asp, line 9 (<---- this line being .Send)
> >
> > Now, if I set the permissions on the directory to NT Password Auth
and
> > access the page using my account (domain admin) it works just fine.
> >
> > Any ideas?
Message #8 by "Morgan, Rob" <Rob.Morgan@o...> on Wed, 24 Oct 2001 08:07:52 -0400
|
|
Yes, I think when you run the option pack it shows you(checks) what's
already installed. By clicking off smtp it will uninstall it. Reboot, run
the option pack and check smtp and it will install again.
My experience has shows that the only user needed to process mail is the
local system account. I'm also using site server on one of my web servers
but not the membership part and the smtp works fine. As a matter of fact I
hardly ever have smtp problems and the ones I did have were do to the system
user permission being removed.
If you can drop mail into the queue directory and it processes it then I
don't think reinstalling smtp will correct the problem.
You might check the persissions on the CDONTS DLL.
A wild guess.... I've also run into simular problems when one of my DLL's
was trying to access the registry information as WAM process. When the DLL
is called it runs under the same user that ran the ASP page. If that usesr
doesn't have access to read the registry information then the DLL will fail
with access denied trying to read the registry.
-----Original Message-----
From: Alex Shiell, ITS, EC, SE [mailto:alex.shiell@s...]
Sent: Wednesday, October 24, 2001 7:35 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
Is it possible to reinstall SMTP without re-applying the whole Option pack?
I have the exact same problem as detailed below, but on NT4/IIS4 with Site
Server.
Like Eli I have given the IUSER far too many rights just to get round it,
but no luck. All directories are Full Control for everyone, but permission
is still denied.
Interestingly it works when I put the code into a vbs file and run it under
WSH, but not when I put the code into an ASP and run it as a user
authenticated with site server.
-----Original Message-----
From: Morgan, Rob [mailto:Rob.Morgan@o...]
Sent: 24 October 2001 12:16
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
Just $.02 worth
Have you tried to reinstalling SMTP? It only takes a few minutes. If you
do, make sure you don't install in a directory that might be a web or have
frontpage extentions. I have been install mine it in the root of a dive.
When you send it the mail see if it shows up in the queued directory. Could
it be that the place you are sending the mail to is not accepting it?
If your using frontpage to edit, try making a form that send email using the
extentions and see if it goes.
-----Original Message-----
From: Siegfried Weber [mailto:sweber@c...]
Sent: Tuesday, October 23, 2001 2:17 AM
To: ASP CDO
Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
The only thing that comes in mind is that the pickup directory path
stored in the IIS metabase doesn't point to an existing directory (or to
a directory your account doesn't have permissions).
See if you can get hold of a Microsoft tool called "Metaedit". Search
the Microsoft Knowledge Base about it. Install it on that machine and
browse the IIS metabase to find those settings (warning: DO NOT use
metaedit for this purpose if you have Exchange 2000 installed).
The IIS metabase is pretty easy to understand and you should be able to
find the appropriate value pretty easy.
<Siegfried />
> -----Original Message-----
> From: Eli Schilling [mailto:eschilli@t...]
> Sent: Monday, October 22, 2001 6:37 PM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
> Siegfried, lots of useful stuff there (another new bookmark for my
list)
> but
> it didn't have the answer I was looking for.
>
> For testing purposes I have now given "everyone" modify access to the
> mailroot folder and all subdirectories. I am still not able to send
> CDONTS
> messages using anonymous access.
>
> Thanks in advance!
>
> -Eli
>
> -----Original Message-----
> From: Siegfried Weber [mailto:sweber@c...]
> Sent: Monday, October 22, 2001 2:14 AM
> To: ASP CDO
> Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
>
>
> It might be a registry issue. Check
> http://www.cdolive.com/kbcdontssys.htm for some MSKB articles which
> might be useful.
>
> <Siegfried />
>
> > -----Original Message-----
> > From: Eli Schilling [mailto:eschilli@t...]
> > Sent: Saturday, October 20, 2001 1:12 AM
> > To: ASP CDO
> > Subject: [asp_cdo] Re: error 0x800A0046' Permission Denied
> >
> > I have a Windows 2000 web server with SMTP services installed. I
have a
> > simple sendmail page that does:
> >
> > Set objNewMail = Server.CreateObject("CDONTS.NewMail")
> >
> > ObjNewMail.To = "me@h..."
> > .from = "you@t..."
> > .subject = "Test"
> > .Body = "This is a test."
> > .send
> >
> > Set ObjNewMail = nothing
> >
> >
> > Now, this particular directory is set for Anonymous access
> > (IUSR_Servername). I have givent he IUSR_Servername account full
access
> > to the Mailroot folder and everything underneath. I have also tried
> > making the IUSR account either a Local Administrator or a Power User
on
> > this web server. I even added this user to the \Winnt directory and
all
> > subdirectories with "modify" permissions.
> >
> > No matter what, I get this errer:
> >
> > Error Type:
> > Microsoft VBScript runtime (0x800A0046)
> > Permission denied
> > /cdonts.asp, line 9 (<---- this line being .Send)
> >
> > Now, if I set the permissions on the directory to NT Password Auth
and
> > access the page using my account (domain admin) it works just fine.
> >
> > Any ideas?
|
|
 |