This documentation is archived and is not being maintained.

Compiler Error CS1504 

Error Message

Source file 'file' could not be opened ('reason')

A source file could not be opened or read by the compiler. The file may be locked by another application, or there could be some other operating system problem. The message includes the operating system's reason for why the compiler could not open or read the file.