Type 'List' is not defined

  • Thread starter Thread starter Steve-o
  • Start date Start date
S

Steve-o

Hello,

I have a asp.net application that works fine locally, but when I try
and deploy it, it breaks with the error
Type 'List' is not defined

on the line

Public allFields As List(Of FormField) = New List(Of FormField)

I have imported generics Imports System.Collections.Generic

I have recently installed AJAX extensions and aspnet futures. I think
this might have caused a problem with a namespace?

Any ideas?

Thanks in advance.
 
Steve-o said:
I have a asp.net application that works fine locally, but when I try
and deploy it, it breaks with the error
Type 'List' is not defined

on the line

Public allFields As List(Of FormField) = New List(Of FormField)

I have imported generics Imports System.Collections.Generic

I have recently installed AJAX extensions and aspnet futures. I think
this might have caused a problem with a namespace?

Any ideas?

Does the target server have .NET 2.0 installed?
 
Make sure of the following:

1- Production server has .Net 2.0 Framework.
2- On the server go to IIS (MMC)\Right click the Site\Properties\ASP.NET
Tab\ASP.NET Versio is set to 2.0.50727

Stop and start the site,
or Start\Run\IISReset <-- This will take down all sites on the server then
bring them back up. Only use in desperate times.
 
Back
Top