. NET MVC Project Error "Basic provider failed on Open"

Source: Internet
Author: User

Questions:

Today, when you copy a. NET MVC project to another computer, The following exception message appears when you redeploy:

An exception of type "System.Data.Entity.Core.EntityCommandExecutionException" occurs in EntityFramework.SqlServer.dll " The underlying provider failed on Open "

Problem Finder

1. See if the string connecting the SQL Server database is correct in the Webconfig file

2. SQL settings allow selection of connections

After finding the problem is as follows:

No. 2 workaround

All Programs-->sqlserver2008-->sqlserver Configuration Manager, see the following interface, if TCP/IIP is not enabled, set enable

Then open the database and see the following permissions

If this does not solve the problem, use the following method:

Control Panel--Uninstall programs--Uninstall red labeled programs

Solve the problem smoothly after uninstalling ^_^

Reference Podcast: https://www.cnblogs.com/daomul/p/3728321.html

. NET MVC Project Error "Basic provider failed on Open"

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.