Name 'Convert' is not declared.

Posted on 2005-04-18
Last Modified: 2011-09-20
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



Question by:tclgb
    LVL 39

    Accepted Solution


    Author Comment

    Thanks for quick response

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now