Got this error with the deceptively self-explanatory error message ‘Could not load file or assembly ‘xxxx’ or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)’.
Well, the disk was indeed full, so I deleted Megabytes of useless rubbish from the disk and re-ran the app, but annoyingly still got the crash.
This means that the error message was either accidently correct, or that the C#.NET compiler generates error messages by taking a punt on partial information making it behave like it was written by a 2nd year Uni Student as a lab exercise for an Artificial Intelligence course.
Turns out Disk Space had nothing to do with it. The real reason the WebService could not run was because the UserAccount as defined in the Application Pool settings for the WebService did not have permissions to the bin directory of the WebService.
- Check user for the Web Service in the Application Pool.
- Give that user Full Control to the Bin Directory for the web application, in this case MyUnrealWebService. which was running under the user ‘NETWORK SERVICE’