Monday, February 20, 2012

SharePoint 2010 Error : Invalid assembly public key. (Exception from HRESULT: 0x8013141E)



I was banging my head against the wall while trying to figure out what on earth SharePoint was intending to tell me by "Invalid assembly public Key". 


Well, it turns out, I first created an isolated WCF service and just a few minutes later I decided to run it under the SharePoint Context (by deploying it to ISAPI mapped folder). The keyword attribute 'PublicKey' appeared to be the culprit as it doesn't get parsed correctly, using 'PublicKeyToken' instead will likely fix the problem.


Hope that'll save you some time.  

No comments: