Results 1 to 5 of 5

Thread: ASP/EXE/IIs 5

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110

    Angry

    Hey I just bought the Hands on ASP for VB6/Web Development and it's great HOWEVER I;m having a problem on chapter 11..

    Here is the sample code
    <% oExcel = Server.CreateObject("Excel.Application")%>
    < oExcel.Caption %>

    it's support to show Microsoft Excel on the page when it loads however I'm getting this..

    <b>Error Type:
    Microsoft VBScript runtime (0x800A01A8)
    Object required: 'Microsoft Excel'
    /Default.asp, line 12</b>

    It must be something stupid. I searched the registry for AllowOutOfProcCmpnts.. found none, so I added the key to where microsoft says to (to make IIS run EXE's).. but it didnt work.. I figured I ask here and maybe get a quicker answer then to write the authors of the book.





  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    This is probably a longshot, but do you have Excel installed?? The example is assuming you do.

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110
    well of course! Here is my setup..

    Win2000 Profession with SP1 (IIS 5.0 on NTFS)
    Office 2000 Profession with SP1
    VB6 Professional with SP4



  4. #4
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    Your problem is that you didn't set the object. Your sample code should look like this:

    Code:
    <% Set oExcel = Server.CreateObject("Excel.Application")
       oExcel.Caption %>
    If you don't add the Set keyword, a referencable object never gets created.

    Hope this helps.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    flanders, nj 07836
    Posts
    110
    THAT DID IT! I can't F#$#@$ believe it. You would think that when you write a beginners guide book that you ATLEAST check for bugs in the example code! thanks guy I owe you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width