Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8789849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:31:01+00:00 2026-06-13T22:31:01+00:00

I have 2 projects A and B each project has its own database and

  • 0

I have 2 projects A and B
each project has its own database and connect to it using entity framework and each project is working well alone
My problem is that when I use the project B as a library inside the project A It gives me “The type initializer for (MYCLASS) threw an exception”
you should know that (MYCLASS): is an Entity inside the project B

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:31:02+00:00Added an answer on June 13, 2026 at 10:31 pm

    Check if both projects are referring to the same version of entityframework in app.config.
    You might have upgraded your ef dlls in your project B but not in your project A. Since you have made reference of B in A, entityframework is using the config in A for both projects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I inherited a project where each 'customer' has its own database. There are hundreds
I have an internationalized project with many modules. Each module has its own set
I have a VC++ solution with multiple projects and multiple namespaces. Each project has
Basically I have a series of projects displayed on the page. Each project consists
I have a hash where my projects are each tagged with various codes. @projects
We have many projects with several files inside each. Files can be checked in
I have a project divided into several sub-modules (each of them are jar libraries):
I have a project that involves polling a hardware switch each update and converting
I have two projects and I want to combine them together.When I install each
I have a project with several CSS files, each with many different settings. Every

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.