Sever.Execute Error
am 07.12.2007 16:52:22 von Go Live
Whenever i try to accecc HTML page through server.execute, i got this
error.
Server object error 'ASP 0228 : 80004005'
Server.Execute Error
server.execute("/folder1/htmls/" & strfilename & "_1.html")
The call to Server.Execute failed while loading the page.
Any suggestions,
Thank you
Re: Sever.Execute Error
am 07.12.2007 18:08:06 von exjxw.hannivoort
Go Live wrote on 07 dec 2007 in microsoft.public.inetserver.asp.general:
> Whenever i try to accecc HTML page through server.execute, i got this
> error.
>
> Server object error 'ASP 0228 : 80004005'
>
> Server.Execute Error
>
> server.execute("/folder1/htmls/" & strfilename & "_1.html")
>
> The call to Server.Execute failed while loading the page.
The file cannot be found.
Please do not multipost.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Sever.Execute Error
am 07.12.2007 18:12:27 von reb01501
Go Live wrote:
> Whenever i try to accecc HTML page through server.execute, i got this
> error.
>
> Server object error 'ASP 0228 : 80004005'
>
> Server.Execute Error
>
> server.execute("/folder1/htmls/" & strfilename & "_1.html")
>
> The call to Server.Execute failed while loading the page.
>
> Any suggestions,
>
Patient: Doctor, it hurts when I raise my arm.
Doctor: Well, stop raising your arm ... :-)
From the documentation:
****************************************
Execute
The Execute method calls an .asp file and processes it as if it were part of
the calling ASP script. The Execute method is similar to a procedure call in
many programming languages.
****************************************
Note the type of file it calls ..
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Re: Sever.Execute Error
am 07.12.2007 19:07:19 von exjxw.hannivoort
Bob Barrows [MVP] wrote on 07 dec 2007 in
microsoft.public.inetserver.asp.general:
> Go Live wrote:
>> Whenever i try to accecc HTML page through server.execute, i got this
>> error.
>>
>> Server object error 'ASP 0228 : 80004005'
>>
>> Server.Execute Error
>>
>> server.execute("/folder1/htmls/" & strfilename & "_1.html")
>>
>> The call to Server.Execute failed while loading the page.
>>
>> Any suggestions,
>>
> Patient: Doctor, it hurts when I raise my arm.
> Doctor: Well, stop raising your arm ... :-)
>
>
> From the documentation:
> ****************************************
> Execute
> The Execute method calls an .asp file and processes it as if it were
> part of the calling ASP script. The Execute method is similar to a
> procedure call in many programming languages.
>
> ****************************************
> Note the type of file it calls ..
True, Bob, but an extension does not define the type, I mean content.
A file with an .html extension could still contain only ASP code,
and with favarable IIS settings even be executed.
Yes, I know it is far fetched!
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Sever.Execute Error
am 07.12.2007 19:14:52 von reb01501
Evertjan. wrote:
> Bob Barrows [MVP] wrote on 07 dec 2007 in
> microsoft.public.inetserver.asp.general:
>
>> Go Live wrote:
>>> Whenever i try to accecc HTML page through server.execute, i got
>>> this error.
>>>
>>> Server object error 'ASP 0228 : 80004005'
>>>
>>> Server.Execute Error
>>>
>>> server.execute("/folder1/htmls/" & strfilename & "_1.html")
>>>
>>> The call to Server.Execute failed while loading the page.
>>>
>>> Any suggestions,
>>>
>> Patient: Doctor, it hurts when I raise my arm.
>> Doctor: Well, stop raising your arm ... :-)
>>
>>
>> From the documentation:
>> ****************************************
>> Execute
>> The Execute method calls an .asp file and processes it as if it were
>> part of the calling ASP script. The Execute method is similar to a
>> procedure call in many programming languages.
>>
>> ****************************************
>> Note the type of file it calls ..
>
> True, Bob, but an extension does not define the type, I mean content.
>
> A file with an .html extension could still contain only ASP code,
> and with favarable IIS settings even be executed.
>
> Yes, I know it is far fetched!
I think we're saying the same thing: I said "type", not extension :-)
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Re: Sever.Execute Error
am 07.12.2007 21:01:14 von Go Live
So what is the better solution to this problem. The file that i am
trying to execute is an .html file. Do i have to make changes in IIS
or in a code.??
Re: Sever.Execute Error
am 07.12.2007 21:31:01 von reb01501
Go Live wrote:
> So what is the better solution to this problem. The file that i am
> trying to execute is an .html file. Do i have to make changes in IIS
> or in a code.??
You can't execute a .html file: it has no code in it to be executed. You
need to clarify what you are trying to do here, especially why it needs to
be done in server-side code.
Hmmm ... maybe this will help:
http://classicasp.aspfaq.com/general/how-do-i-read-the-conte nts-of-a-remote-web-page.html
That's the best I can do without knowing what you expect to be getting from
that html file.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"