Link to home
Start Free TrialLog in
Avatar of subhashchy
subhashchyFlag for India

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of subhashchy
subhashchy
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So you mean you have fixed this issue. Then please accept your comment and solution and close this question. This may help someothers

Raj
Avatar of subhashchy

ASKER

fixed it