Share via


System.MissingMethodException: Method not found: Int32

Question

Monday, December 19, 2016 1:21 PM

Hi,

We have a webjob in Azure that has started to fail.

I get the message "System.MissingMethodException: Method not found: 'Int32". I assume that .net can't find the method "Convert.ToInt32" that we have in the code.

Does anyone know why this error occur? Everything is executing fine when running locally.

The console application has .net version 4.5.

All replies (1)

Monday, December 19, 2016 2:37 PM âś…Answered

Hi,

Is your both environment is running the same version of .NET framework?

This is a problem which can occur when there is an old version of a DLL still lingering somewhere around. Make sure that the latest assemblies are deployed and no duplicated older assemblies are hiding in certain folders. Your best bet would be to delete every built item and rebuild/redeploy the entire solution.

Thanks,
Sabah Shariq

[If a post helps to resolve your issue, please click the "Mark as Answer" of that post or click "Vote as helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer faster. ]