The file is present, correctly named and not corrupted. If I move it out and back in from the "Bin", it works again, for about 5 minutes, then the error bellow comes back. Any operation that refreshes the file is fine, publishing it the anew, renaming or moving makes the site work again, for a moment.
{"Message":"Could not load file or assembly \u0027Ouranos, Version=1.0.0.0, Culture=fr-CA, PublicKeyToken=null\u0027 or one of its dependencies. Le fichier spécifié est introuvable.","StackTrace":" at Services.Asynchrone(String DimensionX, String DimensionY, String Action, String Culture, String Utilisateur, String Interface, String Source, String Champ, String Valeur, String Classement, String Direction, StriFileNotFoundExceptionng Page, String Itérations)","ExceptionType":"System.IO."}
Fusion did give me an error code (0x80070002), which pointed me to get Process Monitor. Which lead me to the temporary assembly folder. Now I may be wrong about this. Comparing the cache files from an healthy website and the sick one, I noticed something odd.
- Healthy website as all the DLL from the BIN in cache.
- The sick website is missing two DLL in the cache that are present in the BIN.
Now, I know that ASP.net tends to say that the main library is missing when it's in fact one of the referenced library that is missing. In this current situation I don't know what I could do to fix that problem. The two DLL are not set in the cache, thus when it tries to load the main DLL it fails locating the two others from the cache and throws a file not found on the main DLL.
The two culprits are:
- PresentationCore.dll
- WindowsBase.dll