Server.Execute Problem

Server.Execute Problem

am 03.01.2007 11:25:01 von Eric

I am working on a site using classic ASP. The production server is a Windows
2003 server, and my local machine is running Windows XP Pro.

The problem I have is that while all other ASP commands work OK on the local
machine, whenever I use a Server.Execute command there is an error. However
the identical code runs just fine on the production server.

Is there a known issue here or is it down to the IIS version that ships with
XP?

All comments appreciated.

Re: Server.Execute Problem

am 03.01.2007 17:35:53 von Anthony Jones

"Eric" wrote in message
news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
> I am working on a site using classic ASP. The production server is a
Windows
> 2003 server, and my local machine is running Windows XP Pro.
>
> The problem I have is that while all other ASP commands work OK on the
local
> machine, whenever I use a Server.Execute command there is an error.
However
> the identical code runs just fine on the production server.
>
> Is there a known issue here or is it down to the IIS version that ships
with
> XP?

A sample of your code that is failing along with the actual error would
help.
My guess would be that you are attempting to execute something in a parent
path.

>
> All comments appreciated.

Re: Server.Execute Problem

am 03.01.2007 20:26:00 von Eric

Hi Anthony,

The code is:

<%
''This loads content into the maincontent div.
Dim ban, nab, PVArray, ArrayCount
ban = request.QueryString("banana")
If ban = "" then
nab = "indexcontent"
else
nab = ban
End If
server.Execute("/CLSContent/" & nab & ".asp")
'The following part deals with the session variables for visitor tracking
ArrayCount = (session("ArrayCount"))'CInt
......... etc etc
%>

and the error message is:

Server object error 'ASP 0228 : 80004005'

Server.Execute Error

/peters sites/ttest/index.asp, line 124

The call to Server.Execute failed while loading the page.

Hope this helps


"Anthony Jones" wrote:

>
> "Eric" wrote in message
> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
> > I am working on a site using classic ASP. The production server is a
> Windows
> > 2003 server, and my local machine is running Windows XP Pro.
> >
> > The problem I have is that while all other ASP commands work OK on the
> local
> > machine, whenever I use a Server.Execute command there is an error.
> However
> > the identical code runs just fine on the production server.
> >
> > Is there a known issue here or is it down to the IIS version that ships
> with
> > XP?
>
> A sample of your code that is failing along with the actual error would
> help.
> My guess would be that you are attempting to execute something in a parent
> path.
>
> >
> > All comments appreciated.
>
>
>

Re: Server.Execute Problem

am 03.01.2007 21:44:00 von Mike Brind

Does Response.Write("/CLSContent/" & nab & ".asp") give you what you expect
under each condition?

--
Mike Brind

"Eric" wrote in message
news:DCC18F25-1E2F-4646-8963-44FED882C13C@microsoft.com...
> Hi Anthony,
>
> The code is:
>
> <%
> ''This loads content into the maincontent div.
> Dim ban, nab, PVArray, ArrayCount
> ban = request.QueryString("banana")
> If ban = "" then
> nab = "indexcontent"
> else
> nab = ban
> End If
> server.Execute("/CLSContent/" & nab & ".asp")
> 'The following part deals with the session variables for visitor tracking
> ArrayCount = (session("ArrayCount"))'CInt
> ........ etc etc
> %>
>
> and the error message is:
>
> Server object error 'ASP 0228 : 80004005'
>
> Server.Execute Error
>
> /peters sites/ttest/index.asp, line 124
>
> The call to Server.Execute failed while loading the page.
>
> Hope this helps
>
>
> "Anthony Jones" wrote:
>
>>
>> "Eric" wrote in message
>> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
>> > I am working on a site using classic ASP. The production server is a
>> Windows
>> > 2003 server, and my local machine is running Windows XP Pro.
>> >
>> > The problem I have is that while all other ASP commands work OK on the
>> local
>> > machine, whenever I use a Server.Execute command there is an error.
>> However
>> > the identical code runs just fine on the production server.
>> >
>> > Is there a known issue here or is it down to the IIS version that ships
>> with
>> > XP?
>>
>> A sample of your code that is failing along with the actual error would
>> help.
>> My guess would be that you are attempting to execute something in a
>> parent
>> path.
>>
>> >
>> > All comments appreciated.
>>
>>
>>

Re: Server.Execute Problem

am 03.01.2007 23:49:00 von Eric

