Issue 0x80040402 (VS-Code) by creating a new project
Hello guys!
When I want to create a new project it enters the error 0x80040402 - may somebody can help me with that?
Of course I already googled (and searched on this discord) for it and tried the following things:
- Repair VS-Code
- create the project - get the issue - restart visual studio - do the same
Another thing I read was that there are some times problems with CPUs by Intel and it works to reset the computer - that I did not tried out yet.
7 Replies
is this just a blank console project?
No it should be a ASP.NET-project (with usage of SignalR)
hm
well, that error code has 3 possibilities, none of which really make sense to me:
DIERR_BADINF
for dinputd
MS_E_PURPOSEID
for mmstream
DS_E_DATASOURCENOTAVAILABLE
for windowssearcherrors
not quite sure i understand how any of those relate to ASP.NEThm, thanks! But this means to that you do not know how to fix it?
i do not 😦
What does creating a project by command line say?
dotnet new ..
Thanks a lot anyway!
I tried
dotnew new web
and that worked.
(Worked means that there is some success-message in the console)
I installed it now on a new windows (on a virtual machine) and used Enterprise instead of Community - that works fine.
Thanks everyone for help!
Well it's me again, I wanted to add an Item but it wasn't found - from that what Google says I have to use "dotnet add package {name} {version}" (so I entered "dotnet add package Microsoft.Owin --version 4.2.2" (also tried it without the version) but it always sais "Stay sure that the prompt is correct; file exists on disk; wasn't able to add packet(link)
Can you maybe help with this too?
"file exists on disk" - I thought it would be download it itself?