How does iis recognize a web application?

I was asked this question in an interview ...

1. How do I know which web application we are requesting?

2. As you know, a web application is developed in which language?

Can anyone explain them in detail ...

+3
source share
3 answers

I am not going to cover the territory of the web application because it is not your question, therefore throughout this answer I will use the terms web application or virtual directory interchangeably. If you want to know more about what a web application is in IIS, then this article is from the official MS website on IIS: Understanding Sites, Applications, and Virtual Directories on IIS 7 . Although the name speaks of IIS7, it also delves into IIS6.


What web application are we requesting

Keeping this simple, the request you make to the server contains the virtual directory included in it, or IIS is already configured to map the request to a specific virtual directory. If your requested URL looks like this:

http://someServer/myWebSite/default.aspx

myWebSite URL- , IIS , , . , , , , , , - - . URL- - . -, IIS, , , , - -. -/-. : HOWTO: IIS 6, 2 - -, - .


-

( aspx ascx). , (), - , , , . , , .

, , , MSIL (Microsoft Intermediate Language, CIL, Common Intermediate Language), JIT . (JIT-: , , ).

- ngen, .

+8

№1, IIS , -, , . IIS node, - directlry, "". ... , . IIS , API WMI, API LDAP, API COM API ( API IIS... v7 API, PowerShell).

, , №2 - . IIS , -, IIS -. , , . , , , "IIS , -, IIS .NET. -."

ASP.NET, , ASP.NET. @Page . , - .dll, .aspx,.ascx , , -. , ASP.NET .

+1

:

IIS ISAPI (, SSL, , PHP, ASP.NET,...).

1) IIS URI , URI.
ASP.NET *.ascx, *.ashx, *.aspx,... .
*.php PHP ..

2) ASP.NET first, ApplicationManager HostingEnvironment ( URI).

3) Kernel objects are initialized ( Http*like HttpRequest, etc.)

4) An object is created HttpApplication.

5) Requests are processed and return a response (if successful).

2-4 steps occur only once, and these objects are in memory, waiting for other requests.

+1
source

Source: https://habr.com/ru/post/1752208/


All Articles