# ASP.Net MVC 5 - Crie aplicações Web na Plataforma Microsoft ERROR

**URL:** <https://forum.casadocodigo.com.br/t/asp-net-mvc-5-crie-aplicacoes-web-na-plataforma-microsoft-error/769>\
**Category:** Livros\
**Tags:** aspnet-mvc5\
**Created:** [Outubro 5, 2017, 7:48pm UTC](https://forum.casadocodigo.com.br/t/asp-net-mvc-5-crie-aplicacoes-web-na-plataforma-microsoft-error/769 "2017-10-05T19:48:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel1](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@gabriel1](https://forum.casadocodigo.com.br/u/gabriel1)\
**Post date:** [Outubro 5, 2017, 7:48pm UTC](https://forum.casadocodigo.com.br/t/asp-net-mvc-5-crie-aplicacoes-web-na-plataforma-microsoft-error/769/1 "2017-10-05T19:48:16Z")

</div>

boa noite,

estou com problema não consigo me conectar ao banco de dados.  
está dando erro no Controler Fabricantes

using Projecto01.Contexts;  
using System.Linq;  
using System;  
using System.Collections.Generic;  
using [System.Web](http://System.Web);  
using System.Web.Mvc;

namespace Projecto01.Controllers  
{  
public class FabricantesController : Controller  
{

```
    private EFContext context = new EFContext();

    // GET: Fabricantes
    public ActionResult Index()
    {
       return View(context.Fabricantes.OrderBy(
           c=> c.Nome));

       
    }
}

```

}

erro:

An exception of type ‘System.ArgumentException’ occurred in EntityFramework.dll but was not handled in user code

Additional information: The [ADO.NET](http://ADO.NET) provider with invariant name ‘System.DataSqlClient’ is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details.

A baixo segue a connection string.

```
<add name="Asp_net_MVC_CS" connectionString="Data Source=(localdb)\MSSQLLocalDB;AttachDbFileName=|DataDirectory|\Asp_Net_MVC_DB.mdf;Integrated Security=True;MultipleActiveResultSets=True;" providerName="System.DataSqlClient" />
```
