Link to home
Start Free TrialLog in
Avatar of BlearyEye
BlearyEyeFlag for United States of America

asked on

.net error CS0016: could not write to output file

In .net 4 (C#, VS 2010), I'm getting this exception for a Winforms app (not ASP).

Unable to generate a temporary class (result=1).
error CS0016: Could not write to output file 'c:\Users\user\AppData\Local\Temp\vker251c.dll' -- 'Access is denied. '

I've checked the folder in question; EVERYONE has full access rights. Any ideas? Most of what I've seen on the subject concerns ASP and doesn't seem to apply to me.
Avatar of binaryevo
binaryevo
Flag of United States of America image

Avatar of BlearyEye

ASKER

I can try it, but it's also IIS-related and doesn't seem quite relevant to my winform problem.
Avatar of AndyAinscow
>>Could not write to output file 'c:\Users\user\AppData\Local\Temp\vker251c.dll'

You are attempting to write to a dll - is that correct?  (If yes then is code in the dll in use by your app ?)
Andy: I don't know the answer to that question since the name of the dll doesn't mean anything to me. It seems to be an artifact of the compiler.
ASKER CERTIFIED SOLUTION
Avatar of BlearyEye
BlearyEye
Flag of United States of America 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
My solution worked, though I don't really know why.