Hi everyone,

I just resumed working with ASP after a year or so out of the loop and I
have this problem (using a simple html editor). Here's my code:

dim temp (5)
temp(1) = "blablabla"
ReDim Preseve (temp(10))
Response.Write temp(1)

when I run it I get an error
Error Type:
Microsoft VBScript runtime (0x800A0009)
Subscript out of range: '[number: 10]'
/index.asp, line 18

Code seems legit, but something else led me to believe it could be a problem
with the Personal Web Server version:
When I starting an ASP.NET Web Application with my Visual Studio.NET it told
me
"Visual Studio .NET has detected that the specified Web server is not
running ASP.NET version 1.1. You will be unable to run ASP.NET Web
Applications or services" and it does not start the project.

Has anyone encountered that before?

Appreciate any input.
Thanks,
Lev

Re: ASP version or code problem? by Ray

Ray
Fri Sep 10 15:11:15 CDT 2004

Dynamic arrays must be dimmed as arrayName().

Dim temp()
Redim temp(1)
temp(1) = "blahblhab"
Redim Preserve temp(10)

Ray at work

"Lev Burov" <LevBurov@discussions.microsoft.com> wrote in message
news:0CB46238-8650-40D5-BDE3-034F90DEC421@microsoft.com...
> Hi everyone,
>
> I just resumed working with ASP after a year or so out of the loop and I
> have this problem (using a simple html editor). Here's my code:
>
> dim temp (5)
> temp(1) = "blablabla"
> ReDim Preseve (temp(10))
> Response.Write temp(1)
>
> when I run it I get an error
> Error Type:
> Microsoft VBScript runtime (0x800A0009)
> Subscript out of range: '[number: 10]'
> /index.asp, line 18
>


Re: ASP version or code problem? by McKirahan

McKirahan
Fri Sep 10 15:33:58 CDT 2004

"Lev Burov" <LevBurov@discussions.microsoft.com> wrote in message
news:0CB46238-8650-40D5-BDE3-034F90DEC421@microsoft.com...
> Hi everyone,
>
> I just resumed working with ASP after a year or so out of the loop and I
> have this problem (using a simple html editor). Here's my code:
>
> dim temp (5)
> temp(1) = "blablabla"
> ReDim Preseve (temp(10))
> Response.Write temp(1)
>
> when I run it I get an error
> Error Type:
> Microsoft VBScript runtime (0x800A0009)
> Subscript out of range: '[number: 10]'
> /index.asp, line 18
>
> Code seems legit, but something else led me to believe it could be a
problem
> with the Personal Web Server version:
> When I starting an ASP.NET Web Application with my Visual Studio.NET it
told
> me
> "Visual Studio .NET has detected that the specified Web server is not
> running ASP.NET version 1.1. You will be unable to run ASP.NET Web
> Applications or services" and it does not start the project.
>
> Has anyone encountered that before?
>
> Appreciate any input.
> Thanks,
> Lev
>

You misspelled "Preserve".



Re: ASP version or code problem? by LevBurov

LevBurov
Fri Sep 10 16:29:01 CDT 2004

Thanks,
I knew it'd be something stupid like that - it always is



"McKirahan" wrote:

> "Lev Burov" <LevBurov@discussions.microsoft.com> wrote in message
> news:0CB46238-8650-40D5-BDE3-034F90DEC421@microsoft.com...
> > Hi everyone,
> >
> > I just resumed working with ASP after a year or so out of the loop and I
> > have this problem (using a simple html editor). Here's my code:
> >
> > dim temp (5)
> > temp(1) = "blablabla"
> > ReDim Preseve (temp(10))
> > Response.Write temp(1)
> >
> > when I run it I get an error
> > Error Type:
> > Microsoft VBScript runtime (0x800A0009)
> > Subscript out of range: '[number: 10]'
> > /index.asp, line 18
> >
> > Code seems legit, but something else led me to believe it could be a
> problem
> > with the Personal Web Server version:
> > When I starting an ASP.NET Web Application with my Visual Studio.NET it
> told
> > me
> > "Visual Studio .NET has detected that the specified Web server is not
> > running ASP.NET version 1.1. You will be unable to run ASP.NET Web
> > Applications or services" and it does not start the project.
> >
> > Has anyone encountered that before?
> >
> > Appreciate any input.
> > Thanks,
> > Lev
> >
>
> You misspelled "Preserve".
>
>
>

Re: ASP version or code problem? by joker

joker
Sat Sep 11 13:35:45 CDT 2004

For that error I'd also suggest checking the two following pages.

http://www.aspfaq.com/show.asp?id=2317

http://www.aspfaq.com/show.asp?id=2389

Lev Burov wrote:

> Hi everyone,
>
> I just resumed working with ASP after a year or so out of the loop and I
> have this problem (using a simple html editor). Here's my code:
>
> dim temp (5)
> temp(1) = "blablabla"
> ReDim Preseve (temp(10))
> Response.Write temp(1)
>
> when I run it I get an error
> Error Type:
> Microsoft VBScript runtime (0x800A0009)
> Subscript out of range: '[number: 10]'
> /index.asp, line 18
>
> Code seems legit, but something else led me to believe it could be a problem
> with the Personal Web Server version:
> When I starting an ASP.NET Web Application with my Visual Studio.NET it told
> me
> "Visual Studio .NET has detected that the specified Web server is not
> running ASP.NET version 1.1. You will be unable to run ASP.NET Web
> Applications or services" and it does not start the project.
>
> Has anyone encountered that before?
>
> Appreciate any input.
> Thanks,
> Lev
>