Hi, I get this error when I try to access my project which I've just put up on a server - Compiler Error Message: CS0246: The type or namespace name 'DataSet1TableAdapters' could not be found (are you missing a using directive or an assembly reference?).
The line it's complaining about is the following -
DataSet1TableAdapters.KORISNIK1TableAdapter korisnikAdapter = new DataSet1TableAdapters.KORISNIK1TableAdapter();
When I run this project locally, using localhost on my local machine, it works perfectly fine, but now when I try to access it from the remote server, it doesn't recognise my tableadapter... Do you have any idea what the problem might be ? Here is my code, if it helps. Thanks, greetings.
protected void Login1_LoggingIn(object sender, LoginCancelEventArgs e)
{
bool found = false;
DataSet1TableAdapters.KORISNIK1TableAdapter korisnikAdapter = new DataSet1TableAdapters.KORISNIK1TableAdapter();
DataSet1.KORISNIK1DataTable korisnikDataTable = korisnikAdapter.GetData();
foreach (DataSet1.KORISNIK1Row korisnik in korisnikDataTable)
{
if (korisnik.K_IME.Equals(Login1.UserName) && korisnik.LOZINKA.Equals(Login1.Password))
{
found = true;
}
}
if (found)
{
Response.Redirect("~/CallService.aspx");
}
}