ASP Problem: "IIS log failed to write entry" in Event Log

ASP Problem: "IIS log failed to write entry" in Event Log

Post by cherrypara » Sat, 27 May 2006 10:52:34

Hi All,

I have moved an asp system from Window Server 2000 to Window Server
2003 recently.
Many error occured and most of them are unable to get the control's
value in the page. I am newbie to asp and I would like to ask any
different in Window Server 2000 and 2003 will cause error like this?
and is there any KB told how to do the migration like this? ( I have
tried but no results)

Although I have solved these problem finally, the system always doesn't
work but everytime I just reset iis it can work again and then it got
out of order a number of hours later.

So, I go to Event Viewer in the Server and I have found many error like
Event Type: Warning
Event Source: Active Server Pages
Event Category: None
Event ID: 9
Date: 5/26/2006
Time: 9:32:40 AM
User: N/A
Computer: CEITROOT2
Warning: IIS log failed to write entry, File
/LM/W3SVC/1/Root/Ordering/global.asa Line 23 Object required:
'Session'. .

For more information, see Help and Support Center at
Then I go to see line 23 of global.asa. it is just "Session.CodePage =

'Sub Session_OnStart
'**Put your code here **
'End Sub

'EventName Description
'Session_OnStart Runs the first time a user runs any page in
your application
'Session_OnEnd Runs when a user's session times out or quits
your application
'Application_OnStart Runs once when the first page of your
application is run for the first time by any user
'Application_OnEnd Runs once when the web server shuts down
Session.CodePage = 65001 <----line 23

Sub Application_OnStart
set xlsObj =CreateObject("Excel.Application")
End Sub

I can't get any idea about the problem and I don't know where to start
to check for it.
So, please give some advice for me on this items.
Is it the problem of ASP? or is it the problem of IIS or others?


1. IIS log failed to write entry Object required: 'Response'.

2. how to get powershell to write to event log or write a log file?

I have a script using


I would like to have a TXT file outputed to say that the scrip ran succesfull.

Something like
remove-item C:\temp -vervbose
Echo the file removal was successful | C:\logs\removal.log
copy-item C:\temp -destination D:\temp
echo the file copy was successful | C:\logs\copy.log

All i am trying to do is verify that the date stamps on the copied files
have changed or that the files are deleted and then are written to the new
location and that succeeded.

If i could do this with an eventlog event that would be great as well and
probably preferred.

any help?

3. Creating an Event Log entry based on the text of appending log file

4. Win2003 IAS event log entries in application log??!!

5. Creating an Event Log entry based on the text of appending log file

6. Strange Event Log & ISS Log Entries (__safecontrolpath.aspx)

7. event logging service running, but no log entries

8. My.Log.WriteException not writing to Event Log with ASP.Net 2.0

9. Need help on the Permissions needed to log to Event Log from ASP.NET?

10. SSIS Log Provider fails to write log file

11. Event ID 4100 or Event ID 4356 is logged in the application event log

12. Logging Application Block Not Writing to Vista Event Log

13. My.Log.Writeexception not writing to Application Event Log.

14. Detect the latest Event log occcurence of a particlar Event ID in the Event log

15. Need help with a log off/log on problem...can log off then log on