I have some code that needs to be able to find the version number of an assembly, given a string saying where it's located.
I can't get this to work:
Assembly assembly = Assembly.LoadFrom("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll");
throws a System.IO.IOException: File or assembly name '\Program Files\Microsoft SQL Server Compact Edition\v3.5\sqlcecompact35.dll', or one of its dependencies, was not found.
Yet the file does exist:
FileInfo fileInfo = new FileInfo("\\Program Files\\Microsoft SQL Server Compact Edition\\v3.5\\sqlcecompact35.dll");
creates an object where fileInfo.Exists == true.
Should I be passing in a different filename/path to load the SQL CE assembly? Thanks.