473,397 Members | 2,116 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,397 software developers and data experts.

ASPNET can't write in event log on win XP

Hi,

I'm sorry, this question is also posted in dotnet.framework, I don't know in
which newsgroup my question belongs to...

I'm trying to write in the event log and it looks like it's any of my
applications which are called by ASP.NET that are having trouble with event
log. Here's the
error:

System.InvalidOperationException: Cannot open log for source {0}. You may
not have write access. ---> System.ComponentModel.Win32Exception: Access is
denied

I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...

Any idea of how to set permissions so ASPNET can write in event log in Win Xp?

Thanks,

Steph
Nov 19 '05 #1
5 4661
Hi,

I think, the following try-outs may help you:-

1. Thoroughly check the access is given to the user ASP.NET and appropriate
groups are in member-of tab.
2. Switch off the inbuild xp firewall and check whether it is working, if it
is working then your firewall configuration has to changed accordingly.
3. Run Asp setup shipped with the .net framework again.

Plz post a reply if you have any further clarifications.

Cheers!
Vadivel Kumar

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
Hi,

I'm sorry, this question is also posted in dotnet.framework, I don't know
in
which newsgroup my question belongs to...

I'm trying to write in the event log and it looks like it's any of my
applications which are called by ASP.NET that are having trouble with
event
log. Here's the
error:

System.InvalidOperationException: Cannot open log for source {0}. You may
not have write access. ---> System.ComponentModel.Win32Exception: Access
is
denied

I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...

Any idea of how to set permissions so ASPNET can write in event log in Win
Xp?

Thanks,

Steph

Nov 19 '05 #2
> I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...
You might want to undo that. Kind of dodgy in terms of security.

Changing file and folder permissions isn't going to help anything. You need
to change permissions for the Event Log. That's not a drive, and it's not a
folder. See the following article (which I Googled) to find out how:

http://searchvb.techtarget.com/vsnet...293033,00.html

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com... Hi,

I'm sorry, this question is also posted in dotnet.framework, I don't know
in
which newsgroup my question belongs to...

I'm trying to write in the event log and it looks like it's any of my
applications which are called by ASP.NET that are having trouble with
event
log. Here's the
error:

System.InvalidOperationException: Cannot open log for source {0}. You may
not have write access. ---> System.ComponentModel.Win32Exception: Access
is
denied

I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...

Any idea of how to set permissions so ASPNET can write in event log in Win
Xp?

Thanks,

Steph

Nov 19 '05 #3
Indeed, I remove full control for everyone... ;-)

I tried your solution and it didn't work. I also put ASPNET in adminstrator
group and it still not working... I get the same error.

I running short of ideas!!

any other idea?

Thanks,

Steph

"Kevin Spencer" wrote:
I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...


You might want to undo that. Kind of dodgy in terms of security.

Changing file and folder permissions isn't going to help anything. You need
to change permissions for the Event Log. That's not a drive, and it's not a
folder. See the following article (which I Googled) to find out how:

http://searchvb.techtarget.com/vsnet...293033,00.html

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
Hi,

I'm sorry, this question is also posted in dotnet.framework, I don't know
in
which newsgroup my question belongs to...

I'm trying to write in the event log and it looks like it's any of my
applications which are called by ASP.NET that are having trouble with
event
log. Here's the
error:

System.InvalidOperationException: Cannot open log for source {0}. You may
not have write access. ---> System.ComponentModel.Win32Exception: Access
is
denied

I didn't have this problem on windows 2000. But since I'm on Win XP now, I
have to solve this. I set full control to everyone on every drive of my
computer and it still not working...

Any idea of how to set permissions so ASPNET can write in event log in Win
Xp?

Thanks,

Steph


Nov 19 '05 #4
> I tried your solution and it didn't work. I also put ASPNET in
adminstrator
group and it still not working... I get the same error.
If you tried it and it didn't work, you didn't try it right. You might want
to make sure that the account you assigned permissions to is the account
under which your local ASP.Net app is running. Other than that, GIGO.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com... Indeed, I remove full control for everyone... ;-)

I tried your solution and it didn't work. I also put ASPNET in
adminstrator
group and it still not working... I get the same error.

I running short of ideas!!

any other idea?

Thanks,

Steph

"Kevin Spencer" wrote:
> I didn't have this problem on windows 2000. But since I'm on Win XP
> now, I
> have to solve this. I set full control to everyone on every drive of
> my
> computer and it still not working...


You might want to undo that. Kind of dodgy in terms of security.

Changing file and folder permissions isn't going to help anything. You
need
to change permissions for the Event Log. That's not a drive, and it's not
a
folder. See the following article (which I Googled) to find out how:

