I'm new at this IIS stuff, but not dumb! This one really has me stumped.
- IIS 5.1 installed on Windows XP w/SP2
- I can run http://localhost/localstart.asp

Now I make a copy of localstart.asp -> mystart.asp, same wwwroot directory.
I cannot run this, get 800A0046 on line 40 - the first occurrence of
GetObject.

I brought up file permissions dialogs for each, got them to be nearly
identical (some funniness about local Administrators group having special
permissions in the case of my copied file). I did everything I could in
special permissions.
I have only local accounts: Administrators, SYSTEM, Users, Everyone and "VS
Developers". For each of these their effective permissions match those of
localstart.asp.

Still I cannot get past that error!

I of course checked the wwwroot directory permissions, but what could that
matter, since the file that works and the file that doesn't work are in the
same directory. Nowhere do I see permissions IUSR_<machine> or
IWAM_<machine>. Is this OK?
--
-----
Glenn Nelson in Santa Cruz

Re: Script Error 800A0046 - Very Puzzling! by Kristofer

Kristofer
Sat Nov 19 03:48:02 CST 2005

Why do you need to copy this file and browse to the copy?

What you did was copy the file on the file system. You did however not
copy this file's properties stored in the metabase. localstart.asp is a
"special" file and accesses sensitive information (it accesses the
metabase). So therefore, it will not run if Anonymous Access is enabled on
the file. When you copied the file, this setting was not copied, and an
error was returned.




--
Regards,
Kristofer Gafvert
http://www.gafvert.info/iis/ - IIS Related Info


Glenn Nelson wrote:

>I'm new at this IIS stuff, but not dumb! This one really has me stumped.
>- IIS 5.1 installed on Windows XP w/SP2
>- I can run http://localhost/localstart.asp
>
>Now I make a copy of localstart.asp -> mystart.asp, same wwwroot directory.
>I cannot run this, get 800A0046 on line 40 - the first occurrence of
>GetObject.
>
>I brought up file permissions dialogs for each, got them to be nearly
>identical (some funniness about local Administrators group having special
>permissions in the case of my copied file). I did everything I could in
>special permissions.
>I have only local accounts: Administrators, SYSTEM, Users, Everyone and "VS
>Developers". For each of these their effective permissions match those of
>localstart.asp.
>
>Still I cannot get past that error!
>
>I of course checked the wwwroot directory permissions, but what could that
>matter, since the file that works and the file that doesn't work are in the
>same directory. Nowhere do I see permissions IUSR_<machine> or
>IWAM_<machine>. Is this OK?

Re: Script Error 800A0046 - Very Puzzling! by GlennNelson

GlennNelson
Sat Nov 19 13:46:03 CST 2005

Thank you, I discovered the same answer a day after I posted the question.
I'm not a web site admin and I know next to nothing about Microsoft IIS, so I
thought that making file system permissions identical was all I needed. Then
I thought to look into IIS object management, and there it was - some scripts
should not have anonymous access enabled.

--
-----
Glenn Nelson in Santa Cruz


"Kristofer Gafvert" wrote:

> Why do you need to copy this file and browse to the copy?
>
> What you did was copy the file on the file system. You did however not
> copy this file's properties stored in the metabase. localstart.asp is a
> "special" file and accesses sensitive information (it accesses the
> metabase). So therefore, it will not run if Anonymous Access is enabled on
> the file. When you copied the file, this setting was not copied, and an
> error was returned.
>
>
>
>
> --
> Regards,
> Kristofer Gafvert
> http://www.gafvert.info/iis/ - IIS Related Info
>
>
> Glenn Nelson wrote:
>
> >I'm new at this IIS stuff, but not dumb! This one really has me stumped.
> >- IIS 5.1 installed on Windows XP w/SP2
> >- I can run http://localhost/localstart.asp
> >
> >Now I make a copy of localstart.asp -> mystart.asp, same wwwroot directory.
> >I cannot run this, get 800A0046 on line 40 - the first occurrence of
> >GetObject.
> >
> >I brought up file permissions dialogs for each, got them to be nearly
> >identical (some funniness about local Administrators group having special
> >permissions in the case of my copied file). I did everything I could in
> >special permissions.
> >I have only local accounts: Administrators, SYSTEM, Users, Everyone and "VS
> >Developers". For each of these their effective permissions match those of
> >localstart.asp.
> >
> >Still I cannot get past that error!
> >
> >I of course checked the wwwroot directory permissions, but what could that
> >matter, since the file that works and the file that doesn't work are in the
> >same directory. Nowhere do I see permissions IUSR_<machine> or
> >IWAM_<machine>. Is this OK?
>