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 6173513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:35:23+00:00 2026-05-23T23:35:23+00:00

My Program uses EF to access data from a SQL CE database. When debug

  • 0

My Program uses EF to access data from a SQL CE database. When debug the application using debug setup it works fine but if I use release setup I get a MetadataException when the program tries to access the database through EF.
What I’ve checked so far:

  • Debug and release configuration is identical (same target platform)
  • The app.config is copied to the same directory as the executable (\Release)
  • The sdf database file is copied to \Release\
  • Metadata Artifact Processing is set to Embed in Output Assembly
  • Connection string name is identical in app.config and EF model

My app.config:

    <?xml version="1.0"?>
    <configuration>
    <connectionStrings>
    <add name="GeoDataEntities" connectionString="metadata=res://*/Model.EF.Model.csdl|res://*/Model.EF.Model.ssdl|res://*/Model.EF.Model.msl;provider=System.Data.SqlServerCe.3.5;provider connection string=&quot;Data Source=|DataDirectory|\GeoData.sdf&quot;" providerName="System.Data.EntityClient" />
    </connectionStrings>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
    </startup>
</configuration>

The assembly Model.EF is the namespace and Model the name of the edmx, I think that should be right.

I know that there a lot of posts and blogs about MetadataException and I’ve tried to solve this but nothing have worked so far.

Best regards

Jay

  • 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-05-23T23:35:24+00:00Added an answer on May 23, 2026 at 11:35 pm

    I really don’t know what I’ve done but it’s working since I’ve checked in and checked out from TFS.

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

Sidebar

Related Questions

I created a C#.net app that uses dates from a SQL Server 2008 database
We have a huge Oracle database and I frequently fetch data using SQL Navigator
I have a program that uses the mt19937 random number generator from boost::random. I
I have a Windows C# program that uses a C++ dll for data i/o.
I've got a C++ program that uses SQLite. I want to store the SQL
I have a (C#) genetic program that uses financial time-series data and it's currently
Question: I have written a console program that uses the SQL server 2005 web
My program needs to read chunks from a huge binary file with random access.
So I have an application which uses threads. Now when the program first starts
One of classes in my program uses some third-party library. Library object is a

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.