Reputation: 418
I have developed the project using Entity Framework 5. I created the object of the Entity class. It works fine on my local machine but when I am trying to run on my Server machine it gives me an error
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'DataExportSystemEntities' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 11: public partial class Servers : System.Web.UI.Page
Line 12: {
Line 13: DataExportSystemEntities db = new DataExportSystemEntities();
Line 14: protected void Page_Load(object sender, EventArgs e)
Line 15: {
Entity framework dll is present in the bin folder.
Upvotes: 1
Views: 97
Reputation: 2073
This is probably your assembly, built using Entity Framework. You've got a copy of it in your bin folder or something locally, but when you deploy it to the server the dll is missing.
I'd say make sure you've added a reference to your assembly that has the DataExportSystemEntities
namespace in it (probably a project where you've implemented your data model using EF) to the project that gives you the error when you try to build the solution.
One way to track down what assembly has that DataExportSystemEntities
class is to do a Find in Files search in every relevant solution you have and see where it's defined. The name really implies that it's something created for your data model. If the definition isn't found in your source code it's probably a 3rd party assembly that needs to get included in your deployment to the server.
Upvotes: 1