IIS6 Deploying the Web service complete process

Source: Internet
Author: User
Tags domain name server ntfs permissions

Today, using the intranet to deploy Web services, using mobile phone access (mobile phone access to the Intranet Server Web page, see the previous blog),

The basic steps are as follows:

1.visual Studio generates a Web service and deploys it to a folder in WS

2. Server IIS in the Web site, right-click Add a new Web site ws, directory location 1 in the directory WS (add site process requirements set as shown in the site name, path, binding IP, and other content. Once IP is bound, access will be accessed by IP))

When you access the service, "" HTTP error 503 appears. The service is unavailable "error page


3. Continue with the following settings: In an application pool that automatically generates "WS" (generated automatically by a Web site of 2), locate the WS application pool, right-click menu and select Properties, select the 4.0 framework (generated in Visual Studio using 2010 of the 4.0 framework), managed pipeline mode selection "Classic" and tick "start Application pool Now" (to ensure that the application pool is running and not running will not see the effect)


4. Subsequent access to the service will appear


At this point click Site Zs, and in "IIS" in "Directory Browsing"

Under Actions, click Enable, this button will become disabled, you can eliminate this error


5. Configure the right-hand server, in the features view, double-click ISAPI and CGI restrictions to confirm that the WEB service extension is set to allow.


Tisp:
A, if the extension is not in the list, in the Actions pane, click Add.
B. In the Add ISAPI and CGI Restrictions dialog box, type the path to the. dll or. exe file in the ISAPI or CGI path box, or click Browse to navigate to the location of the file.
C. In the Description box, type a brief description of the limit.
D, (optional) Select Allow extension path to be allowed to run automatically.
E, if you do not select this option, the throttling status will be disallowed, which is the default state. You can select this option at a later time and click Allow in the actions pane to allow the limit. Click OK.

6. If you cannot browse the Web service, right click on the site right-click Program Pool – Advanced settings, drag down, in the process model has identified an item, click on the following ellipsis, in the pop-up window "built-in Account" dropdown, select "NetworkService", OK.

Well, after a few steps, both the computer and the phone can access the



Below, attach an article about:

Introduction to the IIS_WPG user group

