Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2007, 09:25 AM
Authorized User
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default Illegal assignment: 'adCmdText'

I have this swapsheet type page that was created before me. It has worked perfectly until a few days ago and I don't know what's going on. Nothing has been touched in the code for 8 months, so I don't believe it has anything to do with the asp.net.

When going to the page, you get this error.



Microsoft VBScript runtime error '800a01f5'

Illegal assignment: 'adCmdText'

D:\INETPUB\INTRANET\NEWSWAPSHEET\../inc.asp, line 3



It appears to be the include page, where it connects to the server/database table. And if you go further into it (compiler output), this is what it is telling me.



D:\Inetpub\Intranet\inc.asp(3) : error BC30451: Name 'adCmdText' is not declared.

    adCmdText = 1
    ~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(4) : error BC30451: Name 'adCmdTable' is not declared.

    adCmdTable = 2
    ~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(5) : error BC30451: Name 'adCmdStoredProc' is not declared.

    adCmdStoredProc = 4
    ~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(6) : error BC30451: Name 'adCmdUnknown' is not declared.

    adCmdUnknown = 8
    ~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(9) : error BC30451: Name 'adOpenForwardOnly' is not declared.

    adOpenForwardOnly = 0 '# (Default)
    ~~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(10) : error BC30451: Name 'adOpenKeyset' is not declared.

    adOpenKeyset = 1
    ~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(11) : error BC30451: Name 'adOpenDynamic' is not declared.

    adOpenDynamic = 2
    ~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(12) : error BC30451: Name 'adOpenStatic' is not declared.

    adOpenStatic = 3
    ~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(15) : error BC30451: Name 'adLockReadOnly' is not declared.

    adLockReadOnly = 1
    ~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(16) : error BC30451: Name 'adLockPessimistic' is not declared.

    adLockPessimistic = 2
    ~~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(17) : error BC30451: Name 'adLockOptimistic' is not declared.

    adLockOptimistic = 3
    ~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(18) : error BC30451: Name 'adLockBatchOptimistic' is not declared.

    adLockBatchOptimistic = 4
    ~~~~~~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(21) : error BC30451: Name 'adApproxPosition' is not declared.

    adApproxPosition = 16384
    ~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(29) : error BC30807: 'Let' and 'Set' assignment statements are no longer supported.

    Set conn = Server.CreateObject("ADODB.Connection")
    ~~~
D:\Inetpub\Intranet\inc.asp(29) : error BC30451: Name 'conn' is not declared.

    Set conn = Server.CreateObject("ADODB.Connection")
        ~~~~
D:\Inetpub\Intranet\inc.asp(30) : error BC30451: Name 'conn' is not declared.

    conn.ConnectionTimeout = 1
    ~~~~
D:\Inetpub\Intranet\inc.asp(31) : error BC30451: Name 'conn' is not declared.

    conn.CommandTimeout = 30
    ~~~~
D:\Inetpub\Intranet\inc.asp(32) : error BC30451: Name 'conn' is not declared.

    conn.Open "Driver={SQL Server};" & _
    ~~~~
D:\Inetpub\Intranet\inc.asp(32) : error BC30800: Method arguments must be enclosed in parentheses.

    conn.Open "Driver={SQL Server};" & _
              ~~~~~~~~~~~~~~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(37) : error BC30807: 'Let' and 'Set' assignment statements are no longer supported.

    Set cmdTemp = Server.CreateObject("ADODB.Command")
    ~~~
D:\Inetpub\Intranet\inc.asp(37) : error BC30451: Name 'cmdTemp' is not declared.

    Set cmdTemp = Server.CreateObject("ADODB.Command")
        ~~~~~~~
D:\Inetpub\Intranet\inc.asp(38) : error BC30451: Name 'cmdTemp' is not declared.

    cmdTemp.CommandType = adCmdText
    ~~~~~~~
D:\Inetpub\Intranet\inc.asp(38) : error BC30451: Name 'adCmdText' is not declared.

    cmdTemp.CommandType = adCmdText
                          ~~~~~~~~~
D:\Inetpub\Intranet\inc.asp(39) : error BC30807: 'Let' and 'Set' assignment statements are no longer supported.

    Set cmdTemp.ActiveConnection = conn
    ~~~
D:\Inetpub\Intranet\inc.asp(39) : error BC30451: Name 'cmdTemp' is not declared.

    Set cmdTemp.ActiveConnection = conn
        ~~~~~~~
D:\Inetpub\Intranet\inc.asp(39) : error BC30451: Name 'conn' is not declared.

    Set cmdTemp.ActiveConnection = conn
                                   ~~~~


It appears that something is wrong with the server(?) but I've never seen this type of error before, so I'm not sure what's going on. Like I said, I don't believe it is coding, but where do I start looking for an answer???

Help!!

 
Old August 23rd, 2007, 09:29 AM
Authorized User
 
Join Date: Apr 2006
Posts: 31
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Update: I've just checked several other asp.net forms on the site and they have the same error. The asp pages do not. Now I'm really confused......






Similar Threads
Thread Thread Starter Forum Replies Last Post
Illegal Assignment Broodmdh Classic ASP Basics 2 August 22nd, 2008 06:21 AM
ERROR: Illegal characters in path owen_xgy .NET Framework 2.0 8 April 2nd, 2008 10:21 AM
Illegal operation on empty result set. amisrivas JSP Basics 2 February 19th, 2008 11:49 PM
Illegal key size rnmisrahi BOOK: Beginning Cryptography with Java 3 January 8th, 2007 09:06 PM
ParseException:Illegal character inAxis Webservice manaspanda J2EE 1 February 23rd, 2004 11:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.