[Fix] - The type or namespace name ToInt32 does not exist in the namespace Convert
The type or namespace name 'ToInt32' does not exist in the namespace 'Convert' (are you missing an assembly reference)
Scenario :
- When I try to run my application in visual studio the following error will be occurred “The type or namespace name 'ToInt32' does not exist in the namespace 'Convert'.
Reason :
- We missing a Namespace/Assembly reference of Datatype conversion.
Fix for this issue :
- Here is the easiest way to resolve this issue for “Convert.ToInt32” instead of we can define the name space “System.Convert. ToInt32”.
Applies to :
- .NET Framework version 2.0, 3.0, 3.5 SP1, 4
- .NET Framework version 2.0, 3.0, 3.5 SP1, 4, 4.5
- .NET Framework version 2.0, 3.0, 3.5 SP1, 4, 4.5, 4.5.1
Related Tags:
- c# - namespace doesn't exist
- the type or namespace name does not exist in the namespace (are you missing an assembly reference )
- the type or namespace name does not exist in the namespace 'microsoft'