Hi Mike,

I am not sure that I undertsand your suggestion. This will just produce a
text string on the screen of:

/CLSContent/indexcontent.asp

As I say this code as written executes very reliably on the production
server but not on my XP Pro M/C - I just don't understand why.

"Mike Brind" wrote:

> Does Response.Write("/CLSContent/" & nab & ".asp") give you what you expect
> under each condition?
>
> --
> Mike Brind
>
> "Eric" wrote in message
> news:DCC18F25-1E2F-4646-8963-44FED882C13C@microsoft.com...
> > Hi Anthony,
> >
> > The code is:
> >
> > <%
> > ''This loads content into the maincontent div.
> > Dim ban, nab, PVArray, ArrayCount
> > ban = request.QueryString("banana")
> > If ban = "" then
> > nab = "indexcontent"
> > else
> > nab = ban
> > End If
> > server.Execute("/CLSContent/" & nab & ".asp")
> > 'The following part deals with the session variables for visitor tracking
> > ArrayCount = (session("ArrayCount"))'CInt
> > ........ etc etc
> > %>
> >
> > and the error message is:
> >
> > Server object error 'ASP 0228 : 80004005'
> >
> > Server.Execute Error
> >
> > /peters sites/ttest/index.asp, line 124
> >
> > The call to Server.Execute failed while loading the page.
> >
> > Hope this helps
> >
> >
> > "Anthony Jones" wrote:
> >
> >>
> >> "Eric" wrote in message
> >> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
> >> > I am working on a site using classic ASP. The production server is a
> >> Windows
> >> > 2003 server, and my local machine is running Windows XP Pro.
> >> >
> >> > The problem I have is that while all other ASP commands work OK on the
> >> local
> >> > machine, whenever I use a Server.Execute command there is an error.
> >> However
> >> > the identical code runs just fine on the production server.
> >> >
> >> > Is there a known issue here or is it down to the IIS version that ships
> >> with
> >> > XP?
> >>
> >> A sample of your code that is failing along with the actual error would
> >> help.
> >> My guess would be that you are attempting to execute something in a
> >> parent
> >> path.
> >>
> >> >
> >> > All comments appreciated.
> >>
> >>
> >>
>
>
>

Re: Server.Execute Problem

am 04.01.2007 09:14:09 von Robert Chapman

That's right - it should do that, but does it? Sometimes the querystring
and form name/values can be case-sensitive. This shouldn't matter in a
Windows environment, or so I understand, but I have certainly run up against
this issue before now. This test will at least eliminate that possibility.

--
Mike Brind

"Eric" wrote in message
news:F2B45F8E-7F1D-4821-8E67-ABB59EFE53FA@microsoft.com...
> Hi Mike,
>
> I am not sure that I undertsand your suggestion. This will just produce a
> text string on the screen of:
>
> /CLSContent/indexcontent.asp
>
> As I say this code as written executes very reliably on the production
> server but not on my XP Pro M/C - I just don't understand why.
>
> "Mike Brind" wrote:
>
>> Does Response.Write("/CLSContent/" & nab & ".asp") give you what you
>> expect
>> under each condition?
>>
>> --
>> Mike Brind
>>
>> "Eric" wrote in message
>> news:DCC18F25-1E2F-4646-8963-44FED882C13C@microsoft.com...
>> > Hi Anthony,
>> >
>> > The code is:
>> >
>> > <%
>> > ''This loads content into the maincontent div.
>> > Dim ban, nab, PVArray, ArrayCount
>> > ban = request.QueryString("banana")
>> > If ban = "" then
>> > nab = "indexcontent"
>> > else
>> > nab = ban
>> > End If
>> > server.Execute("/CLSContent/" & nab & ".asp")
>> > 'The following part deals with the session variables for visitor
>> > tracking
>> > ArrayCount = (session("ArrayCount"))'CInt
>> > ........ etc etc
>> > %>
>> >
>> > and the error message is:
>> >
>> > Server object error 'ASP 0228 : 80004005'
>> >
>> > Server.Execute Error
>> >
>> > /peters sites/ttest/index.asp, line 124
>> >
>> > The call to Server.Execute failed while loading the page.
>> >
>> > Hope this helps
>> >
>> >
>> > "Anthony Jones" wrote:
>> >
>> >>
>> >> "Eric" wrote in message
>> >> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
>> >> > I am working on a site using classic ASP. The production server is
>> >> > a
>> >> Windows
>> >> > 2003 server, and my local machine is running Windows XP Pro.
>> >> >
>> >> > The problem I have is that while all other ASP commands work OK on
>> >> > the
>> >> local
>> >> > machine, whenever I use a Server.Execute command there is an error.
>> >> However
>> >> > the identical code runs just fine on the production server.
>> >> >
>> >> > Is there a known issue here or is it down to the IIS version that
>> >> > ships
>> >> with
>> >> > XP?
>> >>
>> >> A sample of your code that is failing along with the actual error
>> >> would
>> >> help.
>> >> My guess would be that you are attempting to execute something in a
>> >> parent
>> >> path.
>> >>
>> >> >
>> >> > All comments appreciated.
>> >>
>> >>
>> >>
>>
>>
>>

