Mono + ASP.NET + MySQL: works, but always throws initial System.IO.FileNotFoundException for ‘MySql.Data’
I have built an ASP.NET web application on a Linux server running Apache and mod_mono with a MySQL database using the MySQL Connector/NET. Everything works splendidly… but only after an initial exception is thrown: if no requests have been made by anyone for this site for “awhile” (I’m unclear on the exact duration and cause of this, but some kind of hour-ish timeout seems to be at play), then a new request always results in: