. Net-based WebProgramTo design Asp.net, We must install Vs and IIS. But what is the sequence of installation? Which one is installed first and then?
Normally, IIS is installed first and VS is installed later. In this way, no errors will occur, because Asp.net can be registered and written to IIS. If you first install Vs and then install IIS, this will cause "failure to access the IIS metabase ". In this case, you do not need to reinstall vs. Just register IIS again. The specific method is as follows:
[Solution]: open CMD and enter c: \ windows \ Microsoft. net \ framework \ v2.0.50727 or directly open the vs command prompt in the vs tool, enter aspnet_regiis.exe-I or aspnet_regiis-I, and reinstall Asp.net. Wait a moment until the registration is successful. Enter this command to configure the required application ing.
Then, the problem "failed to create mutex" appears. The solution is as follows: first disable your vs2005 in c: \ windows \ Microsoft. net \ framework \ v2.0.50727 \ temporary ASP. net Files directory find the directory of the program you just debugged to delete it; restart the IIS server and then browse your program again.
Suggestion: When installing these two types of software in the future, you must first install IIS and then install vs to avoid unnecessary troubles! ASP. net iis registration tool detailed explanation: http://msdn.microsoft.com/zh-cn/library/k6h9cz8h (vs.80). aspx In addition: Install the. NET Framework will generate the aspnet_client folder in the default website, to support the. NET environment. It is a collection of JS and is used by some forms such as regular expressions in. Net to provide script support for. Net verification controls. 2_0_50727 indicates that your. NET Framework version is 2_0_50727.
Another method to solve the problem of IIS installation after VS installation: Installing. NET Framework first and IIS later will cause the problem: "failed to access IIS metabase", and the page cannot be browsed.
Cause:IIS not registered
Solution:
In cmd, enter the directory c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 and run aspnet_regiis.
1. aspnet_regiis-ga Administrator (the Administrator is the current user)
2. aspnet_regiis-I (register IIS)
3. iisreset/noforce (restart IIS)
Operation Details:
C: \ Documents ents and Settings \ Administrator> Cd C :\\ Windows \ microsoft.net \ framework \ v2.0.50727
C: \ windows \ microsoft. Net \ framework \ v2.0.50727> aspnet_regiis-ga Administrator
Start granting administrator access to the IIS metabase and other directories us
Ed by ASP. NET.
Finished granting administrator access to the IIS metabase and other directories
Used by ASP. NET.
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727> aspnet_regiis-LV
2.0.50727.0 valid c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \
Pnet_isapi.dll
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727> aspnet_regiis-I
Start installing ASP. NET (2.0.50727 ).
..............
Finished installing ASP. NET (2.0.50727 ).
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727> aspnet_regiis-LV
2.0.50727.0 valid (Root) c: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \
Pnet_isapi.dll
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727> iisreset/noforce
Attempting stop...
Internet services successfully stopped
Attempting start...
Internet services successfully restarted
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727>