By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,830 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,830 IT Pros & Developers. It's quick & easy.

writing to a remote event log.....

P: n/a
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 18 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
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 18 '05 #2

P: n/a
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 18 '05 #3

P: n/a
This is a security issue, check if the identity of the COM+ server has the
right privileges to access the remote eventlog.
But you should ask yourself why an application running on lets say serverA
should write to the eventlog of serverB.

Willy.

"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 18 '05 #4

P: n/a
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 18 '05 #5

P: n/a
thanks for the answer Willy,

The reason that it is using a remote event log is because you can't have a
..net config file for a COM+ (as I understand the current status of COM+)
service component and what i did instead was to pass the event log
information from the asp.net and tell the remote COM+ component to write
that event log if an error occurs....

Cheers

Ollie
"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:e2**************@TK2MSFTNGP10.phx.gbl...
This is a security issue, check if the identity of the COM+ server has the
right privileges to access the remote eventlog.
But you should ask yourself why an application running on lets say serverA
should write to the eventlog of serverB.

Willy.

"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 18 '05 #6

P: n/a
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 18 '05 #7

P: n/a
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 18 '05 #8

P: n/a
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 18 '05 #9

P: n/a
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 18 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.