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.


bphillips76 wrote Aug 14, 2009 at 4:13 AM

Version 1.4 has now been released and includes this fix.

wrote Feb 14, 2013 at 2:35 AM

wrote May 16, 2013 at 7:42 AM

wrote May 16, 2013 at 7:42 AM

wrote Jun 14, 2013 at 9:02 AM