473,657 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I find out which .net version I'm running?

I need to dyanmically get the version of the .net framework from an ASP.net application (the version that application is running on). Anybody know how to do this

Thanks
Jeremy
Nov 18 '05 #1
4 3954
I think I figured it out...

I'm using:
System.Runtime. InteropServices .RuntimeEnviron ment.GetSystemV ersion

This seems to work, if there are any other ways please let me know.

Thanks
Nov 18 '05 #2
I think I figured it out...

I'm using:
System.Runtime. InteropServices .RuntimeEnviron ment.GetSystemV ersion

This seems to work, if there are any other ways please let me know.

Thanks
Nov 18 '05 #3
System.Environm ent.Version should do that also.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Jeremy" <an*******@disc ussions.microso ft.com> wrote in message
news:72******** *************** ***********@mic rosoft.com...
I think I figured it out...

I'm using:
System.Runtime. InteropServices .RuntimeEnviron ment.GetSystemV ersion

This seems to work, if there are any other ways please let me know.

Thanks
Nov 18 '05 #4
System.Environm ent.Version should do that also.

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke

"Jeremy" <an*******@disc ussions.microso ft.com> wrote in message
news:72******** *************** ***********@mic rosoft.com...
I think I figured it out...

I'm using:
System.Runtime. InteropServices .RuntimeEnviron ment.GetSystemV ersion

This seems to work, if there are any other ways please let me know.

Thanks
Nov 18 '05 #5

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

Similar topics

19
2926
by: rbt | last post by:
Here's the scenario: You have many hundred gigabytes of data... possible even a terabyte or two. Within this data, you have private, sensitive information (US social security numbers) about your company's clients. Your company has generated its own unique ID numbers to replace the social security numbers. Now, management would like the IT guys to go thru the old data and replace as many SSNs with the new ID numbers as possible. You...
1
2201
by: Adam Hearn | last post by:
Sorry if this difficult to understand but I'm pulling my hair out and could do with some good ideas please... I've developed an application which in .NET as a Windows service which is simply crashing but with no signs/details on where the crash is occuring. Please not that the crash is happening on the server and only when the server is running on a Win2K3 host. App is developed as an N-Tier app (client-processing-processing-data) with...
2
553
by: Jeremy | last post by:
I need to dyanmically get the version of the .net framework from an ASP.net application (the version that application is running on). Anybody know how to do this Thanks Jeremy
3
1537
by: 2stepme | last post by:
I am sorry to put this question up (because it has been asked and addressed many times) but I have searched and I been unable to solve my problem. I am running XP PRO Version 2002 SP2 on my laptop. I am using the Web Matrix Server version 1.1.4322.573 and I am working on validation which requires javascript. When I try to test my script I get the following message: Unable to find script library...
0
2836
by: Michael R. Pierotti | last post by:
Has anyone seen this error before when trying to make the install on a program. ------ Starting pre-build validation for project 'HafaSMPPInstall' ------ WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'Devshock.Protocol.SmppClient.DLL' WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' Version='1.0.5000.0') of assembly 'System.dll' WARNING: Unable to...
3
1380
by: ds | last post by:
i'm running under win2k trying to implement an ssl socket, and keep getting the error File "C:\Code\Python\ssl\NewsSrc.py", line 67, in connect ssl = socket.ssl(sock, None, None) AttributeError: 'module' object has no attribute 'ssl' i'm running this under ActiveState version 2.2.2, but i have also tried under ActiveState version 2.3 anyone have any ideas? thanks in advance.
3
11326
by: gogaz | last post by:
Hi, I know query in Subject line "Could not find a part of the path" has been replied before lots of time, but mine is bit different. My web server is windows 2003 R2 with both .net framework 1.1 and 2.0 installed on C:\. Websites are saved on D:\wwwroot I run the follow code for a website which is running on dedicated pool, aspx files on 1.1 framework:
0
2555
by: mzodell | last post by:
Running Access 2003 with a database in 2000 file format and noticed that the search results differ depending on what version of Access is in use. Users running Access 2000 are able to call the find function to search for a record in a field that displays a location but is populated by a location code. When the user enters the location code, the search will return a record with matching location. Running the same database in Access 2003...
2
2667
by: moondaddy | last post by:
I had to repost this because I had to update and change my msdn alias. I will re-ask the question and clarify a few things that were not clear before. This code is all executed on my dev machine running winXP sp2 and VS2005. I'm using a c# 2.0 winforms app which talks to a c#2.0 asp.net app that also contains 1 web service. Note: the webpage and web service are located side by side in the same web app.
0
8399
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
8312
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
8827
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
8504
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,...
1
6169
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2732
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
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.