[UnintentionalCodeFirstException: The context is being used in Code First mode with code that was generated from an EDMX file for either Database First or Model First development. This will not work correctly. To fix this problem do not remove the line of code that throws this exception. If you wish to use Database First or Model First, then make sure that the Entity Framework connection string is included in the app.config or web.config of the start-up project. If you are creating your own DbConnection, then make sure that it is an EntityConnection and not some other type of DbConnection, and that you pass it to one of the base DbContext constructors that take a DbConnection. To learn more about Code First, Database First, and Model First see the Entity Framework documentation here: http://go.microsoft.com/fwlink/?LinkId=394715]
CertificationEFDataModel.CertificationEntities.OnModelCreating(DbModelBuilder modelBuilder) in C:\wwwroot\Current\Site Setup\comptia-aplus-design.com\Certification EF DataModel\CertificationEntityModel.Context.vb:23
System.Data.Entity.Internal.LazyInternalContext.CreateModelBuilder() +476
System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext) +20
System.Data.Entity.Internal.RetryLazy`2.GetValue(TInput input) +224
System.Data.Entity.Internal.LazyInternalContext.InitializeContext() +896
System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) +25
System.Data.Entity.Internal.Linq.InternalSet`1.Initialize() +69
System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext() +21
System.Data.Entity.Infrastructure.DbQuery`1.System.Linq.IQueryable.get_Provider() +66
System.Linq.Queryable.Where(IQueryable`1 source, Expression`1 predicate) +64
CertificationWebsite.ContactUtilities.GetCertificationID(String CertificationName) in C:\wwwroot\Current\comptia-aplus-design.com\web\Classes\ContactUtilities.vb:335
CertificationWebsite.ProductDownloadForm.ddlExamSelection_Init(Object sender, EventArgs e) in C:\wwwroot\Current\comptia-aplus-design.com\web\Modules\Product\ExamDetails\ProductDownloadForm.ascx.vb:89
System.Web.UI.Control.OnInit(EventArgs e) +108
System.Web.UI.WebControls.BaseDataBoundControl.OnInit(EventArgs e) +20
System.Web.UI.Control.InitRecursive(Control namingContainer) +173
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.AddedControl(Control control, Int32 index) +219
Telerik.Sitefinity.Web.UI.UserControlWrapper.OnInit(EventArgs e) +178
System.Web.UI.Control.InitRecursive(Control namingContainer) +173
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Control.InitRecursive(Control namingContainer) +380
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491
|