Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 27, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: entityState error
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
entityState errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Apr 08 10:00 AM
I configured an environment with 7.2.2 last night, and things where working ok.
Then this morning, the Contact Detail page will not load (the middle pane and tabs load fine, just the Contact Detail doesn't).

It shows the following error:
c:\Inetpub\wwwroot\SlxClient\SmartParts\Contact\ContactDetails.ascx(277): error CS0103: The name '_entityState' does not exist in the current context

There were no changes done to the code. It worked last night.
I have recomiled and deployed, restarted IIS and Rebooted the box to no avail.

Has anyone ran into this issue before?
What would you suggest I do to figure out what is going on?
I am planning on debugging with VS against IIS. Is that a good Idea?


I guess my other option is to install a parallel environment and compare the code to make sure that indeed no one made any changes...
[Reply][Quote]
Dan Jerome
Posts: 1
 
Re: entityState errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Oct 12 1:02 PM
fiogf49gjkf0d

I found your post. I am currently getting the same error from a piece of sample code on a Entity/MVC4 tutorial. I have found these two pages so far that might help you.


http://msdn.microsoft.com/en-us/library/system.data.entitystate.aspx


http://social.msdn.microsoft.com/Forums/pl/adodotnetentityframework/thread/f36865b1-aecf-4db8-8106-402f4da3dd33


 


Here is the code that is giving me a similar problem:


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 


 




using



 



 



System;




using



 



 



System.Collections.Generic;




using



 



 



System.Linq;




using



 



 



System.Web;




using



 



 



System.ComponentModel.DataAnnotations;




using



 



 



System.Data.Entity;




using



 



 



TutorialFromOnline.Models.Abstract;




using



 



 



TutorialFromOnline.Models;




using



 



 



System.Data.Objects.DataClasses;




namespace



 



 



TutorialFromOnline.Models

{



 




 


public class ReviewRepository : IReviewRepository



{



 




 


private ReviewedContext _db { get; set


; }

 




 


public ReviewRepository() : this(new ReviewedContext


())

{ }


 



 




 


public ReviewRepository(ReviewedContext


db) { _db = db; }

 



 




 


public Review Get(int


id)

{



 




 


return


_db.Reviews.SingleOrDefault(r => r.Id == id);

}


 



 




 


public IQueryable<Review


> GetAll()

{



 




 


return


_db.Reviews;

}


 



 




 


public Review Add(Review


review)

{



_db.Reviews.Add(review); _db.SaveChanges();




 


return


review;

}


 



 




 


public Review Update(Review


review)

{


_db.Entry(review).State = EntityState.Modified;


_db.SaveChanges();



 




 


return


review;

}




 




 


public void Delete(int


reviewId)

{



 




 


var


review = Get(reviewId);

_db.Reviews.Remove(review);


}


 



 




 


public IEnumerable<Review> GetByCategory(Category


category)

{



 




 


return


_db.Reviews.Where(r => r.CategoryId == category.Id);

}


 



 




 


public IEnumerable<Comment> GetReviewComments(int


id)

{



 




 


return


_db.Comments.Where(c => c.ReviewId == id);

}


}


 


I got this code from the following tutorial.


 http://net.tutsplus.com/tutorials/building-an-asp-net-mvc4-application-with-ef-and-webapi/


 I hope this helps. I'm not getting anywhere with this issue.


 





[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/27/2025 6:20:52 PM