RizThon wrote: > > All my assemblies are in a main folder or its subfolders. I set the private > bin path so that all assemblies will be automatically found by .Net. > Assemblies that are specific to x86 or x64 are in folders with 32 or 64 > appended to their name. It looks like > MainDir > Database > Database32 > Database64 > Depending on the platform, the private bin path will either contain the 32 > or 64 folders. >
Unfortunately, the PrivateBinPath only applies to managed assemblies, not to native DLLs. The native DLL search mechanism built into Windows uses completely different search semantics. See: http://msdn.microsoft.com/en-us/library/ms684179%28v=VS.85%29.aspx > > Everything works well, meaning that .Net automatically load things no matter > the folder in which they are, except for SQLite.Interop.dll. It looks like > it must be in the same directory as System.Data.SQLite.dll. Why is that? > Actually, it can also be located along the PATH or in other locations searched by LoadLibrary[Ex]. The above MSDN link contains more details on this. > > Is there a way to make it use the info on the private bin path? I have managed > assemblies that depend on other managed assemblies in different subfolders > and everything works fine... > No, the CLR only uses the PrivateBinPath to look for managed assemblies. Native DLLs are a different animal. > > I know I can resolve my issue by changing the structure of my folders, but > it would be easier for me to keep it that way. I could also use the bundled > version and add each assembly to 32 and 64 folders, but I'd like to know if > it's possible to use the non bundled version. > Yes, it is possible, if you follow the guidelines outlined in the above linked MSDN documentation. However, using the bundled version may be a lot easier in your case, especially since you already have separate directories for 32-bit and 64-bit. -- Joe Mistachkin _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