Re: Server.Execute Problem

am 04.01.2007 11:36:06 von Eric

Hi Mike,

I tested your suggestion and yes it returns the text string as expected. Do
you think it possible that there is something in IIS setup that is wrong?

"Mike" wrote:

> That's right - it should do that, but does it? Sometimes the querystring
> and form name/values can be case-sensitive. This shouldn't matter in a
> Windows environment, or so I understand, but I have certainly run up against
> this issue before now. This test will at least eliminate that possibility.
>
> --
> Mike Brind
>
> "Eric" wrote in message
> news:F2B45F8E-7F1D-4821-8E67-ABB59EFE53FA@microsoft.com...
> > Hi Mike,
> >
> > I am not sure that I undertsand your suggestion. This will just produce a
> > text string on the screen of:
> >
> > /CLSContent/indexcontent.asp
> >
> > As I say this code as written executes very reliably on the production
> > server but not on my XP Pro M/C - I just don't understand why.
> >
> > "Mike Brind" wrote:
> >
> >> Does Response.Write("/CLSContent/" & nab & ".asp") give you what you
> >> expect
> >> under each condition?
> >>
> >> --
> >> Mike Brind
> >>
> >> "Eric" wrote in message
> >> news:DCC18F25-1E2F-4646-8963-44FED882C13C@microsoft.com...
> >> > Hi Anthony,
> >> >
> >> > The code is:
> >> >
> >> > <%
> >> > ''This loads content into the maincontent div.
> >> > Dim ban, nab, PVArray, ArrayCount
> >> > ban = request.QueryString("banana")
> >> > If ban = "" then
> >> > nab = "indexcontent"
> >> > else
> >> > nab = ban
> >> > End If
> >> > server.Execute("/CLSContent/" & nab & ".asp")
> >> > 'The following part deals with the session variables for visitor
> >> > tracking
> >> > ArrayCount = (session("ArrayCount"))'CInt
> >> > ........ etc etc
> >> > %>
> >> >
> >> > and the error message is:
> >> >
> >> > Server object error 'ASP 0228 : 80004005'
> >> >
> >> > Server.Execute Error
> >> >
> >> > /peters sites/ttest/index.asp, line 124
> >> >
> >> > The call to Server.Execute failed while loading the page.
> >> >
> >> > Hope this helps
> >> >
> >> >
> >> > "Anthony Jones" wrote:
> >> >
> >> >>
> >> >> "Eric" wrote in message
> >> >> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
> >> >> > I am working on a site using classic ASP. The production server is
> >> >> > a
> >> >> Windows
> >> >> > 2003 server, and my local machine is running Windows XP Pro.
> >> >> >
> >> >> > The problem I have is that while all other ASP commands work OK on
> >> >> > the
> >> >> local
> >> >> > machine, whenever I use a Server.Execute command there is an error.
> >> >> However
> >> >> > the identical code runs just fine on the production server.
> >> >> >
> >> >> > Is there a known issue here or is it down to the IIS version that
> >> >> > ships
> >> >> with
> >> >> > XP?
> >> >>
> >> >> A sample of your code that is failing along with the actual error
> >> >> would
> >> >> help.
> >> >> My guess would be that you are attempting to execute something in a
> >> >> parent
> >> >> path.
> >> >>
> >> >> >
> >> >> > All comments appreciated.
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>

Re: Server.Execute Problem

am 04.01.2007 13:14:25 von Robert Chapman

I don't know, I'm afraid. I can't even find anything sensible about the
case sensitivity issues when using Windows servers when I search for them,
but they definitely have occurred to me in the past.

