ASP.NET Help

Discussion in 'ASP.NET / ASP.NET Core' started by ofekray, Jun 6, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello, when i try to view my site (hosted on discountasp) i get this error:
    Compiler Error Message: CS0246: The type or namespace name 'Captcha' could not be found (are you missing a using directive or an assembly reference?)

    Source Error:
    Line 20: protected void Button1_Click(object sender, EventArgs e)
    Line 21: {
    Line 22: Captcha cp = (Captcha)Session["Captcha"];
    Line 23: if (this.TextBox1.Text == Convert.ToString(cp.GetX()))
    Line 24: Response.Redirect("Default.aspx");

    the captcha.cs class file is in the App_Code folder.

    what can i do?
     
  2. Did you try putting it in your bin folder?
     
  3. Bruce

    Bruce DiscountASP.NET Staff

    are you sure you are using the correct case? captcha vs Captcha
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page