in order to control The IIS_WPG group (also known as the IIS Worker process group, IIS workers process Group", and its members include the Local System (LocalSystem), Local service, network Service (Network Service) and IWAM account. The members of the IIS_WPG have the appropriate NTFS permissions and the necessary user permissions that can act as the process identity for worker processes in IIS 6. The following locations have permissions assigned to IIS_WPG:

? %windir%\help\iishelp\common– Read
? %windir%\iis Temporary Compressed files– list, read, write
? %windir%\system32\inetsrv\asp Compiled template– Read
? Inetpub\Wwwroot (or content directory)-Read, execute

In addition, IIS_WPG has the following user rights:

? Ignore traverse check (SeChangeNotifyPrivilege)
? Log on as a batch job (SeBatchLogonRight)
? Access this computer from the network (SeNetworkLogonRight) Therefore, the network Service account provides access to the above location, sufficient permissions to act as a process identity for the IIS 6 worker process, and permissions to access the network.

All IIS6 processes are run under the IIS_WPG account.


In addition, in the process of finding information, found I want to prove a long time, and never confirm the words, help us understand the HTTP protocol of the underlying implementation, in the following blue http Loop description of the ground body

503 Error503 is an HTTP status code. English name 503 Service Unavailable and 404 (404 Service Unavailable) are the same as a Web page status error code. The former is a server error return status, the latter is a Web program does not have the relevant search results returned after a state, need to optimize the site often need to make 404 error pages for the overall site optimization.

definitionThe server is currently unable to process the request due to temporary server maintenance or overloading. This situation503is temporary and will be resumed after a certain period of time. If the delay time can be estimated, then the response can contain a Retry-afterStart to indicate the delay time. If this is not given Retry-afterInformation, then the client should handle the (Server Internal Error)Handle it in a responsive manner. Attention: 503The presence of a status code does not mean that it must be used when the server is overloaded. Some servers simply want to deny connections to certain clients.AnalysisAppear 503Error, its Logare recorded in %Systemroot%\system32\logfiles\httperr\httperr1.log In One of the S-reasonItem: 1, if the Appshutdown, may be due to CPUA high occupancy rate causes the application pool to close automatically. 2, if the Appoffline, possibly due to an error in the application's identity. 3, if the Disabled, it may be caused by an administrator closing the application pool manually. 4, if the Queuefull, this error may be generated because the application pool queue is full at the time of the request.2http Loop any client that communicates with your network server needs to go through the following loops: obtain an IP address from your site's IP name (that is, your Web page address-URL, without the start of ' http://'). This correspondence (that is, the correspondence between IP names to IP addresses) is provided by the Domain name server (DNSS). Open an IP socket (socket) to connect to the IP address. Writes the HTTP data stream through the socket. The HTTP data stream that receives the response from your network server. The data stream includes a status code whose value depends on the HTTP protocol. Parse the data stream to get status coding and other useful information. This error is generated in the last step described above, when the client receives an HTTP status code and recognizes it as ' 503 '. 3reason for occurrenceWeb page appears1. The network administrator may close the application pool to perform maintenance.503 Error2. When the request arrives, the application pool queue is full. 3. The application pool identity does not use a pre-defined account: Network Service, and the identity is configured, but the configured user does not belong to IIS_WPGGroup 4, application pools are enabled CPUMonitor, and set the CPUUtilization exceeds a certain percentage to close the application pool, while the developer writes the server-side page ( . ASP ,.aspx) does not perform efficiently and can cause CPUFor a long time, eventually reaching the set percentage, which causes the application pool to shut down 5, the request queue limit of the application Pool Performance tab is too small, the default is +。 6. Web. config System.web/httpruntimeNode's appRequestQueueLimitThe value of the property setting is too low.Host SiteThe main reasons are two points:1, the site is being attacked. For the most new type of attack, it is actually DDoS, the principle is to find thousands of IP, at the same time to the server's ApacheMake a request, then immediately disconnect and let ApacheIs in a waiting state, causing ApacheThe thread is all filled up, causing the server to crash. Therefore, in order to ensure the interests of most customers, we give each space, made every +Seconds -A PHPThe limit of the request. Note that it is PHPRequests, general picture requests and HTMLRequests are not included.503 Error2, the program occupies too many PHP threads, some programs are not optimized processing, a click can produce several, or even dozens of PHPThread. In this way, a few clicks can take the time -A PHP thread is all filled up. therefore appears 503Error. Recommended to optimize the program, try to use less require(The meaning of "request").
Solution:To resolve this issue, follow these steps: 1. Verify that the application pool has been configured for the virtual server. The default application pool is MSSharePointPortalAppPool. Follow these steps to determine the application pool that the virtual server is using. A. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager. B. Expand ServerName, expand Web Sites, right-click the virtual server, and then click Properties. C. Click the Home Directory tab. The application pool configured for the virtual server is listed in the Application pool box. D. Click OK. 2. Verify that the password used by the application pool account is correct. IIS does not automatically poll for password changes in the ActiveDirectory directory service. If the application pool account is a domain account and its password has expired, you may receive the error message that is described in the "Symptoms" section of this article after you reassign a new password for this account. 3. Verify that the application pool account is a member of the IIS_WPG group and the STS_WPG group on the server. 4. Restart IIS to reclaim the application pool.4WorkaroundYour Web server is actually in the "shutdown repair" state. It still runs at a minimum because it can respond to at least 503 status codes, but full service is not possible, that is, your website is unavailable. There are a number of possible causes, but in general, it is due to the human intervention of your Web server operator. Usually you should know that someone is trying to resolve the problem and that the normal service will be restored as soon as possible. Please contact the system operator on your site to determine why the service is stopped. Compared with us, they will be better able to help you solve such errors.



IIS6 Deploying the Web service complete process

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.