microkarl Posted April 29, 2004 Posted April 29, 2004 Hi every one, I have this super annoying problem and am willing to see every single suggestions about it. I have this rich client web page and inside the page has, say 10, .dll objects. and every time a user open this web page, the web page will download all the .dll object from the server (by the way, .NET configuration is set to FullTrust in the permission) and this downloading process takes a significant amount of time. Now, like I said before, this is a Rich client page, so all the .dlls are stored inside the directory. and the reason that the page needs to download new .dlls is because we update the .dll very often and the page needs to have the latest .dll in order to coordinate with the whole solution. Okay, enough explaining... my question is is there a way to have a version check to compare the .dlls that the page has (in client's directory) against those .dlls in the server. because if the version # are identical, then I don't need to download the latest version anymore and it will solve my problem. Please help me on these one because I just don't see a way in .NET can do it for me YET. Thanks a lot Carl :confused: :confused: :confused: Quote Donald DUCK : YOU ARE FIRED!!!
iebidan Posted April 29, 2004 Posted April 29, 2004 I don't know how your app works, but my suggestion will be to use SOAP and webservices to do this, that's the only thing that comes to my mind Quote Fat kids are harder to kidnap
Denaes Posted April 29, 2004 Posted April 29, 2004 asp.net requires the end user to download dll's? I thought it was all server side. Or is this a special case? Quote
microkarl Posted April 29, 2004 Author Posted April 29, 2004 Not asp.net reqiures the end user to download dlls. we actually wrote some code for the page to do it. Maybe I can make this a little simpler. Is it possible to write code to compare the version of the dlls from both end in .NET? Quote Donald DUCK : YOU ARE FIRED!!!
akiaz Posted April 29, 2004 Posted April 29, 2004 The only thing I can think of that you may be able to use to find information about a .NET DLL or assembly is to use reflection. Unfortunately, I know very little about it, but maybe someone here can expand on it a little? Quote
microkarl Posted April 29, 2004 Author Posted April 29, 2004 .NET dll or assembly to use reflection?? can someone gimme some info By the way, would System.IO.File class help to get the version of the file. I looked into getAttribute because how it sounds. but it won't retrieve the version. Quote Donald DUCK : YOU ARE FIRED!!!
akiaz Posted April 29, 2004 Posted April 29, 2004 using System.Reflection; ... string checkthis = @"C:\code\project1\bin\oneofyourdllfiles.dll"; AssemblyName n = AssemblyName.GetAssemblyName(checkthis); string v = n.Version.ToString(); I guess use something like that, and then you'll have to compare the versions somehow. That's about as much as I know about reflection. :p HTH Quote
microkarl Posted April 29, 2004 Author Posted April 29, 2004 Thanks a lot akiaz, I actually found this really useful too :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticsfileversioninfoclasstopic.asp Quote Donald DUCK : YOU ARE FIRED!!!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.