Click to See Complete Forum and Search --> : [RESOLVED] Weird ASP Server Error.


GremlinSA
June 12th, 2008, 12:35 PM
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'List' is not defined.

Source Error:



Line 46:
Line 47: Sub Page_Load()
Line 48: Dim DBListData As List(Of ItList)
Line 49: Dim UserId As Integer
Line 50:

Okay so what this tells me is that the VB List(Of T) type is not supported on the server..

Has anyone come across this before, and how did you solve it ????

Gremmy...

GremlinSA
June 12th, 2008, 12:36 PM
Ahh and btw the server version is Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

Shuja Ali
June 12th, 2008, 12:54 PM
One more thing that you will need to check. Is the website configured to use Framework 1.1 or 2.0?

Follow these steps:
Open IIS MMC (Start-->Run, write inetmgr and press enter)
Right click on the website that is not working properly and select properties.
Under ASP.NET tab check the version that it is currently using.

GremlinSA
June 13th, 2008, 05:43 AM
this error wasmy fault..

i put all of my code inside the Script section of Index.aspx instead of in Index.aspx.vb..

Once all my code was moved to the right place, everything worked..

Idiot mistake on my first ever ASP project.. (With little to no direction) ..

Gremmy..