Jump to content

Not converting VBScript classes in Classic ASP


Recommended Posts

The VBUC does not convert all asp files.


The code below is such an example

Original: \general\data\app_code\Query.asp
  Class Query
    Private m_commandText
    Private m_commandTypeEnum
    Private m_commandParameters
    Public Property Let CommandText(strText)
      m_commandText = strText
    End Property
    Public Property Get CommandText()
      CommandText = m_commandText
    End Property

    Public Property Let CommandParameters(parameters)
      m_commandParameters = parameters
    End Property
    Public Property Get CommandParameters()
      CommandParameters = m_commandParameters
    End Property

    Public Property Let CommandTypeEnum(commandType)
      m_commandTypeEnum = commandType
    End Property
    Public Property Get CommandTypeEnum()
      CommandTypeEnum = m_commandTypeEnum
    End Property
  End Class

Converted: \general\data\app_code\Query.aspx
<script language="C#" runat="Server">


Is there a reason why they fail and how can I solve that?



Link to comment
Share on other sites

  • Mobilize.Net Staff

Hi Nas,

We were able to reproduce the error in a very specific scenario. The issue happens only if the ASP file has two classes with the same name. For instance, if you have an ASP file with only one class “Query” the VBUC delivers the expected output. If the user has the name of the class duplicated in the same file the error occurs as you state, can you please check if you have the class “Query” in the same file without noticing.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use