Results 1 to 5 of 5

Thread: C# Project / VS Crashes on data source selection

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Location
    sydney
    Posts
    265

    C# Project / VS Crashes on data source selection

    Hi,
    not sure if this is relevant to my code or is a visual studio issue. i have a c# project with entity frame work -sql database.

    when i select a datasource for an object, VS crashes with error below. i removed and refreshed EFW model from database.

    any clues what might be causing this

    Name:  vs_error.jpg
Views: 418
Size:  32.7 KB

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: C# Project / VS Crashes on data source selection

    I can barely read that. Please don't post screenshots of text. Post it directly as text.

    Based on the error message, it looks like you have code that is trying to access a table that doesn't exist.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Location
    sydney
    Posts
    265

    Re: C# Project / VS Crashes on data source selection

    Quote Originally Posted by jmcilhinney View Post
    I can barely read that. Please don't post screenshots of text. Post it directly as text.

    System.data.mappingException: the member PERIODS in the current conceptual model type xxxx is not present in the CLR type xxxx.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Location
    sydney
    Posts
    265

    Re: C# Project / VS Crashes on data source selection

    Quote Originally Posted by jmcilhinney View Post
    I can barely read that. Please don't post screenshots of text. Post it directly as text.

    System.data.mappingException: the member PERIODS in the current conceptual model type xxxx is not present in the CLR type xxxx.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Location
    sydney
    Posts
    265

    Re: C# Project / VS Crashes on data source selection

    apparently somehow my entity model got corrupted, so i removed it and added again. I don't understand how code generation templates work, but it no longer have a constructor woth connection string parrameter and no definition for AddObject() entity methods.. Im lost

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width