In etherum wallet I am getting an error of no key for given address or file during deployment of the contract. What will be the reason for the same?


contract User{

    string public userName;

    function User(string _name){

     userName = _name;


  • It was fixed when you restarted it, right? Aug 25, 2016 at 11:18
  • Yaa it got fixed when I restarted it.Also came to know that it happened because of key not matching.But now sure why when I restarted, it got resolved.
    – M Pabari
    Aug 25, 2016 at 11:20
  • It's totally okay to answer your own question. This will help users in the future who may face the same problems. Thanks!
    – q9f
    Aug 26, 2016 at 13:11
  • What do you mean by "restarting"? Can someone provide a more robust answer?
    – fraxture
    May 7, 2018 at 15:44

1 Answer 1


I have solved this problem by restating the wallet.Just close the wallet one time and open it again.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.