locked
Error when creating Controller - can anyone help? RRS feed

  • Question

  • "Unable to retrieve metadata for mvcMovie.Movie. A provider factory for the specified site store connection ofv type Microsoft.VisualStudio.Mvc.Scaffolding.BuiltIn.SceffoldingDbConection could not be dicovered. The registered provider factories and all provider factories in the assembly where Microsoft.VisualStudio.Mvc.Scaffolding.BuiltIn.SceffoldingDbConection is defined were searched for a factory and that would produce a matching conection."

    I am using VB Web Developer 2010 Express SP1, Windows 7, Net Framework 4.0, entity framework 4.1, sqlserver 2008 R2

    Movie Model

    Imports System.Data.Entity

    Public Class Movie

    Public Property ID() As Integer

    Public Property Title() As String

    Public Property ReleaseDate() As Date

    Public Property Genre() As String

    Public Property Price() As Decimal

    Public Class MovieDBContext

    Inherits DbContext

    Public Property Movies() As DbSet(Of Movie)

    End Class

    End Class

    <connectionStrings>

    <add name="MovieDBContext"

    connectionString="Data Source=|DataDirectory|Movies.sdf"

    providerName="System.Data.SqlServerCe.4.0"/>

    <add name="ApplicationServices"

    connectionString="data source=.\SQL2008ADV;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true"

    providerName="System.Data.SqlClient" />

    </connectionStrings>

    <?xml version="1.0" encoding="utf-8"?>

    <packages>

    <package id="jQuery" version="1.5.1" />

    <package id="jQuery.vsdoc" version="1.5.1" />

    <package id="jQuery.Validation" version="1.8.0" />

    <package id="jQuery.UI.Combined" version="1.8.11" />

    <package id="EntityFramework" version="4.1.10331.0" />

    <package id="Modernizr" version="1.7" />

    </packages>

     

    Tuesday, July 19, 2011 12:30 AM

All replies