0

我正在研究ASP.Net样板框架,现在该机器不适用于我工作的地方,但我已在我的Google驱动器上备份。我如何正确使用备份?数据库创建,项目运行等? 我上启用的迁移和更新数据库中获取错误命令Asp.Net样板,如何将样板项目移动到另一台计算机?

Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///F:\Qubit 
Systems\ShipperBuyerV1\module-zero-template-2.1.1\src\packages\EntityFramework.6.1.3\tools\EntityFramework.PowerShell.Utility.dll' or one of its dependencies. Operation is not supported. 
    (Exception from HRESULT: 0x80131515)" 
At F:\Qubit Systems\ShipperBuyerV1\module-zero-template-2.1.1\src\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:780 char:5 
+  $utilityAssembly = [System.Reflection.Assembly]::LoadFrom((Join-P ... 
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
+ FullyQualifiedErrorId : FileLoadException 

You cannot call a method on a null-valued expression. 
    At F:\Qubit Systems\ShipperBuyerV1\module-zero-template-2.1.1\src\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:781 char:5 
+  $dispatcher = $utilityAssembly.CreateInstance(
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo   : InvalidOperation: (:) [], RuntimeException 
+ FullyQualifiedErrorId : InvokeMethodOnNull 

Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or assembly 'file:///F:\Qubit 
    Systems\ShipperBuyerV1\module-zero-template-2.1.1\src\packages\EntityFramework.6.1.3\tools\EntityFramework.PowerShell.dll' or one of its dependencies. Operation is not supported. (Exception 
from HRESULT: 0x80131515)" 
    At F:\Qubit Systems\ShipperBuyerV1\module-zero-template-2.1.1\src\packages\EntityFramework.6.1.3\tools\EntityFramework.psm1:809 char:5 
+  $domain.CreateInstanceFrom(
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
+ FullyQualifiedErrorId : FileLoadException 

回答

1

这里是你应该做的:

  1. 从谷歌下载项目带动
  2. 打开在Visual Studio
  3. 运行数据库更新(确保在Nuget Package Manager中选择了实体框架项目。)

这就是你需要做的所有事情。您将丢失的是您的以前数据库中不可用机器上的数据。

+0

好@Sleek让我查 –

+0

以下是错误:在应用命令更新,数据库这是给“无法加载文件或程序集” –

+0

@Sleek爵士可能有大约SLN文件路径的任何问题??? –

0

最好的解决方案是在Git中创建一个仓库,添加你的项目。在那里PC上运行git克隆在所需的路径。

参考Setting up git repo

相关问题