CS0103: The name 'dsSchedule1' does not exist in the class or namespace 'ASP.schedule_aspx'

  • Thread starter Thread starter gdubois
  • Start date Start date
G

gdubois

Hi!!

I am trying for the first time to put on our intranet a really basic
ASP.NET page, using VS2003 and C#.

It's a page reading some info from an ACCESS database, using one
dataset (dsSchedule) and a datagrid.

Locally on my machine everything works fine. I copied directly all
the files directy in my Virtual Folder on the server.

I get the error:
CS0103: The name 'dsSchedule1' does not exist in the class or
namespace 'ASP.schedule_aspx'

Line 14: runat="server" Height="160px" Width="192px"
BackColor="Navy" ForeColor="White"></asp:calendar><asp:datagrid
id=DataGrid1 style="Z-INDEX: 102; LEFT: 32px; POSITION: absolute; TOP:
240px" runat="server" Height="149px" Width="704px" DataSource="<%#
dsSchedule1 %>" AutoGenerateColumns="False">

If I remove the DataSource part the page will load, but without the
data.

I am pretty sure it is something really simple... just too stupid to
figure it out.

Thanks
 
On your machine, find where dsSchedule is defined. This part is missing on
the server. It could be a file or a dll, depending on where you find the
definition.
 
On your machine, find where dsSchedule is defined. This part is missing on
the server. It could be a file or a dll, depending on where you find the
definition.

Sorry, could you help me out and tell me how I can do that?

I transfered the cs file and the schema file...

Thanks
 
Neither cs nor schema is needed on the server. You need to compile the app
on your machine and copy over the bin directory.
 
Back
Top