Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > writing to a remote event log.....

Reply
Thread Tools

writing to a remote event log.....

 
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
 
 
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:%...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:%...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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]" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
GL
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      04-22-2004
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:#...
> 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" <> wrote in message
> news:%...
> > 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" <> wrote in message
> > news:...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ollie
Guest
Posts: n/a
 
      04-22-2004
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" <> wrote in message
news:...
> 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:#...
> > 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" <> wrote in message
> > news:%...
> > > 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" <> wrote in message
> > > news:...
> > > > 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
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to a remote file Jeff ASP .Net 6 10-16-2008 04:12 PM
Ghost Console version 8 Remote Client install will not install to remote pc Ed Computer Support 3 03-18-2005 05:18 PM
Any problems with writing the information into a file - Multi-users perform writing the same file at the same time ???? HNguyen ASP .Net 4 12-21-2004 01:53 PM
Remote Assistance fails to connect, remote remote host name could not be resolved Peter Sale Wireless Networking 1 12-11-2004 09:09 PM
Difference between Remote Desktop and Remote Desktop for Admin Dave Marden MCSE 16 01-24-2004 12:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57