• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 847
  • Last Modified:

windows service failed to start : System.UnauthorizedAccess

HI Experts,

I have created a windows service in C# to monitor disk space and send mail an email once reaching a certain threshold.

When i try to start it , it fails with below error.

---------------------------
Services
---------------------------
Windows could not start the Diskinfoservice service on Local Computer.

Error 1053: The service did not respond to the start or control request in a timely fashion.
.

In event logs, i see app crash events :

Fault bucket -1068053370, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: diskmonitoringservice.exe
P2: 1.0.0.0
P3: 503f43e5
P4: mscorlib
P5: 2.0.0.0
P6: 4f8cfd42
P7: 3454
P8: 15a
P9: System.UnauthorizedAccess
P10:

Attached files:
C:\Windows\Temp\WERE7EA.tmp.WERInternalMetadata.xml
C:\Windows\Temp\WERE7EB.tmp.hdmp
C:\Windows\Temp\WEREEFD.tmp.mdmp

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_diskmonitoringse_a9cb971e6ad8403c2c5fccdc652d6382384311d0_200ff774

Analysis symbol:
Rechecking for solution: 0
Report Id: 0d16b348-f292-11e1-a5e4-00259c788e43
Report Status: 0
Hashed bucket: dfd02f95729e5da5fdc26799f470d734




Any help would be appreciated.
Thank you.
0
subhashchy
Asked:
subhashchy
  • 2
1 Solution
 
subhashchyAuthor Commented:
nevermind, I was trying to write to a file which does not exist.

screenshot
0
 
Rajkumar GsSoftware EngineerCommented:
So you mean you have fixed this issue. Then please accept your comment and solution and close this question. This may help someothers

Raj
0
 
subhashchyAuthor Commented:
fixed it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now