error CS0016  
Author Message
jkh1978





PostPosted: Visual C# General, error CS0016 Top

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. '



Visual C#15  
 
 
Andreas Johansson





PostPosted: Visual C# General, error CS0016 Top

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.



 
 
jkh1978





PostPosted: Visual C# General, error CS0016 Top

I've tried every test I could think of... and it doesn't seem to be permissions. Or at least the traditional type of permissions I could think about. I was able to read and write files from this location.
 
 
Andreas Johansson





PostPosted: Visual C# General, error CS0016 Top

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



 
 
dreadjr





PostPosted: Visual C# General, error CS0016 Top

Microsoft says this.


 
 
jkh1978





PostPosted: Visual C# General, error CS0016 Top

I've tried a user that had administrative rights. The only thing I can find different is that one logs in to the domain, and one user name logs in to that computer. Our windows administrator cannot figure this out.
 
 
Andreas Johansson





PostPosted: Visual C# General, error CS0016 Top

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



 
 
jkh1978





PostPosted: Visual C# General, error CS0016 Top

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.