This is normally an error detected by the eth.estimateGas(...) function call, where this call returns back a result that gasUsed==gas as you have found in your answer to How to estimate gas for a function without any input parameter?.
You can see the Mist error message at mist.en.i18n.json#L193:
"estimatedGasError": "It seems this transaction will fail. If you submit it, it may consume all the gas you send.",
And this estimatedGasError error message is displayed by the code at sendTransactionConfirmation.html#L56-L66:
{{#if transactionInvalid}}
<p class="info dapp-error"> {{{i18n "mist.popupWindows.sendTransactionConfirmation.estimatedGasError"}}} </p>
{{else}}
...
{{/if}}
The transactionInvalid status is computed by the code at sendTransactionConfirmation.js#L259-L263:
'transactionInvalid': function() {
return TemplateVar.get('estimatedGas') == 'invalid'
|| TemplateVar.get('estimatedGas') == 0
|| typeof TemplateVar.get('estimatedGas') == 'undefined';
}
You may want to check your smart contract code to work out why the an error is being thrown.
v 0.8.but gives same error message onv 0.8.5andv 0.8.6. There is no syntax error obviously otherwise compiler would have detected it, so what is there is latest versions that is preventing my contract from deployment.One more thing, I am pretty sure I deployed same code on v0.8.5 3 days ago and it worked fine. But now I am getting hit by same error in this version too. Quite confused. – Prashant Prabhakar Singh Oct 17 '16 at 05:40fromwhile deploying contract to main address and worked fine. – Prashant Prabhakar Singh Oct 17 '16 at 05:50