Question 1 about mvc5ef6 and mvc5ef6

Source: Internet
Author: User

Question 1 about mvc5ef6 and mvc5ef6

If you have no time in the past two days, I will take a look at the MVC5 + EF6 series of articles by Miro. We recommend that you take a look.

I have never touched on it before. I am a little white. I encountered a problem during my learning today. I am used to WebForm. Before running the page, I will right-click it and set it to the start page, I believe anyone using WebForm knows this.

So I thought that MVC also needs to set the start page before it can run. I set the start page silly, and then something happened, so it is difficult to make it happen with a 404 error.

My colleague explained that because MVC is set through routing, you need to set the RouteConfig file. After setting, it will run, or it will not work. The reason is that I also set the start page to cancel the start page setting.


An error is reported when the EF60 + MVC4 project is published to IIS.

Are you sure you have installed the EF framework of the corresponding version on your IIS server?

The underlying provider failed on Open error is reported when The EF60 framework is used.

There are many possibilities
1. If the connection string is correct, check whether the EF version in WebConfig is consistent with the actual reference of the project.
<Section name = "entityFramework" type = "System. data. entity. internal. configFile. entityFrameworkSection, EntityFramework, Version = 6.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089 "requirePermission =" false "/>
2. Try the sa and password you wrote to log on to the database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.