• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Kriztine Mendoza

Senior .NET Developer & Tech Partner for Scalable Software Solutions

  • Home
  • About
  • Work
  • Services
  • Contact Me

Entity Framework 6 Error: Unable to load the specified metadata resource

April 1, 2015 by kriztine

I was using the Entity Framework Database First approach and it worked well when I generated the edmx file within the ASP.NET MVC project.

But because we need to adhere to the N-layering practice, I have created a ProjectName.DataModel class library and generated an edmx file there.

It no longer worked and returned an error “Unable to load the specified metadata resource”.

Craig Stuntz fully explained the source of error here.

So what I did to solve the problem was go to the config file and modified the part of Entity Framework generated connection string to this:

connectionString="metadata=<b>res://ProjectName.DataModel/Model.csdl|</b><b>           res://ProjectName.DataModel/Model.ssdl|</b>
<b>res://ProjectName</b><b>.DataModel/Model.msl</b>;

Noticed that I have removed the “*/” part. That did the trick.

Filed Under: .Net Development Tagged With: ASP.NET MVC, Entity Framework

Primary Sidebar

Recent Posts

  • The tooltip or Intellisense for methods do not appear!
  • Scrollbar doesn’t show on Safari
  • WebResource.axd File Compression
  • X-Frame-Options header and X-Content-Type-Options = nosniff
  • Solved: Truncation Error when Importing from MS Excel to SQL Server

Categories

  • .Net Development (7)
  • Design (4)
  • How-To's (3)
  • Marketing (1)
  • Project Management (2)
  • Projects (1)
  • SQL (4)
  • System Administration and Configuration (2)
  • Tools (8)

Archives

SERVICES
  • Responsive Web Design
  • Custom Web/Software Development
  • Content Management System
  • API Development and Integration
  • Database Design and Management
  • System Configuration and Administration
QUICK LINKS
  • About
  • Services
  • Dev Notes
  • Resources
  • Contact me
GET IN TOUCH
  • +6349.539.1339
  • contact@kriztine.com
  • kriztine.tech@gmail.com

© 2025 · All Rights Reserved · Kriztine Mendoza

Attributions · Privacy Policy

"Whatever you do, work at it with all your heart, as working for the Lord..." - Colossians 3:23