[Fix] - The type or namespace name ToInt32 does not exist in the namespace Convert

Wikitechy | 1331 Views | visual studio | 07 Jun 2016

 

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 :

  • Visual Studio 2010 
  • .NET Framework version 2.0, 3.0, 3.5 SP1, 4
  • Visual Studio 2012 
  • .NET Framework version 2.0, 3.0, 3.5 SP1, 4, 4.5
  • Visual Studio 2013 
  • .NET Framework version 2.0, 3.0, 3.5 SP1, 4, 4.5, 4.5.1

Related Tags:

  • c# - namespace doesn't exist 
  • Convert.ToInt32 Method
  • 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'




Workshop

Bug Bounty
IOT Hackathon
Webinar

Join our Community

Advertise