Error : Type is not [Persistent] or the assembly was not enchanced by OpenAccess

2 posts, 0 answers
  1. test
    test avatar
    27 posts
    Member since:
    Feb 2008

    Posted 28 Feb Link to this post

    Hi,

    You see in he subject the error against which I am fighting for several hours.

    I'm using Fluent Model, all was fine since I create a new class in the same way I do for my previous classes (I have 35 classes with no problem). Suddenly, every new classes I create have the same problem : the enhancer seems to not recognize it. When I want to use it I have the error : Type is not [Persistent] or the assembly was not enchanced by OpenAccess. All my classes are declared and used in the same way, old ones are working new ones not !

    My version of DataAcces is 2015.3.1221.1 (the last one on nuget).

    I found several interesting answer in the forum :

    • Rebuild my project after cleaning it,
    • Uninstall then reinstall DataAccess
    • Check if enhancing is enabled
    • Check of course my code is complete or not.

    But nothing solve my problem. When I disassemble my Assembly, I see my new class which is unmodified by enhancer whereas all others are modified !

    How can I do to force the enhancer to recognize my new classes ? All solutions mentioned above don't work. I feel that the problem appeared after I renamed a view (mapped on my new class), but I'm not sure of that.

    Please help me...This is a serious problem, I'm blocked because I can't add any table in my program any more.

    Thanks for you help.

    Best regard

    Loic

     
    I feel that the problem appeared after I renamed views
     
    I feel that the problem appeared after I renamed views
     
    I feel that the problem appeared after I renamed views
  2. Dan
    Dan avatar
    7 posts
    Member since:
    Jul 2011

    Posted 26 Sep in reply to test Link to this post

    I'm having the same problem.  Did you ever find a solution?
  3. DevCraft banner
Back to Top