Hello everyone.
As the title said..
I have a WebApplication in Visual studio 2013 with MasterPage and one Home.aspx page. Also i have a class MyItem.cs (Build Action-->Compile) in one folder with name MyClasses.
In the Page_Load of Home.aspx.cs, i have this:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication2.MyClasses;
namespace WebApplication2
{
public partial class Home : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MyItem itm = new MyItem();
itm.x = 5;
}
}
}
When i run the projet local with visualStudio it runs with no problem. Everything ok.
However when i deploy the project in somee (ftp) i take this error:
Compiler Error Message: CS0234: The type or namespace name 'MyClasses' does not exist in the namespace 'WebApplication2' (are you missing an assembly reference?)
If i dont use the reference of object My item in PageLoad it will run with success...
I have 10 days without solution and i search all google and youtube without success.
Pls help me..

gianestras giorgosPosted Jun 11, 2015, 6:38 PM
gianestras giorgosPosted Jun 11, 2015, 2:37 AM
Khan Abrar AhmedPosted Jun 11, 2015, 2:34 AM
gianestras giorgosPosted Jun 11, 2015, 2:10 AM
BasePageclass is implemented as a class file in the project, placed in folder namedHelperClasses. When the project is compiled the code in theBasePage.csfile is compiled along with the ASP.NET pages' code-behind classes into the single assembly,BookReviewsWAP.dll.ASP.NET has a special folder namedApp_Codethat is designed to hold class files for Web Site Projects. The code in theApp_Codefolder is automatically compiled and therefore should not be used with Web Application Projects. Instead, you should place your application's class files in a normal folder namedHelperClasses, orClasses, or something similar. Alternatively, you can place class files in a separate Class Library project.gianestras giorgosPosted Jun 11, 2015, 1:46 AM
gianestras giorgosPosted Jun 11, 2015, 1:42 AM
gianestras giorgosPosted Jun 11, 2015, 1:38 AM
Khan Abrar AhmedPosted Jun 11, 2015, 1:21 AM
gianestras giorgosPosted Jun 10, 2015, 10:43 AM
Source Error:
Line 1: using ClassLibrary;gianestras giorgosPosted Jun 10, 2015, 3:56 AM
Khan Abrar AhmedPosted Jun 10, 2015, 3:12 AM
gianestras giorgosPosted Jun 10, 2015, 3:01 AM
Khan Abrar AhmedPosted Jun 10, 2015, 2:44 AM