Thanks for the advice, but it isn't working. I ran repair wallet and I got most of the coins to reappear in the wallet. But every time I try to send the coins to Bittrex I get the following error, and when I repair wallet the amount is always lower.
The explanation from iGotSpots is one way to solve this.
An easier way is if you have a backup of your wallet, as I explained before.
If that still does not help, then it might be that the block chain that your wallet has is not consistent,
so it might be necessary to
- make sure you have a good backup of your wallet.dat file in a safe place (for example a memory stick) (preferably the last backup before the trouble started)
- remove all files that the wallet downloaded and generated in the MMXIV directory, under windows this usually is in the Roaming directory of the Application Data (note: it is hidden by default, but when you type the name then you can go to it or enable display of hidden directories in the configuration) so the place is C:\Users\
\AppData\Roaming\MMXIV\
Under this directory you will see the wallet.dat and the database with the blocks that were downloaded.
- You can delete everything here (if your wallet.dat is good then leave that in place) and copy the backup wallet.dat to this location again.
- Now, if you restart the wallet application, it will find your backup wallet.dat but it will have to download the block chain fresh, so it will start with zero balance (because it can't find any coins in the block chain until it has synchronised with the network) and as it downloads,
it will find all your transactions in the block chain and show you the balance that you had at that time, so it may go up and down while it
"fast-forwards" through time downloading the different blocks until it is at today's blocks and then you should see your correct balance again.
It may take an hour or so for the download (depending on internet latency and processor speed as well as how large the block chain has grown).
Once everything has synchronised and showing the correct balance, you can take a complete copy of the *entire* MMXIV directory into a
backup directory on your hard drive, so next time you want to go back to a known point, you do not need to download the entire block chain, only what has been generated since your last backup. Since this backup can easily be over 1 GB, I do not suggest to put it on a Flash drive, since it can easily be downloaded again. Only the wallet.dat is really important, because it contains the keys to get access to your coins, so that you must store in a safe place.
Note: this is true of every crypto currency, not just this one.
Hope this helps!