--
Mike Brind

"Eric" wrote in message
news:7E8A5B6D-AECD-4AB4-A21F-09AEF4F027A0@microsoft.com...
> Hi Mike,
>
> I tested your suggestion and yes it returns the text string as expected.
> Do
> you think it possible that there is something in IIS setup that is wrong?
>
> "Mike" wrote:
>
>> That's right - it should do that, but does it? Sometimes the querystring
>> and form name/values can be case-sensitive. This shouldn't matter in a
>> Windows environment, or so I understand, but I have certainly run up
>> against
>> this issue before now. This test will at least eliminate that
>> possibility.
>>
>> --
>> Mike Brind
>>
>> "Eric" wrote in message
>> news:F2B45F8E-7F1D-4821-8E67-ABB59EFE53FA@microsoft.com...
>> > Hi Mike,
>> >
>> > I am not sure that I undertsand your suggestion. This will just
>> > produce a
>> > text string on the screen of:
>> >
>> > /CLSContent/indexcontent.asp
>> >
>> > As I say this code as written executes very reliably on the production
>> > server but not on my XP Pro M/C - I just don't understand why.
>> >
>> > "Mike Brind" wrote:
>> >
>> >> Does Response.Write("/CLSContent/" & nab & ".asp") give you what you
>> >> expect
>> >> under each condition?
>> >>
>> >> --
>> >> Mike Brind
>> >>
>> >> "Eric" wrote in message
>> >> news:DCC18F25-1E2F-4646-8963-44FED882C13C@microsoft.com...
>> >> > Hi Anthony,
>> >> >
>> >> > The code is:
>> >> >
>> >> > <%
>> >> > ''This loads content into the maincontent div.
>> >> > Dim ban, nab, PVArray, ArrayCount
>> >> > ban = request.QueryString("banana")
>> >> > If ban = "" then
>> >> > nab = "indexcontent"
>> >> > else
>> >> > nab = ban
>> >> > End If
>> >> > server.Execute("/CLSContent/" & nab & ".asp")
>> >> > 'The following part deals with the session variables for visitor
>> >> > tracking
>> >> > ArrayCount = (session("ArrayCount"))'CInt
>> >> > ........ etc etc
>> >> > %>
>> >> >
>> >> > and the error message is:
>> >> >
>> >> > Server object error 'ASP 0228 : 80004005'
>> >> >
>> >> > Server.Execute Error
>> >> >
>> >> > /peters sites/ttest/index.asp, line 124
>> >> >
>> >> > The call to Server.Execute failed while loading the page.
>> >> >
>> >> > Hope this helps
>> >> >
>> >> >
>> >> > "Anthony Jones" wrote:
>> >> >
>> >> >>
>> >> >> "Eric" wrote in message
>> >> >> news:9CDA2F4F-8AF2-44DB-BA28-F96793DD8D9D@microsoft.com...
>> >> >> > I am working on a site using classic ASP. The production server
>> >> >> > is
>> >> >> > a
>> >> >> Windows
>> >> >> > 2003 server, and my local machine is running Windows XP Pro.
>> >> >> >
>> >> >> > The problem I have is that while all other ASP commands work OK
>> >> >> > on
>> >> >> > the
>> >> >> local
>> >> >> > machine, whenever I use a Server.Execute command there is an
>> >> >> > error.
>> >> >> However
>> >> >> > the identical code runs just fine on the production server.
>> >> >> >
>> >> >> > Is there a known issue here or is it down to the IIS version that
>> >> >> > ships
>> >> >> with
>> >> >> > XP?
>> >> >>
>> >> >> A sample of your code that is failing along with the actual error
>> >> >> would
>> >> >> help.
>> >> >> My guess would be that you are attempting to execute something in a
>> >> >> parent
>> >> >> path.
>> >> >>
>> >> >> >
>> >> >> > All comments appreciated.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> >>
>> >>
>>
>>
>>

Re: Server.Execute Problem

am 04.01.2007 14:18:30 von Anthony Jones

"Eric" wrote in message
news:F2B45F8E-7F1D-4821-8E67-ABB59EFE53FA@microsoft.com...
> Hi Mike,
>
> I am not sure that I undertsand your suggestion. This will just produce a
> text string on the screen of:
>
> /CLSContent/indexcontent.asp
>
> As I say this code as written executes very reliably on the production
> server but not on my XP Pro M/C - I just don't understand why.


