BlearyEye
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\Loc al\Temp\vk er251c.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.
Unable to generate a temporary class (result=1).
error CS0016: Could not write to output file 'c:\Users\user\AppData\Loc
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.
ASKER
I can try it, but it's also IIS-related and doesn't seem quite relevant to my winform problem.
>>Could not write to output file 'c:\Users\user\AppData\Loc al\Temp\vk er251c.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 ?)
You are attempting to write to a dll - is that correct? (If yes then is code in the dll in use by your app ?)
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
My solution worked, though I don't really know why.
http://supreethkshankar.webs.com/apps/blog/show/4959215-compiler-error-message-cs0016-could-not-write-to-output-file-access-is-denied