So all of a sudden a few of the computers at my job stopped working with NuGet.
The problem started with following error.
So I went over and examined the Log file which gave me following errors
Activitylog.xml (layout in the question went haywire - pastebin link)
So naturally I went over to the global config of NuGet just to find it empty. So I reinstalled NuGet, deleted the folder, reinstalled. You know the normal way of doing thing. After finding out that it didn't work, I tried it several times over with rebooting, registry cleaning, etc..
Also tried this VS2013: Error Loading Solution
So after a few tries
I managed to get to this point.
The funny thing about this issue, not all of our computers are having this problem, just certain ones. Anyway, I managed one time to get the right config that the NuGet tool window loaded correctly which gave me another error while building. (Mondays suck).
Error occurred while restoring NuGet packages: Error reading 'FILEPATH\21_MES_ACC\CSD4.WPF4.011DSP\nuget.config'.
So I'm not sure from this point how all these errors came to be and why not everybody is facing the same issue. Did someone face the same error and solved it? Do we need to reinstall things? Is this a NuGet issue? Is there a fix somewhere on the internet ?
Seems like there was an invisible whitespace in the nuget config file which was causing havoc
Related
This is a shared project that was working for me until today. It still compiles without errors in our CI system and for all of my teammates, but my computer started getting more than 3000 CS0234 errors when I compile this solution.
I tried cleaning the solution, I manually deleted the bin and obj folders, I deleted the packages folder and got all the NuGet packages again from the package source, I even rebooted my machine. Nothing helps.
These are not real errors, if I double click an error message, the source file opens initially with red ink, but this quickly disappears, then the error is removed from the error list.
I can fix my problem by simply double clicking each error and waiting a few seconds, but there are over 3000 error messages. My question is, is there a faster way to get Visual Studio back in sync. Since this only affects my machine there must be some kind of cache somewhere that's broken and if I could find it and delete it, maybe this situation would be resolved quickly.
I set up a new project with Visual Studio 2019 version 16.3.10. When I try to build I get the following error:
EasyTcpStubs.c : fatal error C1090: PDB API call failed, error code '3':
W:\Dropbox\Me (Mine)\TcpToNamedPipe\TcpToNamedPipe\Debug\vc142.pdb
I have searched the internet and this site for any explanation of this error. Maybe I missed it but I could not find anything.
The project is a Console project.
The error occurs without a line number so it does not seem to be the source. I tried another project and it compiles OK (but it is an old project whereas this error is occuring on a brand new project.
Does anyone know something about this?
For me, I stopped Dropbox and it works. It seems that something is using W:\Dropbox\Me (Mine)\TcpToNamedPipe\TcpToNamedPipe\Debug.
In my experience this error is likely due to some permission error. If your project is in Dropbox, OneDrive, etc, most likely you get this error because your Dropbox cannot sync and update files properly. Restart Dropbox and that should fix the issue.
In My case, I suspect it is some type of race condition/lock issue with the code that opens/closes the *.pdb file. In my case I am running /MP (Multiprocessor Compile) so up to 4 *.cpp modules being built at a time. It works fine on a stand alone build machine. But I'm a vendor and must use a VM environment to develop for my customer, and the disk requirements are so large I must place the builds on a network share.
The latency of file I/O access over a network share seems to be the issue.
Thats all I know about the issue at the moment.
As I learn/test discover more, I can improve this answer.
Synology Drive Client (v3.2.0) caused this error for me. Pausing the sync eliminated the error. Thanks to all for the clue of DropBox, OneDrive, etc. causing the issue.
I'm currently attempting to fix build issues which occured once i tried to update some component. they told me i need to update some references. Oddly enough i now get these issues:
Now i'll just add some text so someone comming from google can find the potential answer as well:
error reading xamarin android.support embedded jar error in opening zip file.
Does anyone know how to fix this? I've tried:
Deleting and restoring nugetpackages, in hopes the nuget install script supplied these files,
Uninstall+Install Support Package in Android SDK Manager
Deleting files, in hope they are just temporary references and are pulled by xamarin if they are missing.
Neither one of those attempts worked out sadly.
Any ideas?
Turns out the reason of this issue was actually my own impatience. At some point after package updates i must have canceled the build process assuming that it got stuck, because it just wouldn't deploy. That resulted in incomplete jar files.
I fixed the issue by deleting the folders in AppData/Local/Xamarin which raised errors and that in turn made sure the build process redownloads the required files properly.
Suddenly I'm getting an odd error popping up every few minutes.
'Periodic workspace save.' has encountered a problem.
Could not write workspace metadata '{workspace}.metadata.plugins\org.eclipse.core.resources.snap'.
I've checked and the file is there. It's not marked "read-only".
Nothing's changed recently. I am on a Citrix VM running Windows 7 and my workspace is on a mapped drive. However, this setup has been running fine for over a year.
Any ideas?
I ended up creating a new workspace and moving my projects over there. Fortunately there weren't many (nor did I have too many snippets) and I could recustomize the way I wanted.
This is not a very good solution, however, and I'd love to see a better way to fix this issue.
I've checked for other with the same problem and found only three suggestions (reinstall, remove an update and restore files associations).
I haven't installed any updates, i've tried to reinstall the whole shabang (successfully) and i tested to restore the file ass'es. All to no avail.
When i click on the CSS-files i still get the message:
"The operation could not be completed. Undefined error.
That goes for all the projects and only CSS files (as far as i can see). The sites work properly as before. It's just the IDE that can't open the darned files! Suggestions?
This was really strange. The solution proved to be to install Web Standards from Scott Hanselman, remove it and THEN install it again. Truly strange indeed.