Groups | Blog | Home
all groups > dotnet general > june 2004 >

dotnet general : To retrieve version of assembly on web server


Reetu
6/24/2004 4:46:58 PM
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,
Klaus H. Probst
6/24/2004 4:59:22 PM
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.


--
Klaus H. Probst, MVP
http://www.vbbox.com/


[quoted text, click to view]

AddThis Social Bookmark Button