Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 520
  • Last Modified:

Name 'Convert' is not declared.

I am quite new to ASP.Net and have written an App in .Net Version 2 with Microsofts Visual Web Developer 2005

When uploaded to my Web Server which is only runnig .Net Framework Version 1.X

I get this error on my Webserver when Converting to String or Integer

Compiler Error Message: BC30451: Name 'Convert' is not declared.

Source Error:


Line 31:             Dim Cat As Integer
Line 32:             Dim WebvertID As Integer
Line 33:             WebvertID = Convert.ToInt16(Request.QueryString("WebvertID"))
Line 34:             Cat = Convert.ToInt16(Request.QueryString("Cat"))
Line 35:             TownId = Convert.ToString(Session("TownID"))
This error is easily fixed by using CStr and CInt.

My question is doed Version 1.x not support Convert.ToString or do I just need to Import System.Something



1 Solution
tclgbAuthor Commented:
Thanks for quick response

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now