Detecting if ASP/ASP.NET is registered

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 5
Reputation: Ekaterina is an unknown quantity at this point 
Solved Threads: 0
Ekaterina Ekaterina is offline Offline
Newbie Poster

Detecting if ASP/ASP.NET is registered

 
0
  #1
Dec 2nd, 2008
How can I detect if ASP.NET is registered or not (programmatically)?

I've read a lot of posts about checking register, for example:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\..., but I have not this key at all, and
about existing the folder "C:\Inetpub\wwwroot\aspnet_client"(but it can be absent)

Also I can't use the Metabase.xml because it has different structure for IIS 6.0 and 7.0.

I need errorless variant to detect it.

Thanks, Ekaterina
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #2
Dec 2nd, 2008
here's a link that will point you in the right direction for asp.net and iis

http://geekswithblogs.net/sdorman/ar...01/107732.aspx
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 5
Reputation: Ekaterina is an unknown quantity at this point 
Solved Threads: 0
Ekaterina Ekaterina is offline Offline
Newbie Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #3
Dec 2nd, 2008
Thanks for answer, but I've mentioned in my previous question that I have registered ASP.NET but keys (e.g .NET 2.0 - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0) are absent in my registry.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #4
Dec 2nd, 2008
hmmm very weird

try this then
from your .net framework folder, normally
c:\windows\Microsoft.NET\Framework\v2.0.50727 (may be different version)

run this

aspnet_regiis.exe -lv
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 5
Reputation: Ekaterina is an unknown quantity at this point 
Solved Threads: 0
Ekaterina Ekaterina is offline Offline
Newbie Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #5
Dec 2nd, 2008
aspnet_regiis -lv :
2.0.50727.0 Valid (Root) C:\WIN64\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll

But If I uninstall all version of ASP.NET: (aspnet_regiis -ua) I will get just message after calling aspnet_regiis -lv : "Cannot find any installed version" and this is not useful for localized system(if check string after calling command)
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #6
Dec 2nd, 2008
maybe i just don't get what you are wanting

you said you wanted to know if asp.net was registered or not, i don't get what you are wanting past that

let me know and i'll do my best to help
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 5
Reputation: Ekaterina is an unknown quantity at this point 
Solved Threads: 0
Ekaterina Ekaterina is offline Offline
Newbie Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #7
Dec 2nd, 2008
I want to detect if ASP.NET is registered or not from code? It is very important that just from code. May be you know appropriate API to do this (.NET), because I can't find suitable one.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,187
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 533
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: Detecting if ASP/ASP.NET is registered

 
0
  #8
Dec 2nd, 2008
Cant you use WMI to query the IIS server to see if it has support for ASP and/or ASP.NET scripting?
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,160
Reputation: dickersonka will become famous soon enough dickersonka will become famous soon enough 
Solved Threads: 137
dickersonka dickersonka is offline Offline
Veteran Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #9
Dec 2nd, 2008
you'll need to combine two things to do this, as far as i know

call the process from code
http://www.tech-archive.net/Archive/.../msg00054.html

and redirect standardoutput and parse the results
http://www.vbforums.com/showthread.php?t=381405

i think this should be more in a installer package or something along those lines, but hey
Custom Application & Software Development
www.houseshark.net
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 144
Reputation: sierrainfo is an unknown quantity at this point 
Solved Threads: 9
sierrainfo sierrainfo is offline Offline
Junior Poster

Re: Detecting if ASP/ASP.NET is registered

 
0
  #10
Dec 3rd, 2008
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC