This is a migrated thread and some comments may be shown as answers.

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

1 Answer 65 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
test
Top achievements
Rank 1
test asked on 28 Feb 2016, 09:44 PM

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

1 Answer, 1 is accepted

Sort by
0
Dan
Top achievements
Rank 1
answered on 26 Sep 2016, 01:41 PM
I'm having the same problem.  Did you ever find a solution?
Tags
Development (API, general questions)
Asked by
test
Top achievements
Rank 1
Answers by
Dan
Top achievements
Rank 1
Share this question
or