Comments
3 comments
-
In this scenario we have the service running under a specific user account. It appears that account needs additional permissions when trying to profile it. For a quick work-around we just made it a member of the local administrators group.
-
Hmm, this doesn't look like something directly caused by the profiler: these errors are coming from the C# compiler, which the profiler doesn't invoke itself.
Does your service invoke the C# compiler?
Are these errors coming from the UI or the service that you're profiling?
Does this problem continue to happen if you delete the PDB files for the service?
It looks like another possible solution would be to add permissions for your service user to read and create files in C:\Windows\Temp. -
My service does not invoke the C# compiler. The errors are coming from the service that I am profiling. I was just profiling a 'release' build which did not have the PDB files for the service.
I'm going to setup the profiling in a dev environment so I can see the code and dig a bit deeper. I don't expect to run into any permissions issues there but will let you know.
Add comment
Please sign in to leave a comment.
Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\Windows\TEMP\6owpuue3.0.cs' could not be found
error CS2008: No inputs specified
The Windows Service runs fine when it is not running by ANTS Profiler. I tried creating a shortcut to the Profiler application exe and specifying to Run as Administrator but it did not make a difference.