Is your site using anon access? Try logging in locally as
your anonymous IIS account and running the VBS test script
and see if it still works.
To log in as the anon user right-click your Default Web in
the IIS config util and select properties then the
Directory Security tab. In the Anonymous access box (top
one) click the Edit button.
This will give you the Authentication Methods box, click
Edit in the top one (anonymous access).
The anon user account dialogue has two fields. The top
one is the account IIS uses for anon access but it has a
random password. The account should be IUS_<machine
name>. Change the password for this user via the normal
admin tools, then uncheck "Allow IIS to control password"
and enter the password you changed the account to.
Now log off and log in using your IUSR account and the
password and try your script. When your testing is done,
go back to the anon account properties and reselect "Allow
IIS to control password"
[quoted text, click to view] >-----Original Message-----
>Hi Adrian,
> Thanks for your immediate response.It works fine as a
vbscript
>file,meaning i get a false..But,does not work in a ASP
Page.What is that i
>have
>to do so that it works in ASP.
>
>"Adrian Forbes - MVP" <adrian@xxxnoemailxxx.com> wrote in
message
>news:0a6801c3663c$cdddc540$a501280a@phx.gbl...
>> > i do not understand why it works with VB
>> > and not with ASP the same way.
>>
>> ASP/VBScript can only use late-binding and the IDispatch
>> interface. In your VB EXE are you using early binding?
>> Create a text file on your desktop called test.vbs and
>> enter into it;
>>
>> set objMyObject = CreateObject("ProgID")
>> msgbox objMyObject is nothing
>> set objMyObject = nothing
>>
>> Save the file and double-click it. If all is well you
>> will get a message box saying "False". Or do you get an
>> error message?
>
>
>.