473,623 Members | 3,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASPNET can't write in event log on win XP

Hi,

I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You may
not have write access. ---> System.Componen tModel.Win32Exc eption: 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 4671
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******@discu ssions.microsof t.com> wrote in message
news:A5******** *************** ***********@mic rosoft.com...
Hi,

I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You may
not have write access. ---> System.Componen tModel.Win32Exc eption: 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******@discu ssions.microsof t.com> wrote in message
news:A5******** *************** ***********@mic rosoft.com... Hi,

I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You may
not have write access. ---> System.Componen tModel.Win32Exc eption: 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******@discu ssions.microsof t.com> wrote in message
news:A5******** *************** ***********@mic rosoft.com...
Hi,

I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You may
not have write access. ---> System.Componen tModel.Win32Exc eption: 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******@discu ssions.microsof t.com> wrote in message
news:9D******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:A5******** *************** ***********@mic rosoft.com...
> Hi,
>
> I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You
> may
> not have write access. ---> System.Componen tModel.Win32Exc eption:
> 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="tr ue" userName="steph ane" 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******@discu ssions.microsof t.com> wrote in message
news:9D******** *************** ***********@mic rosoft.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******@discu ssions.microsof t.com> wrote in message
news:A5******** *************** ***********@mic rosoft.com...
> Hi,
>
> I'm sorry, this question is also posted in dotnet.framewor k, 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.InvalidO perationExcepti on: Cannot open log for source {0}. You
> may
> not have write access. ---> System.Componen tModel.Win32Exc eption:
> 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
8226
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) vs. the ASPNET user (ASP.NET machine account). If you write a web application, you can configure it via its web.config file. One of the things you can do is set the impersonate attribute in the <identity> tag. If you set it (impersonate) to...
4
2298
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 have a simple page that list a number of offers based on info from the
11
1763
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
3605
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 remedy it. If possible I would prefer not to rebuild the server, as the SQL setup is quite involved, and I'd prefer not to add the ASPNET account to the local administrators group since that defeats the point of having the ASPNET account.
7
1656
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 the event viewer under the protection log, that says: --------------------------------------- Apertura oggetto: Server oggetto: Security Tipo oggetto: File
4
11780
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 Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. Administrator Note: An error message detailing the...
3
1603
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. Server 2 - SQL server with database on. Want to store images on here accessed via a share.
7
1345
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 clear the boundaries in between What alternatives do I have? Where Can I find a good documentation about using or switching between HTML
5
1962
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 my own DB. Now I need to use the ChangePassword control but I cannot stop the system from trying to create a database.
0
8162
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8603
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8463
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7134
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6104
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2593
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
1769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1468
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.