Microsoft VBScript runtime error '800a000d'

Discussion in 'C#' started by janvi, Jul 22, 2008.

  1. #1
    HI All,

    I am getting the error message in my application as "Microsoft VBScript runtime error '800a000d' Type mismatch "objRequest.Address1 "".

    I am typing few lines of code where i am getting error message,

    Dim objRequest,objResponse
    Set objRequest = Server.CreateObject("HomeValueBotClient.ValueRequest")
    objRequest.UserReference = "19205"
    objRequest.Address1 = Request.QueryString("address")
    objRequest.City = Request.QueryString("city")
    objRequest.State = Request.QueryString("state")
    objRequest.Zip = Request.QueryString("zip")

    Can anyone help me in solving this problem.

    Thanks,
    Janvi
     
    janvi, Jul 22, 2008 IP
  2. mohi.khan

    mohi.khan Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What is the type of Address1 field of HomeValueBotClient.ValueRequest. Check the properties of this?
     
    mohi.khan, Jul 22, 2008 IP
  3. Sleeping Troll

    Sleeping Troll Peon

    Messages:
    217
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Without being able to see your data, I am guessing you have some illegal characters in the "address" string probably spaces which will be returned as %20 and cause your error. you will need to pull the value into a variable such as temp = Request.QueryString("address") and then use the replace function to replace illegal values ( replace "%20" with " ") for example.
     
    Sleeping Troll, Jul 22, 2008 IP