IIS installation and IIS do not have access to solution (failed to access IIS metabase)

Source: Internet
Author: User
Tags metabase

Failed to access IIS metabase solution:

Cause: IIS is 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)

C: \ Documents ents and Settings \ Administrator> Cd C :\\ Windows \ microsoft.net \ framework \ v2.0.50727

2. aspnet_regiis-I (register IIS)

3. iisreset/noforce (restart IIS)

The following are the installation methods and IIS problems (from the network ):

(Use iis5.0 for WINXP and iis5.1 for Win2000)
Install the XP iis5.1 installation package .;
The iis5.1 installation package is suitable for Windows XP Professional Edition (XP family Edition does not have this function, most of the pirated XP is Professional Edition, And the OEM version is generally Home Edition)
Many people say that the installation package is useless and there is no installation file. I am dizzy, but this is not the case. Next I will discuss the approximate directory method of iis5.1:
1: Control Panel/add or deleteProgram/Delete the window component
2: Select Internet Information Service (IIS) and click Next to install it.
3: During the installation process, you are usually prompted to insert an xp cd. You don't need to worry about it. Click Browse to the downloaded directory. This installation package is valid for 100%]
 

Step 1: Install IIS

A. Select "Add/delete programs" in the control panel and select "Add/delete Windows Components" (1) in the displayed dialog box ).

B. Select "Install Internet Information Service (IIS) (2)" in the check box that appears. This component requires about 19 MB space.

C. You are prompted to insert an xp cd. You don't need to worry about it. Just click browse to the downloaded directory.

A prompt box may pop up during the installation process. You need to select a file on the CD and Click Browse to view the default file.

 

 

Step 2: basic configurations of web servers in IIS

The basic configurations of web servers in IIS include the following:

A. Open the IIS server configuration window and choose Start> program> Administrative Tools> Internet Service Manager or select control panel.

"Administrative Tools" → "Internet Service Manager" is also acceptable ,.

B. In the displayed window, right-click "Default web site" and select the "properties" menu.

C. In the displayed "Default web site properties" window, select the "home directory" label to set the location of the web content on the hard disk. The default directory is

"C: \ Inetpub \ wwwroot", you can set it as needed

 

D.select the document tab in the document window, set the initial Page name, for example, myfirstweb.htm, and add and move it to the list.

At the top

E. Check whether the default web site has been started. If not, right-click "Default web site" and select "start". In the open IE Address Bar

Enter the IP address of the Local Machine to see that the specified home page has been published on the Internet.

Here is just the most basic setting options for IIS. You can also set the "Default web site attribute" mentioned above as needed.

Set IIS security and other parameters.

========================================================== ========================================================== ============

No access permission. solution:

1. Under the default IIS website, you can enable Anonymous Access for the properties of the corresponding web application, including directory security, access control, and access control.
If you need to enter the user name IUSER_PC-201007081813, the string is my local number.
The local number can be viewed in the bottom name of advanced ---> instant search.

 
2 For the root directory, it may be because you have not configured the default page...
3. If not, the configuration is incorrect. The local IIS does not monitor port 80. To check whether port 80 of the local machine is listened on, run cmd to enter the command line window, and then run netstat-an | more to check whether the local address column contains port 0.0.0.0: 80, is the corresponding State column listening status? But no, it is not configured.
4. Choose Local Security Policy> Local Policy> User permission assignment.
There is a denial of access to the computer from the network. Check whether the specified user has everyone or IIS users. Then, check whether there is everyone in the computer from the network.

========================================================== ======================================
Microsoft official solution: you do not have access to Solution
Note: Windows Integrated Identity Authentication, Windows NT question/response (ntcr), and Windows nt lan Manager (NTLM) are the same

This document is used as a synonym.

* When you use Windows integrated authentication (Microsoft Windows NT question/response), Internet Explorer will prompt you to enter

Enter the password.

To enable Internet Explorer to automatically verify user logon and password and maintain security, the following conditions must be met:
O windows Integrated Identity Authentication must be enabled in IIS web site properties, also known as Windows NT question/response. First

Try anonymous authentication, then perform windows Integrated Identity Authentication, brief identity authentication (if applicable), and finally perform basic (plaintext) Identity

Verify.
O both the client and web server must be in the same

A domain, or in a trusted Windows NT-based or Windows 2000-based domain (in which user accounts can be granted access

Permission for IIS-based computer resources ).
O your browser must be Internet Explorer. Internet Explorer is the only one that supports windows integrated authentication.

(Ntcr) browser.
O Internet Explorer must treat the requested URL as an Intranet (local ). If the computer name of the requested URL

