I'm trying to run the csc command on a server. One user works, but I can't get any other user to work. I've tried giving the other users admistrative rights, but still no luck. The user that does work logs in against the machine and not against the company domain. I can not find any other differences. Why can't any user run this
The command is like
csc.exe /target:library /out:D:\DEVTEST\cc_keys.dll /reference:D:\DEVTEST\library.dll cc\src\Class1.cs
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
error CS0016: Could not write to output 'd:\devtest\cc_keys.dll' -- 'The directory name is invalid. '

error CS0016
Christie Myburgh
Does other users have the D: drive availabe
I would check with: notepad d:\devtest\cc_keys.dll
Try to save something, if it fails it probably has nothing to do with VS C# but user setup/permissions.
drhesq
You tried it as a user that it fails for
The compiler might write to temporary folders, you might want to check that the user have permissions to temporary folders.
You can monitor actual file errors with a tool like filemon from sysinternals
http://www.sysinternals.com/Utilities/Filemon.html
Chimme
Jose76
Basquiat
Which account works and which does not
Is the account that logs on to the domain failing Is it part of the administrator group on the local machine
magmo
Sandyee
The user that works is in the administrator group of the local machine.
I thought I gave the other user the administrator role also, and that didnt work, but we're not really up to speed on us switching to Microsoft, so i dont know if it was done correctly.