ASP.NET throwing registry access denied exception on Trace.Write

  • Thread starter Thread starter Roger Willcocks
  • Start date Start date
R

Roger Willcocks

Suddenly started in the middle of the afternoon.
No updates to the machine, no setting changes, just rebuilt solution.

Restart - no effect
Changed processModel userName in machine.config to SYSTEM, no effect
Changed back
Reboot
All of effect


Also appears to be affectng our staging machine

Anyone run across this/managed to fix it?


--
Roger Willcocks
Software Engineer MSCD.NET
L-Space Design
http://www.l-space-design.com/
(e-mail address removed)
"Putting your experience to work"
 
You need to find out what account your webpage is running under. This
account needs permission to read the registry. I'm not sure that it could
lose permissions out of the blue unless the machine crashed or you tampered
with stuff
 
You need to find out what account your webpage is running under. This
account needs permission to read the registry. I'm not sure that it could
lose permissions out of the blue unless the machine crashed or you tampered
with stuff


It was running as ASPNET
Just for fun, here's the answer:
I was accidentally attempting to write string[] instead of string.
I only made that mistake in a couple of places, but all the code led
through there first.

Roger Willcocks
Software Engineer
http://www.L-Space-Design.com/
"Putting your experience to work"
 
Back
Top