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..


Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 9, 2015, 10:44 PM EDT
gianestras giorgos27 reputationPosted Jun 9, 2015, 11:01 PM EDT
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 9, 2015, 11:12 PM EDT
gianestras giorgos27 reputationPosted Jun 9, 2015, 11:56 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 6:43 AM EDT
Source Error:
Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 10, 2015, 9:21 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 9:38 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 9:42 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 9:46 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 10:10 PM EDT
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.Khan Abrar AhmedRank #778 · 3K reputationPosted Jun 10, 2015, 10:34 PM EDT
gianestras giorgos27 reputationPosted Jun 10, 2015, 10:37 PM EDT
gianestras giorgos27 reputationPosted Jun 11, 2015, 2:38 PM EDT