Type definitions fail on server

Results 1 to 2 of 2

Thread: Type definitions fail on server

  1. #1
    Join Date
    Dec 1969

    Default Type definitions fail on server

    Please Help...<BR><BR>All of my VB.NET(2003) code works great on my machine(XP), but when I copy it over to my 2000 server, I keep getting Type definition not defined statements. I have .Net Framework 1.1 installed on the server, but no luck.<BR><BR>Here is one example of my problem:<BR><BR>I am trying to summerize a column in my datagrid on my webform and I keep getting the message:"Type &#039;DataGridItemEventArgs&#039; is not defined." <BR><BR>My Class definition is:<BR>=============================<BR>Public Class WebForm1<BR> Inherits System.Web.UI.Page<BR><BR>My dataGrid is declared as:<BR>===============================<BR>Protecte d WithEvents DataGrid1 As System.Web.UI.WebControls.DataGrid<BR><BR>This is my Code:<BR>Public Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) <BR> If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then <BR> CalcTotal(e.Item.Cells(11).Text) <BR> e.Item.Cells(11).Text = String.Format("{0:n0}", Convert.ToDouble(e.Item.Cells(11).Text)) <BR> ElseIf (e.Item.ItemType = ListItemType.Footer) Then <BR> e.Item.Cells(10).Text = "Total" <BR> e.Item.Cells(11).Text = String.Format("{0:n0}", runningTotal) <BR> End If <BR> End Sub <BR><BR>Like I said... It works great on my localhost

  2. #2
    Join Date
    Dec 1969

    Default RE: Type definitions fail on server

    Sounds like one of the import files is missing, you need a whole slew of them - <BR><BR>Imports System<BR>Imports System.Web<BR>Imports System.Web.UI<BR>Imports System.Web.UI.WebControls<BR>Imports System.Data<BR>Imports System.Data.SqlClient

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts