Web Service Crashes – Could not load file or assembly ‘xxxx’ or one of its dependencies. There is not enough space on the disk. (Exception from HRESULT: 0x80070070)

Semi-Loyal Public,

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)’.

Accidently Correct

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.

Resolution:

  • 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’

Hat Tip to drobar who was kind enough to post the relevant fix at Umbraco.

Advertisements

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: