The type initializer for 'xxx' threw an exception. Hatası

Bu hatayı entity framework kullanımında alıyorsanız.web config dosyanızda entity modelinizin connection string olmadığındandır. Çözümü web.config dosyanıza entity modelinizin kullandığı connection string ekleyiniz. 

Yorumlar

Bu blogdaki popüler yayınlar

Introducing FOREIGN KEY constraint 'xxx' on table 'xxx may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. Could not create constraint. See previous errors.

An error occurred while updating the entries. See the inner exception for details.

Unable to load the specified metadata resource.