• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 779
  • 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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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