This occurred when I was trying to move my Models out of my main MVC web application assembly. The main web dll is called Web and within that project is a folder called Models that is used to store all my *ahem* Models and entity data models etc. I decided to move everything in the Models folder out into its own Models assembly. I edited all the namespaces and everything built okay.
However, I was getting a runtime MetadataException when trying to view the page. What the hell is going on?!
Solution
The problem is that the connection string was incorrect. It wasn't immediately obviously with that error message but when you think about it, it makes sense.My connection string was:
connectionString="metadata=res://*/Models.Messaging.MessagingObjects.csdl|res://*/Models.Messaging.MessagingObjects.ssdl|res://*/Models.Messaging.MessagingObjects.msl;....etc"
Just so you know the metadata represents this
metadata=res://{assembly}/{namespace}.{filename}.csdl|res://{assembly}/{namespace}.{filename}.ssdl|res://{assembly}/{namespace}.{filename}.msl;
Since I have moved the models around and the namespace is now different I needed to make it
connectionString="metadata=res://*/Messaging.MessagingObjects.csdl|res://*/Messaging.MessagingObjects.ssdl|res://*/Messaging.MessagingObjects.msl;
Just for further understanding I could have replaced the asterix with Models since that is the name of the dll that contains my Messaging models.
Thanks for the post, solved my issue I was having!
ReplyDeleteHero
ReplyDeleteGreat, I had exactly the same problem right now and solved it with your help. thank you so much!
ReplyDeleteThank you so much...did not consider it at all...
ReplyDeleteI am using model first. I generated the domain classes and moved them into a separate project. I also move the context to a separate class. I changed my app config file to add the namespace. I still get the message. I also tried adding the assembly name. That caused a different problem. I have the app config file in my model, domain and context assembly. Same config file in each case. My config file is:
ReplyDeleteNice post, helped me figure this app out!! Thanks!!
ReplyDeleteYou have found a good solution for this problem. I will use this today. Thanks for the article, and in case you'll be looking for another dll file, you can use the msvcr120.dll download https://fix4dll.com/msvcr120_dll and easy fix the problem, maybe it's just because that you have the wrong file.
ReplyDeleteHi, I am new to EF. I created an edmx file for my project. I get the same metadata error mentioned here. To try the solutions provided here, can someone tell me how/where to find the names for the namespace and assembly?
ReplyDeleteBài viết rất hay: Chúng tôi có các cơ sở in ấn tại các điểm sau :
ReplyDeletecông ty in bao bì tại hưng yên
báo giá in thùng carton giá rẻ nhất
in bao bì tại hà nội
Bài viết rất hay: Chúng tôi có các dịch vụ in ấn chuyên nghiệp sau:
ReplyDeletein bao bì vỏ hộp
in hộp bìa cứng
This seems to be really great. if you are looking for AOl Customer Service then you can contat at AOl tech Support Phone Number for help. they will guide you to resolve your issue as soon as possible.
ReplyDeleteBài viết của bạn rất hay!
ReplyDeleteCông ty In Ấn Phúc Nguyên cung cấp các dịch vụ giá rẻ nhất tại hà nội:
Báo giá in thùng carton giá rẻ nhất
in bao bì tại hà nội
in hộp cứng
AOL Support
ReplyDeleteAOL Support number
AOL Support phone number
aol tech support
aol tech support number
aol tech support phone number
aol customer service
aol customer service number
aol customer service phone number
This is a great inspiring article. I am pretty much pleased with your good work. You put really very helpful information.
ReplyDeleteAOL Technical Support Number
There are many software which are continuously being introduced in the market due to technological advancements. Many companies try to launch different types of software that prove to be user-friendly and have the goal of achieving its maximum popularity. Telecom company AOL Inc. is quite well known and known for delivering elite quality products and services in the market. You need to download AOL desktop gold in your computer to enjoy seamless services by AOL. You need to visit our website http://webslivesupport.com/aol-desktop-gold/
ReplyDeleteDownload AOL desktop gold
AOL desktop gold download
Download and install AOL desktop gold
If you need support related to your AOL mail, whether it is a normal login, password, email attachment, password reset, email configuration and other issues, you can contact us by dialing our AOL email support phone number. Our expert team listens carefully to our customers and fixes their email errors step by step. We provide services through many methods such as calls, chat and remote access. Our team is highly experienced, skilled and dedicated to our email support services. Just visit our website http://webslivesupport.com/aol-desktop-gold/
ReplyDeleteDownload AOL desktop gold
AOL desktop gold download
Download and install AOL desktop gold
It is not uncertain whether users may encounter problems while using email services and during a certain period of time they may encounter an error during a critical period. But, this can be dealt with soon, all you need to do is dial an email support number to get an email help and get rid of the problem.You need to visit our website http://webslivesupport.com/
ReplyDeleteemail support number
email customer care numberr
Download AOL desktop gold
AOL desktop gold download
hello,Its really nice post.Thanks For sharing a good post.Something else I would like to talk about is that Max Global Support.Do you know how to return a DIRECTV receiver? If you would like to know how you need to return DIRECTV equipment,you need to know which ones AT&T wants back. It’s a simple process where you can return DIRECTV equipment to the company.Just click here to follow the steps… DirecTV return equipmentand also call on toll free technical support phone number +1-888-957-7111, to solve your problem within a minutes.
ReplyDeleteThese are the places that you can look for to explore in Louisville. Plan your next journey with us and save on your budget at American Airlines official site. Explore Louisville this winter and explore with us, save a lot on American Airlines.
ReplyDeleteDon’t let your budget plan tips for you-take control and plan your dream trip. Book air-tickets through United Airlines Official Site and save up to 30% on airfare.
ReplyDeleteThere has to be a reason for traveling. Book your tickets with Air China Phone Number and we can promise you that you won’t feel uncomfortable. All our flights are designed as per international standards, which is an important reason behind you to travel in Air China flights.
ReplyDeleteAir China is also known for its amazing and cooperative customer service. Air China Customer Service helps you to experience the best travel, and you can also make some amazing memories by planning your travel with Air China through Air China Customer Service.
ReplyDeleteDial Southwest Phone Number and get best offers for every booking and fly with the cheap rates only with southwest airlines. you can enjoy at your amazing destinations. Our agents are there to help with best solutions over the Southwest Phone Number.
ReplyDeleteEnsure a perfect journey with us with your airfares marked down with the biggest discounts. Call us at American Phone Number and relish your journey.
ReplyDeleteHarmony in the arms of a beautiful woman can change the landscape of a man’s life and he might feel levitated because of her company in a romantic way; Bangalore Escorts Service. Seduction process is a tedious job and efforts it requires before the wasteful body structure is infinite before the eyes of the almighty. Turbulence in the work space is usually because of different personalities trying too hard to show their dominating nature to the other individuals at the same space; Bangalore Escorts. Hey my name is Kiran Bajaj and this is my story and I am sticking to it. The story also allows some benevolent features of a woman to explode in the sanctity of erotic pleasure. I have dedicated my life to the needs of troubled men who were never appreciated in their life to a point that it exploits the desires in a wrong sense and hence the differential aspects emerge without any intentions; Bangalore Call Girls. Overly sophisticated women prefer men of high caliber who understand them for who they are not they want them to be. The society dictates the values of gnarled ethics of human commitment are threatened by the fake feminists of the world. Radical left of the political discussion leans on the destructive ropes of the rings while the sensible tries to dodge their presence with utmost elegance.
ReplyDeleteHie I am, David william working for Southwest Phone Number Get the most sensible flight We are a group that has an information about the working example of the market. We likewise offer the most dependable help to every one of our customers. For consistently on point and solid call Southwest Airlines Phone Number.
ReplyDeletePermainan Sabung Ayam tentunya sudah pada tahu ya, yang dimana ayam melawan ayam pertandingan yang sangat seru ini bisa kalian nonton secara live lohh, banyak yang bermain di situs kami dan merasa sangat nyaman, bagi kalian yang ingin bermain bisa kunjungi situs kami, dijamin kalian akan merasa sangat senang.
ReplyDeletedownload s128 apk mobile
aplikasi s128 terbaru
link download s128 apk
link s128 apk
cara download sabung ayam
cara download s128 apk
cara download aplikasi s128
daftar judi adu ayam
daftar adu ayam
cara daftar s128
cara daftar sabung ayam
cara daftar sabung ayam s128
cara daftar s128 sabung ayam
cara daftar s128 apk
login link alternatif s128
link login alternatif s128
Excellent thread, I have to thank for this. It helps me a lot to enhance my knowledge. I really like the way the writer presented his views.
ReplyDeleteargumentative essay help
finance assignment help
law assignment writing help
engineering assignments help
mathematics assignment help
computer science assignment help
stats assignment help
economics assignment help
we are a trained troubleshooting guide. We work independently as a reliable third party support provider and provide simple troubleshooting instructions to solve all common errors associated to webmail roadrunner. Our trained troubleshooters are very quick to resolve your issues and make a hassle-free path to enjoy emailing experience.
ReplyDeleteWe have focused on providing the most suitable solution to the common AOL Gold Problems. We have listed down some of the problems along with their solution in a step by step manner.
ReplyDeleteIf you are facing technical difficulties for AOL desktop gold download error, I and my technical support professionals are technically experienced.
ReplyDeleteThe add-in extensions in the browser also stop Hotmail working normally. To solve the hotmail not working issue, you need to temporarily disable your anti-virus software, after this try to run your Hotmail once again.
ReplyDeleteThe browser also stop Hotmail working normally. To solve the hotmail not working
ReplyDeleteissue, you need to temporarily disable your anti-virus software, after this try to run your Hotmail once again.
I don’t have ideas about the roadrunner webmail login
ReplyDeleteproblem, hence I seek for expert’s guidance. I am sharing this login issue with all of you, guys.
you will receive the unique 8 digit code, enter that code in the desired field and change your Yahoo password. This way, you can Recover hacked yahoo account.
ReplyDeleteI want to open my AOL mail messages and folders in Mac Mail. Due to some AOL IMAP Settings problems, I am getting problems to open them appropriately. I have taken online help from AOL technicians, but nothing is successful.
ReplyDeleteThe browser also stop Hotmail working normally. To solve the hotmail not working
ReplyDeleteissue, you need to temporarily disable your anti-virus software, after this try to run your Hotmail once again.
I have tried many Hewlett Packard laptop troubleshootingsolutions for this error, but no results. Now, I am looking for the solid and permanent resolutions for fixing this technical problem. I want to take the expert’s technical help to rectify this technical problem. Could anyone share the easy troubleshooting ways to resolve Hewlett Packard laptop not responding error?
ReplyDeleteAssignment Help provides the writing assistance to write all kind of literary work. Place your order for experts’ assistance even in Jordan if you are facing issues in writing your papers.
ReplyDeleteyour creative writing abilities has inspired me
ReplyDeleteبهترین شرکت طراحی سایت
طراحی سایت املاک
Assignment Help is the best tool to complete academic papers before the deadlines even if you have lots of work to do. Use Online Assignment help Hong Kong and receive experts’ assistance in Hong Kong.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteTop Ph.D Research Topics in Management & Business Students
ReplyDeleteA Ph.D is a degree that refers to the Doctor of Philosophy. It is the highest degree that can be earned after years of gruelling research and practice. Every field of education awards Ph.D degree. This blog is concerned with the field of business and management which also provides Doctorate after the successful completion of dissertation period.
One of the most famous questions that strike almost every student’s mind is “How many pages is 1000 words?” Despite what you are using MS Word or Google Docs, sometimes counting the words is essential for academic work. Pages not only rely on the number of words but also the font size, spacing margins, and paragraphs. By proceeding further, the method of counting pages depends on all the mandatory factors.
ReplyDeleteFor More Relevant Information Visit here- https://www.ivedahelp.com/education/how-many-pages-is-1000-words/
Great Article
ReplyDeleteCloud Computing Projects
Networking Projects
Final Year
Projects for CSE
JavaScript Training in Chennai
JavaScript
Training in Chennai
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals,
Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer.
Angular Training
سئو سایت
ReplyDeleteطراحی سایت بیمه
A well written Content provided by you. Your writing skills are perfect spirit airlines phone number. i hope so you will write more content like this but if you are searching for flights then contact us or visit our website.
ReplyDelete