2
Answers

Schema specified is not valid. Error.

KokLim Tan

KokLim Tan

9y
855
1
http://s20.postimg.org/f9xdevxb1/Errors.jpg
 

As per picture mentioned error (Error in above link) during access Entity Framework tables in data source. I've built the Microsoft.AspNet.Providers -version 1.2 from nuget console and try insert tables "Application,Role,User,Profile,Memebership" along with their inter relationship linking in keys. I've done with rebuild but still same error.

Could someone else who already know how to fix the problem and guide me to fixit in ASAP.

 
Answers (2)
0
KokLim Tan

KokLim Tan

NA 19 2.3k 9y
Dear Rajeev,
 
   Thanks for your reply, I've found my solution by not include "Applications" tables when "update model from database" in my edmx. It seems to have problem for foreign keys linking from "Application Tables" to other three tables "membership,user and role".
 
Why the "Applications" Tables had such problem when include into entityframe work model tables? 
 
KLTAN 
  
0
Rajeev Punhani

Rajeev Punhani

NA 4.7k 402.7k 9y

Hi Tan,

This means that the application is unable to load the EDMX. There are several things which can cause this.

  • You might have changed the MetadataArtifactProcessing property of the model to Copy to Output Directory.
  • The connection string could be wrong. I know you say you haven't changed it, but if you have changed other things (say, the name of an assembly), it could still be wrong.
  • You might be using a post-compile task to embed the EDMX in the assembly, which is no longer working for some reason. 


If the above solution is helpful then,accept the answer.