An error occurred after publishing ASP. NET MVC to IIS:
1System.Data.Entity.Core.MetadataException:Schema specified isNot valid. Errors:2SYSMODEL.SSDL (2,2): Error0152: No Entity Framework provider found forThe ADO provider with invariant name'System.Data.SqlClient'. Make sure the provider isRegisteredinchThe'EntityFramework'section of the application config file. See http://go.microsoft.com/fwlink/?linkid=260882 for more information.3 At System.Data.Entity.Core.Metadata.Edm.StoreItemCollection.Loader.ThrowOnNonWarningErrors ()4At System.Data.Entity.Core.Metadata.Edm.StoreItemCollection.Loader.LoadItems (IEnumerable '1XmlReaders, IEnumerable '1sourcefilepaths)5At System.Data.Entity.Core.Metadata.Edm.StoreItemCollection.Loader. ctor (IEnumerable '1XmlReaders, IEnumerable '1sourcefilepaths, Boolean throwonerror, idbdependencyresolver Resolver)6At System.Data.Entity.Core.Metadata.Edm.StoreItemCollection.Init (IEnumerable '1XmlReaders, IEnumerable '1Filepaths, Boolean throwOnError, Idbdependencyresolver Resolver, dbprovidermanifest& providermanifest, dbproviderfactory& ProviderFactory, string& providerinvariantname, string& ProviderManifestToken, Memoizer '2&cachedctypefunction)7At System.Data.Entity.Core.Metadata.Edm.StoreItemCollection. ctor (IEnumerable '1XmlReaders, IEnumerable '1filepaths)8 At System.Data.Entity.Core.Metadata.Edm.MetadataCache.LoadStoreCollection (edmitemcollection Edmitemcollection, Metadataartifactloader loader)9At system.data.entity.core.metadata.edm.metadatacache.<>c__displayclass5.<>c__displayclass7.< Getmetadataworkspace>b__1 ()TenAt System.lazy '1. CreateValue () OneAt System.lazy '1. Lazyinitvalue () AAt System.lazy '1. Get_value () -At system.data.entity.core.metadata.edm.metadatacache.<>c__displayclass5.<>c__displayclass7.< Getmetadataworkspace>b__4 () -At System.data.entity.core.metadata.edm.metadataworkspace.loadandcheckitemcollection[t] (Func '1Itemcollectionloader) theAt system.data.entity.core.metadata.edm.metadataworkspace.<>c__displayclass16.<.ctor>B__f () -At System.lazy '1. CreateValue () ----End of stack trace fromPrevious locationwhereException was thrown--- - At System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () +At System.lazy '1. Get_value () - at System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.GetItemCollection (DataSpace DataSpace, Boolean Required) + At System.Data.Entity.Core.Metadata.Edm.MetadataWorkspace.GetItemCollection (dataspace dataspace) A At System.Data.Entity.Core.Objects.ObjectContext.InitializeMappingViewCacheFactory (DbContext owner) at At System.Data.Entity.Core.Objects.ObjectContext. ctor (entityconnection connection, Boolean Isconnectionconstructor, objectqueryexecutionplanfactory Objectqueryexecutionplanfactory, Translator Translator, columnmapfactory columnmapfactory) - At System.Data.Entity.Internal.InternalConnection.CreateObjectContextFromConnectionModel () - At System.Data.Entity.Internal.LazyInternalConnection.CreateObjectContextFromConnectionModel () - At System.Data.Entity.Internal.LazyInternalContext.InitializeContext () - At System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType (Type entityType) -At System.Data.Entity.Internal.Linq.InternalSet '1. Initialize () inAt System.Data.Entity.Internal.Linq.InternalSet '1. Get_internalcontext () -At System.Data.Entity.Infrastructure.DbQuery '1. System.Linq.IQueryable.get_Provider () toAt System.linq.queryable.orderby[tsource,tkey] (IQueryable '1Source, Expression '1keyselector) + At YF. DateServices.SysServices.NavMenuService.GetMenus () - At YF. Web.Areas.Sys.Controllers.NavMenuController.GetMenus () the At Lambda_method (Closure, Controllerbase, object[]) * at System.Web.Mvc.ActionMethodDispatcher.Execute (controllerbase Controller, object[] parameters) $At System.Web.Mvc.ReflectedActionDescriptor.Execute (ControllerContext controllercontext, IDictionary '2parameters)Panax NotoginsengAt System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod (ControllerContext ControllerContext, Actiondescriptor Actiondescriptor, IDictionary '2parameters) -At system.web.mvc.async.asynccontrolleractioninvoker.<begininvokesynchronousactionmethod>b__39 (IAsyncResult asyncResult, actioninvocation innerinvokestate) theAt System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult '2. Callenddelegate (IAsyncResult asyncResult) +At System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase '1. End () A At System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod (IAsyncResult asyncResult) theAt system.web.mvc.async.asynccontrolleractioninvoker.asyncinvocationwithfilters.< Invokeactionmethodfilterasynchronouslyrecursive>b__3d () +At system.web.mvc.async.asynccontrolleractioninvoker.asyncinvocationwithfilters.<>c__displayclass46.< Invokeactionmethodfilterasynchronouslyrecursive>b__3f () -At system.web.mvc.async.asynccontrolleractioninvoker.asyncinvocationwithfilters.<>c__displayclass46.< Invokeactionmethodfilterasynchronouslyrecursive>b__3f () $At system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass33.< Begininvokeactionmethodwithfilters>b__32 (IAsyncResult asyncResult) $At System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult '1. Callenddelegate (IAsyncResult asyncResult) -At System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase '1. End () - At System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters (IAsyncResult AsyncResult) theAt system.web.mvc.async.asynccontrolleractioninvoker.<>c__displayclass21.<>c__displayclass2b.< Begininvokeaction>b__1c () -At SYSTEM.WEB.MVC.ASYNC.ASYNCCONTROLLERACTIONINVOKER.<>C__DISPLAYCLASS21.<BEGININVOKEACTION>B__1E ( IAsyncResult AsyncResult)
View Code
Query the bin file for a EntityFramework.SqlServer.dll file.
About System.Data.Entity.Core.MetadataException Errors