| | |
Detecting if ASP/ASP.NET is registered
Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
![]() |
•
•
Join Date: Dec 2008
Posts: 5
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Aug 2008
Posts: 1,158
Reputation:
Solved Threads: 136
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
http://geekswithblogs.net/sdorman/ar...01/107732.aspx
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,158
Reputation:
Solved Threads: 136
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
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
www.houseshark.net
•
•
Join Date: Dec 2008
Posts: 5
Reputation:
Solved Threads: 0
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)
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)
•
•
Join Date: Aug 2008
Posts: 1,158
Reputation:
Solved Threads: 136
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
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
www.houseshark.net
•
•
Join Date: Aug 2008
Posts: 1,158
Reputation:
Solved Threads: 136
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
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
www.houseshark.net
![]() |
Other Threads in the ASP.NET Forum
- Previous Thread: Dataview Rowfilter not working
- Next Thread: print basket to image
| Thread Tools | Search this Thread |
.net 2.0 3.5 ajax alltypeofvideos appliances asp asp.net bc30451 beginner browser businesslogiclayer c# c#gridviewcolumn cac checkbox class commonfunctions compatible confirmationcodegeneration content contenttype countryselector courier dataaccesslayer database datagrid datagridview datalist deployment development dgv dropdownlist dropdownmenu dynamic dynamically edit embeddingactivexcontrol fileuploader fill findcontrol flash flv formatdecimal forms formview gridview gudi homeedition iis javascript jquery listbox menu microsoft mouse mssql nameisnotdeclared news novell opera panelmasterpagebuttoncontrols problem redirect registration relationaldatabases reportemail schoolproject security serializesmo.table sessionvariables silverlight smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visual-studio visualstudio vs2008 web webapplications webarchitecture webdevelopemnt webdevelopment webprogramming webservice youareanotmemberofthedebuggerusers






