There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Public Key Token Intermittently Not Generated Correctly for Feature Receiver on Project Creation
I've had two cases where the public key token for the feature receiver in feature.xml file is not generated correctly. The first time I was getting an error upon solution deployment that it couldn't load the feature receiver class and after looking at
for a while I couldn't figure out why. In that case I wasn't using the FeatureReceiver so I just commented it out of feature.xml and went on my merry way.
But I had the same problem today for a new feature and finally figured out that the public key token was incorrect by comparing it to my assembly in the GAC. In this case it was missing the 5th character in the token. All the other characters were correct -
it was just missing the 5th character.
I realize this will probably be difficult to debug as it seems to be intermittent, but wanted to post it here in case anyone else gets the problem in the future they can add to this thread.