Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2007

Tip: Looking for answers? Try searching our database.

Type 'List' is not defined

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve-o - 19 Dec 2007 17:16 GMT
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.
Jon Skeet [C# MVP] - 19 Dec 2007 18:31 GMT
> I have a asp.net application that works fine locally, but when I try
> and deploy it, it breaks with the error
[quoted text clipped - 10 lines]
>
> Any ideas?

Does the target server have .NET 2.0 installed?

Signature

Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk

Mohamad Elarabi [MCPD] - 21 Dec 2007 06:19 GMT
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.

Signature

Mohamad Elarabi
MCP, MCTS, MCPD.

> Hello,
>
[quoted text clipped - 14 lines]
>
> Thanks in advance.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.