473,239 Members | 1,557 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,239 software developers and data experts.

writing to a remote event log.....

okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do some
business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to
the event log....

But when I moved the COM+ component onto a remote application server I get
the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException' occurred
in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know that
the COM+ service is running correctly because several calls i have made to
the component have completed correctly, but when a particular method fails
and attempt to wirte to the remote Event log it fails and the exception is
generated in the ASP.Net application saying the above, this indicates that
it can not write to the event log does it?

Cheers in advance

Ollie
Nov 16 '05 #1
7 2925
Everybody who cross-posts has a reason for doing so. However, nobody has a
RIGHT reason for doing so.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do some business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to
the event log....

But when I moved the COM+ component onto a remote application server I get
the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException' occurred in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know that the COM+ service is running correctly because several calls i have made to
the component have completed correctly, but when a particular method fails
and attempt to wirte to the remote Event log it fails and the exception is
generated in the ASP.Net application saying the above, this indicates that it can not write to the event log does it?

Cheers in advance

Ollie

Nov 16 '05 #2
how about "Big things are made up of useful things........"
or better still
"Big things are made up from useful help from lots of people........"
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Everybody who cross-posts has a reason for doing so. However, nobody has a
RIGHT reason for doing so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do

some
business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to the event log....

But when I moved the COM+ component onto a remote application server I get the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException'

occurred
in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know

that
the COM+ service is running correctly because several calls i have made to the component have completed correctly, but when a particular method fails and attempt to wirte to the remote Event log it fails and the exception is generated in the ASP.Net application saying the above, this indicates

that
it can not write to the event log does it?

Cheers in advance

Ollie


Nov 16 '05 #3
Infact I will tell you why i crossed posted:

1. It's an asp.net app so it seems reason to post here and I don't whether
this is an asp.net issue.....
2. It's an asp.net that contains COM+ components and I don't whether this is
a com+ issue.....
3. It's all written in C# .net and I don't whether this is a C# issue.....
4. And..... what the hell I will ask in the COM+ newsgroup because may be
this is not a .Net managed environment issue but a general rights issue with
windows 2003

Ollie.

PS - why do you have an MVP is it to help other people who are trying to
solve problems when they can't see the wood for the tree's or is it because
you just want geek fame and big yourself up?

Because if you are an example of the current MVP's then god help us......

Have A Nice Day....

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Everybody who cross-posts has a reason for doing so. However, nobody has a
RIGHT reason for doing so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do

some
business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to the event log....

But when I moved the COM+ component onto a remote application server I get the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException'

occurred
in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know

that
the COM+ service is running correctly because several calls i have made to the component have completed correctly, but when a particular method fails and attempt to wirte to the remote Event log it fails and the exception is generated in the ASP.Net application saying the above, this indicates

that
it can not write to the event log does it?

Cheers in advance

Ollie


Nov 16 '05 #4
GL
In 2003, there are special permissions for who can write to the eventlog.
This may be part of your problem. Also, the ASP.Net worker process by
default does not have the registry permissions to create a new eventlog
source.

This page may help you, It helped me.
http://support.microsoft.com/default...b;en-us;323076

GL

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do some business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to
the event log....

But when I moved the COM+ component onto a remote application server I get
the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException' occurred in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know that the COM+ service is running correctly because several calls i have made to
the component have completed correctly, but when a particular method fails
and attempt to wirte to the remote Event log it fails and the exception is
generated in the ASP.Net application saying the above, this indicates that it can not write to the event log does it?

Cheers in advance

Ollie

Nov 16 '05 #5
cheers GL.....

I already have the settings to allow the local asp.net app to create and
write to the event log, the remote process can't currently write to a remote
event log

Ollie
"GL" <GL@noSpam.ReplyToNewsgroup.com> wrote in message
news:uL**************@TK2MSFTNGP09.phx.gbl...
In 2003, there are special permissions for who can write to the eventlog.
This may be part of your problem. Also, the ASP.Net worker process by
default does not have the registry permissions to create a new eventlog
source.

This page may help you, It helped me.
http://support.microsoft.com/default...b;en-us;323076

GL

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the
solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do

some
business processing......

When I have the ASP.Net website and the COM+ components installed on the
same machine (i.e everything local) it all works fine, and it can write to the event log....

But when I moved the COM+ component onto a remote application server I get the following error when the COM+ service attempts to write to a remote
event log.

A first chance exception of type 'System.InvalidOperationException'

occurred
in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have
write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I know

that
the COM+ service is running correctly because several calls i have made to the component have completed correctly, but when a particular method fails and attempt to wirte to the remote Event log it fails and the exception is generated in the ASP.Net application saying the above, this indicates

that
it can not write to the event log does it?

Cheers in advance

Ollie


