From architecture design to system implementation-a new. Net 3.0-Based Enterprise Application Design Based on Ajax and iis7 websites

Source: Internet
Author: User
Ajax application scenarios
Richer UI
Page partial refresh
Impact on Performance
Impact on Exception Handling

IIS 7 compatibility mode
Extended IIS 7 Architecture
Add the xml configuration file
% SystemDir % \ instsrv \ config \ Schema
Read using Microsoft. Web. Administration

<Configschema>
<Sectionschema name = "system. webserver/imagecopyright">
<Attribute name = "enabled" type = "bool" defaultvalue = "false"/>
<Attribute name = "message" type = "string" defaultvalue = "Copyright message"/>
<Attribute name = "color" type = "string" defaultvalue = "red"/>
<Attribute name = "cacheduration" type = "int" defaultvalue = "20"/>
</Sectionschema>
</Configschema>

IIS 7 Programming
Microsoft. Web. Administration

Servermanager iismanager = new servermanager ();

Foreach (workerprocess w3wp in iismanager. workerprocesses)
{
Console. writeline ("w3wp {0}", w3wp. processid );

Foreach (request in w3wp. getrequests (0 ))
{
Console. writeline ("{0}-{1}, {2}, {3}", request. url, request. clientipaddr, request. timeelapsed, request. timeinstate );
}
}

Related Article

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.