Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

Donald DUCK : YOU ARE FIRED!!!
Posted
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
Fat kids are harder to kidnap
Posted

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?

Donald DUCK : YOU ARE FIRED!!!
Posted
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?
Posted

.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.

Donald DUCK : YOU ARE FIRED!!!
Posted

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

Posted
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
Donald DUCK : YOU ARE FIRED!!!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...