473,651 Members | 2,663 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To retrieve version of assembly on web server

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.Reflecti on.AssemblyName .GetAssemblyNam e
("C:\vcoclient\ test.dll").Vers ion.ToString();

But I want something like this

System.Reflecti on.AssemblyName .GetAssemblyNam e
("http://localhost/vcoclient/test.dll").Vers ion.ToString();

This says URL is not supported.

Can someone please suggest the alternative..

Regards,
-Reetu
Nov 22 '05 #1
1 1523
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/
"Reetu" <an*******@disc ussions.microso ft.com> wrote in message
news:20******** *************** ******@phx.gbl. ..
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.Reflecti on.AssemblyName .GetAssemblyNam e
("C:\vcoclient\ test.dll").Vers ion.ToString();

But I want something like this

System.Reflecti on.AssemblyName .GetAssemblyNam e
("http://localhost/vcoclient/test.dll").Vers ion.ToString();

This says URL is not supported.

Can someone please suggest the alternative..

Regards,
-Reetu

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
371
by: Reetu | last post by:
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();
12
2033
by: Russell Stevens | last post by:
Should be trivial - I want to detect the program version so that I can take steps to update things to the current version. Pretty simple - just use Application.ProductVersion So I install the app on a file server. Various workstations then load the app and run it. Some workstations are Win98, some are XP. To enable users to access the program, I share the folder on the server. When my customers share a folder, the folder name on the...
1
3067
by: Eddy Fuchs | last post by:
Hi folks, I'm searching on this issue since a couple of days: How do I programmatically retrieve the version of an installed program? Is there a possibility to retrieve it via the local MSI database? Or do I have an other chance to get to this information? I need to retrieve it because I do have to check if an update of my app is necessary. But therefore I need to know what Version currently is installed.
3
1420
by: Marty | last post by:
Hi, How can I retrieve the file version of another file outside my current assembly? Thank you! Marty
5
7754
by: wenning | last post by:
Hello, I am struggling with a website on a W2K3 server which has the actual content on a NAS server (also W2K3 based). The servers doesn't run in a domain and arent intended to. I did make the web space on the W2K3 IIS Server and pointed it to the NAS server via an UNC path (no virtual directory). When I place the content on the IIS, everything works fine, but when I
2
3837
by: Steve Barnett | last post by:
I'm trying to put together a class that retrieves version information from my assembly and am having a problem. The code below happily retrieves the AssemblyTitle and AssemblyDescription but fails to retrieve the Version number. Both of these are specified in the AssemblyInfo.cs file, so I can't see why I can't get the version umber. Any suggestions? Thanks Steve using System;
8
3499
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are implemented in a new interface, which derive from the old one to ensure that an old version of my application (a1) still works with s2. If i run my new version of the application a2 with s1 I get a InvalidCastException (Return argument has an...
5
9441
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
2
17689
by: rajendiran | last post by:
project is working fine in localhost. when i upload server i got the error Server Error in '/' Application. -------------------------------------------------------------------------------- Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not...
7
2677
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file name based on the name of the VB6 application. A second choice would be a file name based on the # COM interface assembly. I have tried calling Assembly.GetCallingAssembly() but this fails when I use the VB6 client. Is there a way to get this...
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8465
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.