Nov 16 '05 #6
If you think that p***ing people off is going to be useful to you, go ahead
and call my advice useless. Netiquette exists for a reason, and my advice is
there to help you continue to get answers when you need them. I believe that
teaching a man to fish is much more valuable than giving a man a fish. Go
figure.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <why do they need this!!!!> wrote in message
news:#8**************@TK2MSFTNGP10.phx.gbl...
how about "Big things are made up of useful things........"
or better still
"Big things are made up from useful help from lots of people........"
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Everybody who cross-posts has a reason for doing so. However, nobody has a
RIGHT reason for doing so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
okay sorry for cross posting but want to see if any one can explain the solution to this problem for me:

I have a .Net ASP.Net app written in C# that use COM+ components to do some
business processing......

When I have the ASP.Net website and the COM+ components installed on the same machine (i.e everything local) it all works fine, and it can write to the event log....

But when I moved the COM+ component onto a remote application server I get the following error when the COM+ service attempts to write to a
remote event log.

A first chance exception of type 'System.InvalidOperationException' occurred
in mscorlib.dll

Additional information: Cannot open log for source {0}. You may not have write access.

Can anyone tell me how to cofig the event log so that the remote COM+
service can write to this event log.

All servers in my architecture are running windows 2003 server. I
know that
the COM+ service is running correctly because several calls i have

made to the component have completed correctly, but when a particular method fails and attempt to wirte to the remote Event log it fails and the
exception
is generated in the ASP.Net application saying the above, this indicates

that
it can not write to the event log does it?

Cheers in advance

Ollie



Nov 16 '05 #7
I wonder if I can report MVP's for the 'wrong' attitude and generally being
useless and therefore not being a 'VALUED PROFESSIONAL'......

because I am now off to search the MVP site for such a link.....

Have A Nice Day...

FYI - Willy Denoyette [MVP] provide a very useful short and precise answer
that helped the problem greatly. I suggest you have a lot to learn about
'HELPING' people, having a pro-active answer is what is required not a
negative unhelpful answer, I guess you get more MVP 'points' by the number
of replies you post not the quality.....

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:e7**************@TK2MSFTNGP12.phx.gbl...
If you think that p***ing people off is going to be useful to you, go ahead and call my advice useless. Netiquette exists for a reason, and my advice is there to help you continue to get answers when you need them. I believe that teaching a man to fish is much more valuable than giving a man a fish. Go
figure.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <why do they need this!!!!> wrote in message
news:#8**************@TK2MSFTNGP10.phx.gbl...
how about "Big things are made up of useful things........"
or better still
"Big things are made up from useful help from lots of people........"
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Everybody who cross-posts has a reason for doing so. However, nobody has
a
RIGHT reason for doing so.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"Ollie" <ol**********@hotmail.com> wrote in message
news:Ok**************@TK2MSFTNGP11.phx.gbl...
> okay sorry for cross posting but want to see if any one can explain the > solution to this problem for me:
>
> I have a .Net ASP.Net app written in C# that use COM+ components to
do some
> business processing......
>
> When I have the ASP.Net website and the COM+ components installed on the > same machine (i.e everything local) it all works fine, and it can write
to
> the event log....
>
> But when I moved the COM+ component onto a remote application server I get
> the following error when the COM+ service attempts to write to a

remote > event log.
>
> A first chance exception of type 'System.InvalidOperationException'
occurred
> in mscorlib.dll
>
> Additional information: Cannot open log for source {0}. You may not have > write access.
>
> Can anyone tell me how to cofig the event log so that the remote
COM+ > service can write to this event log.
>
> All servers in my architecture are running windows 2003 server. I

know that
> the COM+ service is running correctly because several calls i have

made
to
> the component have completed correctly, but when a particular method

fails
> and attempt to wirte to the remote Event log it fails and the

exception
is
> generated in the ASP.Net application saying the above, this indicates that
> it can not write to the event log does it?
>
> Cheers in advance
>
> Ollie
>
>



Nov 16 '05 #8

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

Similar topics

0
by: Peter A. Schott | last post by:
If I want to verify that a file has finished writing before deleting the remote file, what would be the best method? Current code on Python 2.4: #filename - remote FTP server File Name...
3
by: Jacob | last post by:
Hello All, I am trying to serve out some content via IIS that is hosted on a remote fileserver, and am unable to get the delegation working correctly. Our setup is as follows: Local LAN...
0
by: John White | last post by:
Hi, I am having trouble getting back the entry messages from a remote event log using the System.Diagnostics.EventLog class. When the code is run against the local event log, the event message...
5
by: GEL | last post by:
Hi, I want to open a new browser window, let the user use that window for several minutes, and when they close, I'd like to change the page displayed in the original window. According to...
9
by: Ollie | last post by:
okay sorry for cross posting but want to see if any one can explain the solution to this problem for me: I have a .Net ASP.Net app written in C# that use COM+ components to do some business...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
1
by: =?Utf-8?B?cGVsZWdrMQ==?= | last post by:
how when i write to the event viewer to have a clean test withought : thnaks i nadvance peleg
8
by: schaf | last post by:
Hi NG! I have a problem in my remote application. After calling a remote function the calculation will be done by the service. The calculation result will be sent to the caller (client) via...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.