To retrieve version of assembly on web server

  • Thread starter Thread starter Reetu
  • Start date Start date
R

Reetu

Hi All,

I am trying to get the version of the assembly which
resides on the web server.

Right now I gotto know how to get the version of the
assembly present on my physical directory :

System.Reflection.AssemblyName.GetAssemblyName
("C:\vcoclient\test.dll").Version.ToString();

But I want something like this

System.Reflection.AssemblyName.GetAssemblyName
("http://localhost/vcoclient/test.dll").Version.ToString();

This says URL is not supported.

Can someone please suggest the alternative..

Regards,
-Reetu
 
There's no way you're going to do that; it would be a huge security risk.

You need to go in through a file share (if this is inside your network) or
modify the DLL so that it somehow reports its version numbers and any other
information you might need.
 
Back
Top