find a location for property in a new city

Thursday 10 February 2011

Unable to load the specified metadata resource. Where are my metadata files?

I made a new model using Entity Framework but I noticed my connection string was blank. I was receiving an "Unable to load the specified metadata resource" error message so I realised that it clearly couldn't find my meta description files. So where the hell are they?

They are not obvious to find and although I was diligently typing in the location of my csdl, ssdl and msl files I have never actually seen them myself.

So where are my csdl, ssdl and msl files?

I opened up Reflector, clicked open and browsed to and opened up my Models.dll:

Here you can see the proper files names to ensure you have got them right in your connection string.

Follow britishdev on Twitter


  1. But Colin, why wouldn't you just want to run res://* like everybody else? ;) What's next, you'll tell me that not clearing out my view engines in global.asxp causes a significant performance hit?

  2. Force of habit from my object orientated ways I guess - being as detailed as possible with what is a known. Not necessary though as you point out. However, my post was about insight into how it all working not best practice :)

  3. Well, I was being a little tongue in cheek. In my opinion it is a best practice to qualify that info. Using res://* is a performance hit and if you are using a blasted ORM you need all the help you can get to get it to run faster. Qualifying the res:// is the same type of attention to detail and free win you get by clearing and adding your view engine in global.aspx:
    ViewEngines.Engines.Add(new RazorViewEngine());

    Then again, I'm just a DBA so you could pretend we are at work and ignore me ;)

  4. "Just a DBA"? You seem well equipped with your knowledge of EF *and* MVC for "just" a DBA! Don't tell anyone but I didn't even know about this ViewEngine clean up... Which I will now be looking into ;) Cheers!

  5. Good DBA's are a "jack of all trades, master of one". In my best interest to know this stuff, as well as the networking side of things. DBA's are always outnumbered by AppDev's and Networking so we need to try to be extra sharp.

    Clearing View Engines:

  6. I also had no idea about it and how much impact it can have until I watched this at MVCConf2:

    Dude can handle almost 50% page requests just by clearing his view engines. Crazy.
    Sorry for back to back postings... was still searching for that link when I did the original.

  7. Apology is completely unnecessary. Comments as useful as yours are gold


  8. تسليك مجارى بالاحساء تسليك مجارى بالاحساء
    تسليك مجارى بالدمام تسليك مجارى بالدمام
    تنظيف بيارات بالرياض تنظيف بيارات بالرياض

    كشف تسربات المياه بالاحساء كشف تسربات المياه بالاحساء
    كشف تسربات المياه بالدمام كشف تسربات المياه بالدمام
    كشف تسربات المياه بالرياض كشف تسربات المياه بالرياض

    كشف تسربات المياه بالرياض كشف تسربات بالرياض

    كشف تسربات المياه بالرياض جهاز كشف تسربات المياه بالرياض