943,929 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 1395
  • ASP.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Dec 2nd, 2008
0

Detecting if ASP/ASP.NET is registered

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ekaterina is offline Offline
5 posts
since Dec 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ekaterina is offline Offline
5 posts
since Dec 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ekaterina is offline Offline
5 posts
since Dec 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Ekaterina is offline Offline
5 posts
since Dec 2008
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

Cant you use WMI to query the IIS server to see if it has support for ASP and/or ASP.NET scripting?
Moderator
Featured Poster
Reputation Points: 1784
Solved Threads: 574
Moderator
jbennet is offline Offline
16,520 posts
since Apr 2005
Dec 2nd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

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
Reputation Points: 133
Solved Threads: 141
Veteran Poster
dickersonka is offline Offline
1,162 posts
since Aug 2008
Dec 3rd, 2008
0

Re: Detecting if ASP/ASP.NET is registered

Reputation Points: 10
Solved Threads: 9
Junior Poster
sierrainfo is offline Offline
144 posts
since May 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Dataview Rowfilter not working
Next Thread in ASP.NET Forum Timeline: print basket to image





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC