In Visual Studio 2017 I created a net core 2 web app. In package manager console I typed
update-database
and I received the following error
CREATE DATABASE [Potos.Travel.Web];
System.Data.SqlClient.SqlException (0x80131904): CREATE FILE encountered operating system error 5(Access Denied) while attempting to open or create the physical file 'C:\Users\grkouPotos.Travel.Web.mdf'.
I noticed that the file name 'C:\Users\grkouPotos.Travel.Web.mdf' should be
'C:\Users\grkou\Potos.Travel.Web.mdf' there is a backslash missing.
My USERPROFILE is c:\users\grkou
How can I fix this
Related
These are the details for the warnings recieved from with Unity 2022 and Visual Studio 2022
Shader warning in 'Hidden/VFX/Shuriken Galaxy VFX/Shuriken Galaxy VFX/Output Particle Quad': Ignoring duplicate keyword line 'multi_compile_fog __ FOG_LINEAR FOG_EXP FOG_EXP2'
Warning CS8032 An instance of analyzer Unity.MonoScriptGenerator.MonoScriptInfoGenerator cannot be created from C:\Program Files\Unity\Hub\Editor\2022.2.4f1\Editor\Data\Tools\Unity.SourceGenerators\Unity.SourceGenerators.dll: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.. VFXGraph.OutputEventHandlers C:\Program Files\Unity\Hub\Editor\2022.2.4f1\Editor\Data\Tools\Unity.SourceGenerators C:\Program Files\Unity\Hub\Editor\2022.2.4f1\Editor\Data\Tools\Unity.SourceGenerators\Unity.SourceGenerators.dll 1 Active
I have made sure Visual Studio is using the latest version of .NET but am still finding it difficult to resolve this problem.
Installed .NET 7 with Visual Studio 2022
I reinstalled (clean) Visual Studio 2019 (Microsoft Visual Studio Community 2019 Version 16.8.5) and I get error when I try to clean solution, it complains about connection to https://api.nuget.org/v3/index.json.
When I copy paste the link to web browser I see all the packages but VS cannot reach any package.
When I rebuild I get all this error: 'obj\project.assets.json' not found. Run a NuGet package restore to generate this file.
Then I do from NuGet Console > dotnet restore and I get error:
PM> dotnet restore
Determining projects to restore...
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [C:\Program Files (x86)\Microsoft V
isual Studio\2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : The SSL connection could not be established, see inner exception. [C:\Program Files (x86)\Microsoft Visual Studio\
2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
C:\Program Files\dotnet\sdk\5.0.103\NuGet.targets(131,5): error : The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot [C:\Program Files (x86
)\Microsoft Visual Studio\2019\Community\MyProjects2019\source\repos\Bank\Bank.sln]
PM>
I have been trying for 4 days to resolve this problem without success, any help, any tips.
Thanks
Today I installed ASP.NET 5 on windows and begun creating my first application in Visual Studio 2015.
When the project loads I get an error: "Package restore failed", specifically the following error:
Restore failed Det gick inte att hitta en del av s�kv�gen C:\Users\h\.dnx\packages\Microsoft.Win32.Primitives\4.0.0\Microsoft.Win32.Primitives.4.0.0.nupkg.sha512. NuGet Config files used:
C:\Users\h\AppData\Roaming\NuGet\nuget.config
C:\Users\h\documents\visual studio 2015\Projects\NextTest\nuget.config
Feeds used:
https://api.nuget.org/v3-flatcontainer/
C:\Program Files (x86)\Microsoft Web Tools\DNU
When I look for the missing file I find the following path missing:
C:\Users\h\.dnx\packages\Microsoft.Win32.Primitives\4.0.0\Microsoft.Win32.Primitives.4.0.0.nupkg.sha512
But this one exists, note the extra 0 in the version:
C:\Users\h\.dnx\packages\Microsoft.Win32.Primitives\4.0.0.0\Microsoft.Win32.Primitives.4.0.0.0.nupkg.sha512
How would I go about to solve this?
I've tried to search through the project files but no mention of neither Primitives nor verion 4.0.0.
The "Solution DNX SDK version" is 1.0.0-beta8, (beta5 was also available but not selected).
Delete C:\Users\h.dnx\packages folder and try running "dnu restore" command.
I have been migrating my project to Visual Studio 2015 RC. I have also refactored it into separate projects. Now I need to add a migration for a model change in entity framework but as soon as I open the Package Manager Console I get this error message:
Set-DefaultScaffolder : Cannot get an instance of EnvDTE.DTE At C:\Users...\Visual Studio 2010\Projects\MyProject\packages\T4Scaffolding.Core.1.0.0\tools\init.ps1:50 char:30
If I clear the console and try again, I get "an exception has been encountered" - with more information in the activity log. Inspect the activity log and the exception is:
System.ArgumentOutOfRangeException: Specified argument was out of the
range of valid values. Parameter name: span at
Microsoft.VisualStudio.Text.SnapshotSpan..ctor(ITextSnapshot snapshot,
Span span) at
NuGetConsole.Implementation.Console.WpfConsoleClassifier.GetClassificationSpans(SnapshotSpan
span) at
Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__1.MoveNext()
at
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__1.MoveNext()
I realised that I had removed some packages that I probably should not have. So I re-installed these:
ModelScaffolding 0.9.2
MvcScaffolding 1.0.9
T4Scaffolding 1.0.8
This appears to have taken the second exception (ArgumentOutOfRangeException) away. However, now when I try Add-Migration I get
Join-Path : Cannot bind argument to parameter 'Path' because it is
null. At C:\Users...\Visual Studio
2010\Projects\MyProject\packages\EntityFramework.6.1.0\tools\EntityFramework.psm1:713
char:27
I tried uninstalling and re-installing Entity Framework. I noticed during install that the Join-Path error was displayed again, but package-manager continued, and reported a successful install. I still got the error when I tried Add-Migration
Then I opened the solution in Visual Studio Express 2013. I still get the initial Cannot get an instance of EnvDTE.DTE error, but I can clear the console window and I can add a migration - Phew!
I'd still like to get rid of that error message...and use VS 2015...
There was an error in the NuGet VS extension. You can fix this by installing the latest NuGet (not available through VS yet). This may require an update of Powershell and/or Windows Management Framework.
Whenever I try to open package manager console in Visual studio 2013 update 3 I get this error :
Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Management because of the following error: > Could not load file or assembly
'file:///C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Microsoft.PowerShell.Commands.Management.dll' or
one of its dependencies. The system cannot find the file specified.
I have uninstalled/Re installed powershell. It didn't change anything.
any ideas?
Thank you.