# Asp doesn't recognize my class

**URL:** <https://forum.kirupa.com/t/asp-doesnt-recognize-my-class/170767>\
**Category:** programming\
**Created:** [November 29, 2005, 1:01pm UTC](https://forum.kirupa.com/t/asp-doesnt-recognize-my-class/170767 "2005-11-29T13:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgFan](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sgFan](https://forum.kirupa.com/u/sgFan)\
**Post date:** [November 29, 2005, 1:01pm UTC](https://forum.kirupa.com/t/asp-doesnt-recognize-my-class/170767/1 "2005-11-29T13:01:35Z")

</div>

I have to use ASP for an upload script I’m working on, despite the fact that PHP handles uploads much better. Anyhow, here’s my problem:

I’m using a class DynamicArray, courtesy of [4GuysFromRolla.com](http://4GuysFromRolla.com).  
I include it in my page (default.asp), then create new instance of it:

```auto

Dim objDynArray
Set objDynArray = New DynamicClass

```

When I view it in the browser, I get the following error:

```auto

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'DynamicClass'

/traxx_atlanticpetroleum/UploadWSC/default.asp, line 68

```

If I remove the include statement, and paste the whole code in above where the new class object is created, I now get this error:

```auto
Microsoft VBScript compilation error '800a03ea'

Syntax error

/traxx_atlanticpetroleum/UploadWSC/default.asp, line 67

Class DynamicArray

```

This is the class I used: [http://www.4guysfromrolla.com/webtech/code/array.class.asp.html](http://www.4guysfromrolla.com/webtech/code/array.class.asp.html)

Can anyone tell me what’s going on?