The section contains periods (such as http://www.microsoft.com and http: // 10.0.0.1), Internet Explorer assumes that

The requested address exists in the Internet without passing any creden。 automatically. Addresses that do not contain periods (such as http: // webserver) are considered

Intranet (local); Internet Explorer will automatically pass creden. The only exception is the Intranet in Internet Explorer.

Addresses included in the region.
O The security settings of the Intranet region of Internet Explorer must be set to "automatic logon only in the Intranet region ". This is

The default setting of Internet Explorer. For more information about the security area of Internet Explorer, clickArticleNumber,

View the articles in the Microsoft Knowledge Base:
174360 (http://support.microsoft.com/kb/174360/EN-US/) How to Use in Internet Explorer

Security Zone
O users who request a Web page must have an appropriate file system to access this web page and all objects referenced in this web page

(NTFs) permission. For example, a user may have full control over a Web page, but if the web page references a security folder

In the image, he will still receive a prompt for entering the password.
* When you use basic (plaintext) authentication or brief identity authentication, Internet Explorer prompts you to enter a password.

When you use basic (plaintext) authentication or brief identity authentication, Internet Explorer does not automatically pass your user name and password.

Therefore, when you use these authentication methods, you are always prompted to request creden.
* When using anonymous authentication, Internet Explorer prompts you to enter a password.

For anonymous authentication, you are never prompted to enter the password because IIS already knows the username and password of the anonymous account. You are prompted to enter the password

Internet Explorer has been forced to use authentication methods other than anonymous authentication. This is because anonymous users use

User Account (iusr_computername by default) does not obtain access to one or more projects:
O requested file or web page
O any requested object (sample) embedded in this file or web page)
O isapi extension name associated with the requested file or web page (for example, .shtml file)

========================================================== ======================================
Failed to access IIS metabase Solution
Net is reinstalled because net is installed before IIS is installed.
My net installation directory
C: \ windows \ Microsoft. NET \ framework \ v2.0.50727
Then enter c: \ windows \ microsoft. Net \ framework \ v2.0.50727> aspnet_regiis-u in cmd.
After uninstalling, enter c: \ windows \ Microsoft. NET \ framework \ v2.0.50727> aspnet_regiis-I
Success

========================================================== ====================================== 
Virtual directory not being configured as an application in IIS. Solution

This may happen if the path is set improperly.
Set the virtual path to the level folder where the Web. config is located. Otherwise, there will be conflicts.
Ex: My website is in D: \ My Documents ents \ Visual Studio 2008 \ projects \ websitesql1 \ precompiledweb \ websitesql1
The virtual path should also be set to this folder.

Configuration Error

Description:An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser error message:It is an error to use a section registered as allowdefinition = 'machinetoapplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Solution:
Scenario 1: When you create an newWebApplication Using Visual studio.net, it automatically creates the virtual directory and configures it as an application.
However, if you manually create the virtual directory and it is not configured as an application, then you will not be able to browse the application and
May get the above error. The debug information you get as mentioned above, is applicable to this scenario.

To resolve it, right click on the virtual directory-select Properties and then click on "CREATE" next to the "application" label and the textbox. It will
Automatically create the "application" using the virtual directory's name. Now the application can be accessed.

When using. Net to create a new web program, the virtual directory is usually automatically created and set as a website program.
However, if you manually create a virtual directory without setting it as a website program, you will not be able to browse the website page and see the preceding error.

Right-click "default website"-> New-> virtual directory, point the virtual directory to the place where the program is located, and set the website program to access it.

case 2: when you have sub-directories in your application, you can have web. config file for the sub-directory. however, there are certain properties which cannot
be set in the web. config of the sub-directory such as authentication, session state (You may see that the error message shows the line number where the
authentication or sessionstate is declared in the web. config of the sub-directory ). the reason is, these settings cannot be overridden at the sub-directory level
unless the sub-directory is also configured as an application (as mentioned in the above point).

Mostly we have the practice of adding web. config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we
Wish to protect the admin pages from Unathorized users ).

But actually, this can be achieved in the web. config at the application's root level itself, by specifing the location path tags and authorization, as follows :-

<Location Path = "admin">
<System. Web>
<Authorization>
<Allow roles = "Administrators"/>
<Deny users = "*"/>
</Authorization>
</System. Web>
</Location>

However, if you wish to have a web. config at the sub-directory level and protect the sub-directory, you can just specify the authorization mode as follows :-

<Configuration>
<System. Web>
<Authorization>
<Allow roles = "Administrators"/>
<Deny users = "*"/>
</Authorization>
</System. Web>
</Configuration>

Thus you can protect the sub-directory from unauthorized access.

When you place Web. config in a subfolder of a website program, some attributes cannot be set, such as authentication and session state.
(The error message shows the authentication declared by web. config In the subfolders and the row number of the session state ).
These settings cannot override the permissions of the quilt folder, unless the subfolders are set as website programs.
In general, we want to put web. config in a sub-folder to protect access to files in the sub-folder.
(Assume that the directory is admin. We want to protect the files in admin from being accessed by unauthorized users)

In fact, Web. config can also be used in the root directory of the website program as follows:
<Location Path = "admin">
<System. Web>
<Authorization>
<Allow roles = "Administrators"/>
<Deny users = "*"/>
</Authorization>
</System. Web>
</Location>

If you want to put web. config in a subdirectory, you can set it as follows:
<Configuration>
<System. Web>
<Authorization>
<Allow roles = "Administrators"/>
<Deny users = "*"/>
</Authorization>
</System. Web>
</Configuration>

This protects subfolders from being accessed by unauthorized users.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.