Is your local machine using anonymous access?
If yes do all the ASP files allow IUSR_ account (or whatever
your anonymous account is)?
Does is start working if you disable anonymous access?

What happens if you attempt to visit the above URL using your browser?

Re: Server.Execute Problem

am 04.01.2007 14:19:14 von Anthony Jones

"Mike" wrote in message
news:eTa9jn$LHHA.4000@TK2MSFTNGP06.phx.gbl...
> I don't know, I'm afraid. I can't even find anything sensible about the
> case sensitivity issues when using Windows servers when I search for them,
> but they definitely have occurred to me in the past.
>

JScript code perhaps? I can't think of any VBScript based scenario where
this would be a problem

Re: Server.Execute Problem

am 04.01.2007 21:41:35 von Mike Brind

"Anthony Jones" wrote in message
news:uServLAMHHA.3552@TK2MSFTNGP03.phx.gbl...
>
> "Mike" wrote in message
> news:eTa9jn$LHHA.4000@TK2MSFTNGP06.phx.gbl...
>> I don't know, I'm afraid. I can't even find anything sensible about the
>> case sensitivity issues when using Windows servers when I search for
>> them,
>> but they definitely have occurred to me in the past.
>>
>
> JScript code perhaps? I can't think of any VBScript based scenario where
> this would be a problem

Never touch the stuff. Definitely VBScript.

What should the output of the following be?


<%
Select Case Request.QueryString("action")
Case "submit"
Response.Write "case insensitive"
Case "Submit"
Response.Write "case sensitive"
Case Else
Response.Write "Click Button"
End Select
%>

--
Mike

Re: Server.Execute Problem

am 05.01.2007 00:03:09 von Anthony Jones

"Mike Brind" wrote in message
news:eSIv9CEMHHA.3424@TK2MSFTNGP02.phx.gbl...
>
> "Anthony Jones" wrote in message
> news:uServLAMHHA.3552@TK2MSFTNGP03.phx.gbl...
> >
> > "Mike" wrote in message
> > news:eTa9jn$LHHA.4000@TK2MSFTNGP06.phx.gbl...
> >> I don't know, I'm afraid. I can't even find anything sensible about
the
> >> case sensitivity issues when using Windows servers when I search for
> >> them,
> >> but they definitely have occurred to me in the past.
> >>
> >
> > JScript code perhaps? I can't think of any VBScript based scenario
where
> > this would be a problem
>
> Never touch the stuff. Definitely VBScript.
>
> What should the output of the following be?
>
>


> <%
> Select Case Request.QueryString("action")
> Case "submit"
> Response.Write "case insensitive"
> Case "Submit"
> Response.Write "case sensitive"
> Case Else
> Response.Write "Click Button"
> End Select
> %>

I see what you mean I would always use:-

Select Case LCase(Request.QueryString("action"))

I was just thinking about the use of identifiers such as filenames, variable
names, dictionary keys.

>
> --
> Mike
>
>

Re: Server.Execute Problem

am 06.01.2007 13:58:01 von Eric

Mike, Anthony,

I have spent some time looking at my set up, and I'm afraid the problem is
all down to me (I should have guessed!).

The primary problem was that the website was not correctly set up under IIS.
I had assumed that if my site root folder was in the wwwroot folder it would
automatically be set up but this is not the case. I have now corrected the
set up and the server.execute works no problem at all. I'm still not quite
sure why some of the other scripts worked OK before though.

The only problem I'm left with now is my stored procedures don't seem to
execute, but I think I can solve this.

Thank you both for your help.


"Anthony Jones" wrote:

>
> "Eric" wrote in message
> news:F2B45F8E-7F1D-4821-8E67-ABB59EFE53FA@microsoft.com...
> > Hi Mike,
> >
> > I am not sure that I undertsand your suggestion. This will just produce a
> > text string on the screen of:
> >
> > /CLSContent/indexcontent.asp
> >
> > As I say this code as written executes very reliably on the production
> > server but not on my XP Pro M/C - I just don't understand why.
>
>
> Is your local machine using anonymous access?
> If yes do all the ASP files allow IUSR_ account (or whatever
> your anonymous account is)?
> Does is start working if you disable anonymous access?
>
> What happens if you attempt to visit the above URL using your browser?
>
>
>