http://searchvb.techtarget.com/vsnet...293033,00.html

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
> Hi,
>
> I'm sorry, this question is also posted in dotnet.framework, I don't
> know
> in
> which newsgroup my question belongs to...
>
> I'm trying to write in the event log and it looks like it's any of my
> applications which are called by ASP.NET that are having trouble with
> event
> log. Here's the
> error:
>
> System.InvalidOperationException: Cannot open log for source {0}. You
> may
> not have write access. ---> System.ComponentModel.Win32Exception:
> Access
> is
> denied
>
> I didn't have this problem on windows 2000. But since I'm on Win XP
> now, I
> have to solve this. I set full control to everyone on every drive of
> my
> computer and it still not working...
>
> Any idea of how to set permissions so ASPNET can write in event log in
> Win
> Xp?
>
> Thanks,
>
> Steph
>
>


Nov 19 '05 #5
Hi,

Where can I know for sur on which account ASP.net is running?

However, I used the impersonation in web.config to solve my problem. I guess
it's not the best way to solve that, but at least it works on my developement
server.

<identity impersonate="true" userName="stephane" password="12345"/>

Thanks,

Steph
"Kevin Spencer" wrote:
I tried your solution and it didn't work. I also put ASPNET in
adminstrator
group and it still not working... I get the same error.


If you tried it and it didn't work, you didn't try it right. You might want
to make sure that the account you assigned permissions to is the account
under which your local ASP.Net app is running. Other than that, GIGO.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
Indeed, I remove full control for everyone... ;-)

I tried your solution and it didn't work. I also put ASPNET in
adminstrator
group and it still not working... I get the same error.

I running short of ideas!!

any other idea?

Thanks,

Steph

"Kevin Spencer" wrote:
> I didn't have this problem on windows 2000. But since I'm on Win XP
> now, I
> have to solve this. I set full control to everyone on every drive of
> my
> computer and it still not working...

You might want to undo that. Kind of dodgy in terms of security.

Changing file and folder permissions isn't going to help anything. You
need
to change permissions for the Event Log. That's not a drive, and it's not
a
folder. See the following article (which I Googled) to find out how:

http://searchvb.techtarget.com/vsnet...293033,00.html

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Stephane" <St******@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
> Hi,
>
> I'm sorry, this question is also posted in dotnet.framework, I don't
> know
> in
> which newsgroup my question belongs to...
>
> I'm trying to write in the event log and it looks like it's any of my
> applications which are called by ASP.NET that are having trouble with
> event
> log. Here's the
> error:
>
> System.InvalidOperationException: Cannot open log for source {0}. You
> may
> not have write access. ---> System.ComponentModel.Win32Exception:
> Access
> is
> denied
>
> I didn't have this problem on windows 2000. But since I'm on Win XP
> now, I
> have to solve this. I set full control to everyone on every drive of
> my
> computer and it still not working...
>
> Any idea of how to set permissions so ASPNET can write in event log in
> Win
> Xp?
>
> Thanks,
>
> Steph
>
>


Nov 19 '05 #6

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

Similar topics

2
by: Andrew J Fortune | last post by:
Hello all, I am trying to ascertain the difference, in terms of access and privileges, between the Internet Guest User Account (IUSR_machinename, where machinename is the name of your computer)...
4
by: Salvador | last post by:
Hi, Maybe is a simple question but I found difficult to find the answer. Context: I am creating a site where designers ONLY touch the ASPX page and I.S. touch the code behind. Task: I...
11
by: Jeff Robichaud | last post by:
Are there any security issues having the ASPNET user account member of Administrators ? Is it a good practice ?
2
by: Ian Taite | last post by:
Hello All, ASP.NET has stopped working on my development server. I've read the various posts re this subject, but my circumstances seem unique. I need to know what causes the problem and how to...
7
by: M. Simioni | last post by:
Hi, i'm always auditing ASPNET's account accesses on my webserver, a WIN2K_SP4 + IIS5 + SQLServer2K_SP3a machine. Nearly all the applications work correctly, but i constantly find a message in...
4
by: palakwai_919 | last post by:
We have a Windows 2000 server with Beta 2 of the 2.0 Framework installed and the 1.1 Framework. For some odd reason when we hit our 2.0 Framework application we get the following error: Server...
3
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here....
7
by: Kenny M. | last post by:
Hi I want to write de content of a variable from my asp net code into the Title Bar of the Browser each time I need to switch between those world (HTML-ASPNET) I suffer cause I don’t have...
5
by: Rory Becker | last post by:
Hi All I have a database which has it's own set of tables for users etc I already successfully use the Login control by handling the Authenticate event and checking the suitable values against...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.