473,587 Members | 2,501 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error writing to the Applicaton Log on a Windows 2003 server

I am having a problem writing errors to the application log on a Windows 2003 server running IIS 6
The error message is "InvalidOperati onException: Cannot open log for source {0}."

I have created a Key called "TEST" under the Application in the Registry based on the
microsoft article 329291 and using Solution 1 in that article

In the code I basically do the following

Dim MyLog as new EventLog(
MyLog.Source = "TEST

Then when an error occurs I do thi

MyLog.WriteEntr y(MyLog.Source, "ErrorMessa ge", EventLogEntryTy pe.Error

But I still get the error "InvalidOperati onException: Cannot open log for source {0}.
Before I added the Key to the Registry I was getting Registry Access Denied error

Any suggestions????

Nov 22 '05 #1
2 2242
2003 is pretty much locked down by default. This is possibly being caused by
the security policy settings. Can you do the same thing on a W2K server?
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/

"Paul P" <an*******@disc ussions.microso ft.com> wrote in message
news:A6******** *************** ***********@mic rosoft.com...
I am having a problem writing errors to the application log on a Windows 2003 server running IIS 6. The error message is "InvalidOperati onException: Cannot open log for source {0}."
I have created a Key called "TEST" under the Application in the Registry based on the microsoft article 329291 and using Solution 1 in that article.

In the code I basically do the following:

Dim MyLog as new EventLog()
MyLog.Source = "TEST"

Then when an error occurs I do this

MyLog.WriteEntr y(MyLog.Source, "ErrorMessa ge", EventLogEntryTy pe.Error)

But I still get the error "InvalidOperati onException: Cannot open log for source {0}." Before I added the Key to the Registry I was getting Registry Access Denied error.
Any suggestions???? ?

Nov 22 '05 #2
So it's probably security. You'll need to relax the server's policy to let
you do that.

You'll get a more specific response if you post to one of the Windows
security or admin groups.
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/

"Paul P" <an*******@disc ussions.microso ft.com> wrote in message
news:05******** *************** ***********@mic rosoft.com...
No on Win2K which is running IIS 5 it works just fine. No problems writing to the log.
----- Klaus H. Probst wrote: -----

2003 is pretty much locked down by default. This is possibly being caused by the security policy settings. Can you do the same thing on a W2K server?

--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/

"Paul P" <an*******@disc ussions.microso ft.com> wrote in message
news:A6******** *************** ***********@mic rosoft.com...
> I am having a problem writing errors to the application log on a Windows
2003 server running IIS 6.
> The error message is "InvalidOperati onException: Cannot open log
for source {0}." >> I have created a Key called "TEST" under the Application in the Registry
based on the
> microsoft article 329291 and using Solution 1 in that article.
>> In the code I basically do the following:
>> Dim MyLog as new EventLog() > MyLog.Source = "TEST"
>> Then when an error occurs I do this
>> MyLog.WriteEntr y(MyLog.Source, "ErrorMessa ge",
EventLogEntryTy pe.Error) >> But I still get the error "InvalidOperati onException: Cannot open

log for source {0}."
> Before I added the Key to the Registry I was getting Registry
Access Denied error. >> Any suggestions???? ?

>

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2990
by: Brian Burgess | last post by:
Hi all, Anyone see anything wrong with the following: *************************************************************** <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit Dim nAcctNbr Dim nMsgStart
3
19147
by: Yitzhak | last post by:
I am having "Permission denied" error while calling LogEvent method of WScript.Shell component. Basically, ASP page calls Windows Script Host Shell component to log events to the OS Application Event log. My environment: Windows Server 2003, IIS 6, WSH, Classic ASP, Vbscript Below is the code and the error: Code:
5
16239
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet...
2
329
by: Paul P | last post by:
I am having a problem writing errors to the application log on a Windows 2003 server running IIS 6 The error message is "InvalidOperationException: Cannot open log for source {0}." I have created a Key called "TEST" under the Application in the Registry based on the microsoft article 329291 and using Solution 1 in that article In the code...
6
4731
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
5
2780
by: Ken Cox [Microsoft MVP] | last post by:
MS has posted this here: http://www.asp.net/faq/ms03-32-issue.aspx Fix for: 'Server Application Unavailable' Error after Applying Security Update for IE ------------------------------------------------------------------------------- -
1
3150
by: Keith | last post by:
All, I have been told this is an ASP.NET issue and not an IIS issue, so I am posting this here. I have a problem with ASP.NET returning an HTTP 500 error when trying to run ASPX pages on Windows Server 2003 Enterprise Edition Only. This works on Windows 2000, Windows 2003 Web Edition and
4
357
by: Matthew Louden | last post by:
My ASP.NET application runs ok locally, but after I upload all the files to IIS in Windows Server 2003 Standard Edition, and no longer works. This has the following error messages: Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific...
3
2392
by: lodatokab | last post by:
I'm have problem to run crystal report (VS 2005) on my computer with Windows 2000 Server. I run the solution in my dev envroiment (Windows XP) and no problems. When I try to run in on IIS 5.0 on Windows 2000 Server I got the following error: Compiler Error Message: CS0433: The type 'CrystalDecisions.Shared.ExportOptions' exists in both ...
1
3018
by: SPJ | last post by:
Sorry, forgot to mention Subject in my earlier post, hence reposting. ------------ I am writing a script which need's to convert an excel file to csv (text) format. For that I am using the following code: excel = win32com.client.Dispatch("Excel.Application","Quit") workbook = excel.Workbooks.Open(xlsfile) workbook.SaveAs(csvfile,...
0
7920
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7849
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8215
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3844
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1454
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.