Link to home
Start Free TrialLog in
Avatar of NaumLitvin
NaumLitvin

asked on

Why am I getting Compiler Error Message: BC30451: Name 'DataSetProjectCode1' is not declared.?

I added a dropdown box to an existing ASP.NET 1.1 page, it is working locally but on the server I am getting

Compiler Error Message: BC30451: Name 'DataSetProjectCode1' is not declared.

I copied entire folder from server to my computer. opened it in VS2003 (everything is working ine), made changes to one page, then uploaded 5 files which ended up being changed to server. I can run the page locally (both from studio and from browser), but not on the server.

the 5 files are 3 with changed page (.aspx, .aspx.vb and .aspx.resx) and 2 with the "offending" DataSetProjectCode (.vb and .xsd)

DataSetProjectCode1 is declared in .aspx.vb as

    Protected WithEvents DataSetProjectCode1 As Templeton.DataSetProjectCode

the error message is pointing to a line in .aspx file where this dropdown is defined:

<asp:DropDownList id="ddlProjectCode" runat="server" Width="144px"
DataTextField="Project Code Number" DataSource="<%# DataSetProjectCode1 %>"
DataMember="ProjectCode" DataValueField="Project Code Number">
</asp:DropDownList>

Any constructive ideas are appreciated.
ASKER CERTIFIED SOLUTION
Avatar of NaumLitvin
NaumLitvin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial