2016-04-14 21 views
-1

我只是刪除並重新創建我的實體framwork數據模型(.edmx文件),因爲選擇不工作很好,留下一些表列模型時,「從數據庫更新模式」我從數據庫中刪除了它們。 事情是,現在我的項目被打破,我運行我的應用程序時出現此錯誤。任何想法如何修復它?服務器錯誤後重新創建數據模型

'/ MonitoreoIntegrado'應用程序中的服務器錯誤。

無SE puede cargar EL檔案館öensamblado '的EntityFramework(1)' NI UNA德SUS dependencias。 Ladefinicióndel manifiesto del ensamblado no coincide con la referencia al ensamblado。 (Excepción德HRESULT:0x80131040)

描述:在當前web請求的執行過程中發生了未處理的異常。請查看堆棧跟蹤以獲取有關該錯誤的更多信息以及源代碼的位置。

異常詳細信息:System.IO.FileLoadException:No se puede cargar el archivo o ensamblado'EntityFramework(1)'ni una de sus dependencias。 Ladefinicióndel manifiesto del ensamblado no coincide con la referencia al ensamblado。 (Excepción德HRESULT:0x80131040)

源錯誤:在當前web請求的執行過程中生成

未處理的異常。關於異常的來源和位置的信息可以使用下面的異常堆棧跟蹤來標識。

集加載跟蹤:下列信息有助於確定程序集「的EntityFramework(1)」無法加載。 AVS:El registro del enlace de ensambladoestádesactivado。 ParaHabilitar el registro de errores del enlace de ensamblado,establezca el valor de Registro [HKLM \ Software \ Microsoft \ Fusion!EnableLog](DWORD)como 1. 注意:請注意:如果您有任何疑問, 。 Para destivtivar estacaracterística,elimine el valor de Registro [HKLM \ Software \ Microsoft \ Fusion!EnableLog]。

堆棧跟蹤:

[FileLoadException:沒有SE puede cargar EL檔案館öensamblado '的EntityFramework(1)' NI UNA德SUS dependencias。 Ladefinicióndel manifiesto del ensamblado no coincide con la referencia al ensamblado。 (Excepción德HRESULT:0x80131040)] System.Reflection.RuntimeAssembly._nLoad(的AssemblyName文件名,字符串的代碼庫,證據assemblySecurity,RuntimeAssembly locationHint,StackCrawlMark & stackMark,IntPtr的pPrivHostBinder,布爾throwOnFileNotFound,布爾forIntrospection,布爾suppressSecurityChecks)0 系統。 Reflection.RuntimeAssembly.InternalLoadAssemblyName(的AssemblyName assemblyRef,證據assemblySecurity,RuntimeAssembly reqAssembly,StackCrawlMark & stackMark,IntPtr的pPrivHostBinder,布爾throwOnFileNotFound,布爾forIntrospection,布爾suppressSecurityChecks)234 System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString,證據assemblySecurity,StackCrawlMark & stackMark,IntPtr pPrivHostBinder,布爾值forIntrospection)+108 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString,Evidence assemblySecurity,StackCrawlMark & stackMark,Boolean forIntrospection)+25 System.Reflection.Assembly.Load(String assemblyString)+34 System.Web.Configuration.CompilationSection。LoadAssemblyHelper(String assemblyName,Boolean starDirective)+49

[ConfigurationErrorsException:No se puede cargar el archivo o ensamblado'EntityFramework(1)'ni una de sus dependencias。 Ladefinicióndel manifiesto del ensamblado no coincide con la referencia al ensamblado。 (Excepción德HRESULT:0x80131040)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(字符串的AssemblyName,布爾starDirective)772 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()259 System.Web.Configuration.CompilationSection。 LoadAssembly(集信息AI)163個 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)230個 System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()76個 System.Web.Compilation.BuildManager.CallPreStartInitMethods(字符串preStartInitListPath ,布爾型& isRefAssemblyLoaded)+343 System.Web.Compilation.BuildManager.ExecutePreAppStart()+176 System.Web.Hosting。 HostingEnvironment.Initialize(ApplicationManager AppManager的,IApplicationHost APPHOST,IConfigMapPathFactory configMapPathFactory,HostingEnvironmentParameters hostingParameters,PolicyLevel policyLevel,異常appDomainCreationException)734

[HttpException(0X80004005):無SE puede cargar EL檔案館öensamblado '的EntityFramework(1)' にUNA de sus dependencias。 Ladefinicióndel manifiesto del ensamblado no coincide con la referencia al ensamblado。 (Excepción德HRESULT:0x80131040)] System.Web.HttpRuntime.FirstRequestInit(HttpContext的上下文中)579 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext的上下文中)112 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest WR,HttpContext的上下文)+716

版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.6.1073.0

回答

0

好的,這很奇怪。我的項目中有一個名爲_bin_deployableAssemblies的文件夾。我從我的本地磁盤中刪除了這個文件夾,然後從我的項目中排除了這個文件夾,現在所有的工作都再次完美。

相關問題