• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1102
  • Last Modified:

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.
0
NaumLitvin
Asked:
NaumLitvin
1 Solution
 
NaumLitvinAuthor Commented:
Needed to copy compiled binaries into /bin folder.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now