Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Larss-MacBook-Air:project larsjorgensen$ cd Server/
- Larss-MacBook-Air:Server larsjorgensen$ ls
- Context Startup.cs
- Controllers appsettings.Development.json
- Hubs appsettings.json
- Migrations bin
- Program.cs certificate.pfx
- Properties obj
- Server.csproj wwwroot
- Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”<Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345>"
- > ;
- >
- Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
- ;
- > dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
- ^C
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"> z
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” ”Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345">
- >
- >
- >
- >
- >
- >
- >
- > "
- Successfully saved ”DB:Connectionstring” = ”Host=localhost to the secret store.
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/fred/Documents/Programming/dotnet/project/Server/obj/project.assets.json'.
- at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirectory, Func`2 errorRewriter)
- at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode)
- at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
- at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
- at System.IO.File.OpenText(String path)
- at Microsoft.EntityFrameworkCore.Tools.RootCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Could not find a part of the path '/home/fred/Documents/Programming/dotnet/project/Server/obj/project.assets.json'.
- Larss-MacBook-Air:Server larsjorgensen$ dotnet user-secrets set ”DB:Connectionstring” "Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345"
- Successfully saved ”DB:Connectionstring” = Host=localhost;Database=semesterprojekt;Username=postgres;Password=12345 to the secret store.
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- 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)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
- --- End of inner exception stack trace ---
- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
- at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
- at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
- at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
- at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
- at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Exception has been thrown by the target of an invocation.
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- 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)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
- --- End of inner exception stack trace ---
- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
- at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
- at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
- at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
- at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
- at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Exception has been thrown by the target of an invocation.
- Larss-MacBook-Air:Server larsjorgensen$ clear
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- 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)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
- --- End of inner exception stack trace ---
- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
- at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
- at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
- at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
- at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
- at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Exception has been thrown by the target of an invocation.
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- 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)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
- --- End of inner exception stack trace ---
- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
- at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
- at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
- at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
- at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
- at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Exception has been thrown by the target of an invocation.
- Larss-MacBook-Air:Server larsjorgensen$ clear
- Larss-MacBook-Air:Server larsjorgensen$ dotnet ef database update
- 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)
- at Microsoft.EntityFrameworkCore.Design.OperationExecutor..ctor(Object reportHandler, IDictionary args)
- --- End of inner exception stack trace ---
- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
- at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
- at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
- at Microsoft.EntityFrameworkCore.Tools.ReflectionOperationExecutor..ctor(String assembly, String startupAssembly, String projectDir, String dataDirectory, String rootNamespace, String language)
- at Microsoft.EntityFrameworkCore.Tools.Commands.ProjectCommandBase.CreateExecutor()
- at Microsoft.EntityFrameworkCore.Tools.Commands.DatabaseUpdateCommand.Execute()
- at Microsoft.DotNet.Cli.CommandLine.CommandLineApplication.Execute(String[] args)
- at Microsoft.EntityFrameworkCore.Tools.Program.Main(String[] args)
- Exception has been thrown by the target of an invocation.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement