Assisted Solutions Forums

Welcome! These forums provide help and documentation for our products and services.
Welcome to Assisted Solutions Forums Sign in | Join | Help
in Search

BC30112: 'CityStateFinder' is a namespace, and so is not a valid expression.

Last post 07-25-2006, 4:53 PM by Jimmy. 2 replies.
Sort Posts: Previous Next
  •  07-24-2006, 10:50 AM 2554

    BC30112: 'CityStateFinder' is a namespace, and so is not a valid expression.

    Great work on the citystatefinder from what I can tell it will be extremely useful

    I have your module working in the sample docs on our server but am trying to implement it on another page and am getting the following error I was wondering if you have anyideas

    Compiler Error Message: BC30112: 'CityStateFinder' is a namespace, and so is not a valid expression.

    Line 6:                  Dim locations() as CityStateLocations = CityStateFinder("28412", True)

    Here is the code I am using
    It seems simple enough and should be working I got it from the readme file

     

    <%@ Import Namespace="System.Web.UI" %>
    <%@ Import Namespace="AssistedSolutions.WebControls.CityStateFinder" %>
    <script language="VB" runat="server">
    Sub Page_Load(Src As Object, E As EventArgs)
     Dim i as integer
                                     Dim locations() as CityStateLocations = CityStateFinder("28412", True)

              For i = 0 To locations.length - 1
                  response.write(locations(i).StateName)
                   'do something with locations(i).Rank
                   'do something with locations(i).Quality
              Next                           
    end sub
    </script>

  •  07-24-2006, 10:59 AM 2555 in reply to 2554

    Re: BC30112: 'CityStateFinder' is a namespace, and so is not a valid expression.

    Try referencing AssistedSolutions.WebControls instead of AssistedSolutions.WebControls.CityStateFinder.
     
    Any change you could forward over the whole project you are working on or at least a stripped down version?  That way I could build and run it and see the error in real time.

  •  07-25-2006, 4:53 PM 2561 in reply to 2555

    Re: BC30112: 'CityStateFinder' is a namespace, and so is not a valid expression.

    ok I changed that but now I am getting a new error
    I posted it here
    http://community.assistedsolutions.com/forums/2560/ShowPost.aspx#2560


View as RSS news feed in XML
Powered by Community Server, by Telligent Systems