While working with a page that uses an excel object yesterday, it suddenly started to hang. The code is
The first line I had an error on was
which caused the page to hang. Now, when I try to open the page at all
hangs for a bit and then fails "server.createObject failed".
A side note, the excel file that I was trying to open when it hung for the first time is now locked open by IUSER so I cannot even delete it no matter how I try.
Any insite would be appreciated.
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
Code:
' create the Excel object
Set excelApp = Server.CreateObject("Excel.Application")
' open the spreadsheet file
excelApp.Workbooks.Open Server.MapPath("../uploads/lrt/abstracts/" & lseAbs)
' some processing occurs...
Set excelSheet = Nothing
excelApp.workBooks.Close
Set excelApp = Nothing
The first line I had an error on was
Code:
excelApp.workBooks.Close
Code:
Set excelApp = Server.CreateObject("Excel.Application")
A side note, the excel file that I was trying to open when it hung for the first time is now locked open by IUSER so I cannot even delete it no matter how I try.
Any insite would be appreciated.
Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook