성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
[정성태] 제가 큰 실수를 했군요. ^^; Delegate를 통한 Bein...
[정성태] Working with Rust Libraries from C#...
[정성태] Detecting blocking calls using asyn...
[정성태] 아쉽게도, 커뮤니티는 아니고 개인 블로그입니다. ^^
[정성태] 질문이 잘 이해가 안 됩니다. 우선, 해당 소스코드에서 ILis...
[양승조
] var대신 dinamic으로 선언해서 해결은 했습니다. 맞는 해...
[양승조
] 또 막혔습니다. ㅠㅠ var list = props[i].Ge...
[양승조
] 아. 감사합니다. 어제는 안됐던것 같은데....정신을 차려야겠네...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
닷넷
.NET 3.0
.NET 3.5
.NET 4.0
VC++
개발 환경 구성
제품 소개
VS.NET IDE
Vista
Windows 7
Windows 8
Windows 서버
Team Foundation Server
IIS
디버깅 기술
Win32
64비트
오피스
웹
기타
Phone
부모글 보이기/감추기
내용
Cool new IIS7 Features and APIs<br /> ; <a target="_blank" href="http://weblogs.asp.net/scottgu/archive/2006/04/20/443513.aspx">http://weblogs.asp.net/scottgu/archive/2006/04/20/443513.aspx</a><br /> <br /> 멋지군요. ^^<br /> <br /> Vista 는 둘째치고, IIS 7 이 더욱 기대되게 만드는 군요.<br /> <br /> <hr /> <div class="post"> <h2> <a id="viewpost.ascx_TitleUrl" href="http://weblogs.asp.net/scottgu/archive/2006/04/20/443513.aspx">Cool new IIS7 Features and APIs</a> </h2> <p><font face="Arial" size="2">IIS7 is a major upgrade of IIS, and will ship in both Windows Vista as well as Windows Longhorn Server. It includes a ton of new functionality, including some very rich integration with ASP.NET. This includes:</font></p> <p><font face="Arial" size="2">1) The ability to now have HttpModules and HttpHandlers participate in all requests to a server. You no longer need to map requests to the ASP.NET ISAPI in order to write managed modules that participate in requests. This makes building modules for flexible authentication, authorization, logging, url-rewriting, auditing, etc. super easy with .NET. You could even now have an ASP.NET HttpModule provide forms-authentication to a PHP or JSP page (in addition to .htm files and static files like images and movies).</font></p> <p><font face="Arial" size="2">2) Integration of the ASP.NET configuration system with IIS. IIS now uses the same web.config configuration model as ASP.NET, which means you can have both ASP.NET and IIS configuration settings in the same file together. You can now set things like default pages, IIS security, logging, etc within a web.config file and xcopy/ftp it to a server. This should simplify deployment and installation of applications considerably. It also enables "delegated administration" for hosting scenarios -- where a hoster provides the application developer the ability to configure certain settings in their web.config file without requiring full admin privledges.</font></p> <p><font face="Arial" size="2">3) An integrated Admin UI tool that manages both IIS and ASP.NET settings together. Included within this rich GUI is support for things like the Membership, Roles and Profile providers (so you can create/delete users directly within the GUI tool -- regardless of what provider is configured). The admin tool also supports remote delegated admin over http -- which means you can point the rich-client admin tool at a shared hoster server and manage your users/roles/profile settings remotely over http (which is pretty cool).</font></p> <p><font face="Arial" size="2">4) Much better request auditing and error debugging. We have a new feature we call "Failed Request Event Buffering" (affectionately known as "FREB"), which allows administrators to configure applications to automatically save request information anytime an error occurs during a request, or if a request takes longer than a specified amount of time to complete (note: if the request completes ok this information can then be just thrown away -- and so doesn't fill up your disk log). This allows you to easily go in after the fact and see what exactly happened during a request that failed, as well as analyze any error exceptions. This can even capture tracing messages generated within ASP.NET or within any component or class library that uses System.Diagnostics -- which makes it much easier for developers and admins to instrument and analyze what is going on with systems at runtimes.</font></p> <p><font face="Arial" size="2">5) Much better configuration APIs and command-line tools. In addition to new config and admin APIs (including a nifty one that you can use to get a listing of all "active" requests being processed by the server -- as well as what state they are in), we now have a great command-line admin story that you can use to set/modify/retrieve all configuration information as well as manage the server (start/stop individual apps, lookup their health state, register new apps, refresh SSL certs, etc). The command-line tool and APIs are also extensible, so you can plug in your own providers and extensions to them.</font></p> <p><font face="Arial" size="2"><a href="http://blogs.msdn.com/carlosag/archive/2006/04/17/MicrosoftWebAdministration.aspx">Carlos</a> from the IIS7 team wrote a nice blog entry a few days ago about some of the new admin APIs that are coming. You can read it </font><a href="http://blogs.msdn.com/carlosag/archive/2006/04/17/MicrosoftWebAdministration.aspx"><font face="Arial" size="2">here</font></a><font face="Arial" size="2">.</font> </p> <p><img src="http://www.carlosag.net/images/ServerManager.png" /></p> <p><font face="Arial" size="2">As you can see in this article, there is now an easy .NET way to perform a lot of common tasks (much easier than doing it via ADSI or WMI). My favorite one is this code-snippet:</font></p> <p><font face="Arial"><font size="2">ServerManager iisManager <font color="blue">= new </font><font color="black">ServerManager()</font><font color="blue">;</font></font></font></p> <p><font face="Arial"><font size="2"><font color="blue">foreach</font><font color="black">(WorkerProcess w3wp </font><font color="blue">in </font><font color="black">iisManager.WorkerProcesses) {</font></font></font></p> <p><font face="Arial"><font size="2"><font color="black"> Console.WriteLine(</font><font color="#808080">"W3WP ({0})"</font><font color="black">, w3wp.ProcessId)</font></font></font><font face="Arial"><font size="2"><font color="blue">;<br /> <br /> foreach </font><font color="black">(Request request </font><font color="blue">in </font><font color="black">w3wp.GetRequests(</font><font color="maroon">0</font><font color="black">)) {</font></font></font></p> <p><font face="Arial"><font size="2"><font color="black"> Console.WriteLine(</font><font color="#808080">"{0} - {1},{2},{3}"</font></font></font><font face="Arial" color="black" size="2">,<br /> request.Url,<br /> request.ClientIPAddr,<br /> request.TimeElapsed,<br /> request.TimeInState)</font><font face="Arial" color="blue" size="2">;<br /> </font><font face="Arial" color="black" size="2">}<br />}</font></p> <p><font face="Arial" size="2">In case you are wondering what it does, it is a simple command-line program that uses the new .NET APIs to query IIS7 to get a collection of all active worker processes on the computer, and then print out a list of all current requests being proceeded in each one -- outputting the request's URL, the client-IP address of the remote user, as well as how long it has been executing, and how long it has been in its current state (for example: is it in the authentication module, authorization module, executing within the page, etc).</font></p> <p><font face="Arial" size="2">If you are every wondering "what is going on with this app or server right now" (for example: does it seem to be running slow), you can now run the above code to easily find out in real-time and/or figure out what applications or requests are taking a lot of time -- and then activate FREB on those applications to drill into why.</font></p> <p><font face="Arial" size="2">Hope this helps,</font></p> <p><font face="Arial" size="2">Scott</font></p> <p><font face="Arial" size="2">P.S. I'll be doing a lot more IIS7 posts over the next few months once the beta is more broadly available with Windows Vista. I'm super proud of the team and all they've delivered -- it is really going to rock.</font></p> <p class="postfoot"> posted on Thursday, April 20, 2006 10:31 PM </p> </div>
첨부파일
스팸 방지용 인증 번호
2033
(왼쪽의 숫자를 입력해야 합니다.)