Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.86 KB | None | 0 0
  1. Larss-MacBook-Air:project larsjorgensen$ cd Server/
  2. Larss-MacBook-Air:Server larsjorgensen$ ls
  3. Context Startup.cs
  4. Controllers appsettings.Development.json
  5. Hubs appsettings.json
  6. Migrations bin
  7. Program.cs certificate.pfx
  8. Properties obj
  9. Server.csproj wwwroot
  10. Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”<Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345>"
  11. > ;
  12. >
  13. Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
  14. ;
  15. > dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
  16. ^C
  17. Larss-MacBook-Air:Server larsjorgensen$
  18. Larss-MacBook-Air:Server larsjorgensen$
  19. Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"> z
  20. Larss-MacBook-Air:Server larsjorgensen$
  21. Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345">
  22. >
  23. >
  24. >
  25. >
  26. >
  27. >
  28. >
  29. > "
  30.  
  31.  
  32.  
  33. Successfully saved ”DB:Connectionstring” = ”Host=localhost to the secret store.
  34. Larss-MacBook-Air:Server larsjorgensen$
  35. Larss-MacBook-Air:Server larsjorgensen$
  36. Larss-MacBook-Air:Server larsjorgensen$
  37. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  38. System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/fred/Documents/Programming/dotnet/project/Server/obj/project.assets.json'.
  39. at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
  40. at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
  41. at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
  42. at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
  43. at System.IO.File.OpenText(String path)
  44. at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()
  45. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  46. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  47. Could not find a part of the path '/home/fred/Documents/Programming/dotnet/project/Server/obj/project.assets.json'.
  48. Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” "Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
  49. Successfully saved ”DB:Connectionstring” = Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345 to the secret store.
  50. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  51. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  52. at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
  53. --- End of inner exception stack trace ---
  54. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  55. at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  56. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
  57. at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
  58. at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
  59. at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
  60. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  61. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  62. Exception has been thrown by the target of an invocation.
  63. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  64. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  65. at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
  66. --- End of inner exception stack trace ---
  67. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  68. at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  69. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
  70. at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
  71. at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
  72. at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
  73. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  74. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  75. Exception has been thrown by the target of an invocation.
  76. Larss-MacBook-Air:Server larsjorgensen$ clear
  77.  
  78. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  79. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  80. at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
  81. --- End of inner exception stack trace ---
  82. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  83. at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  84. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
  85. at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
  86. at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
  87. at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
  88. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  89. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  90. Exception has been thrown by the target of an invocation.
  91. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  92. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  93. at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
  94. --- End of inner exception stack trace ---
  95. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  96. at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  97. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
  98. at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
  99. at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
  100. at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
  101. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  102. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  103. Exception has been thrown by the target of an invocation.
  104. Larss-MacBook-Air:Server larsjorgensen$ clear
  105.  
  106. Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
  107. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  108. at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
  109. --- End of inner exception stack trace ---
  110. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
  111. at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  112. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
  113. at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
  114. at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
  115. at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
  116. at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
  117. at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
  118. Exception has been thrown by the target of an invocation.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement