Skip to main content
Sign in Register
Question no. 91328

Which specific file forces the web application into offline mode ?

Select your answer for: Which specific file forces the web application into offline mode ?
Show answer

Answer: B. app_offline.htm

Explanation

Placing a file named app_offline.htm in the root directory of an ASP.NET application forces offline mode. IIS and the ASP.NET runtime detect this specific file and automatically shut down the worker process domain. Any incoming web requests are immediately redirected to display the contents of this offline file. Web applications require maintenance windows during which database schemas or binaries are updated. The ASP.NET runtime monitors application root directories for special configuration file additions. Displaying a friendly maintenance page prevents users from seeing unhandled compilation exceptions.

System administrators deploy app_offline.htm files before initiating major production code releases. Automated deployment scripts often drop this file temporarily to safely update application binaries. Users attempting to access the site receive clear communication about scheduled maintenance downtime. Using an HTML extension with an underscore is required, but variations without underscores fail detection. Variations using html extensions instead of htm are frequently unsupported by the runtime watcher. Selecting none of these is incorrect because app_offline.htm is the recognized maintenance trigger.

Topic
—
Difficulty
medium

Related questions

Q1. Which options signify the New Data-bound Controls integrated with ASP.NET ?

Select your answer for: Which options signify the New Data-bound Controls integrated with ASP.NET ?
Show answer

Answer: D. All of the above

ASP.NET 2.0 introduced powerful data bound controls to significantly simplify web data access. SqlDataSource simplifies connecting to databases directly from markup without extensive code behind. GridView and FormView co...

Q2. What utility is applied for administering the GAC ?

Select your answer for: What utility is applied for administering the GAC ?
Show answer

Answer: B. GacUtil.exe

GacUtil.exe is the official command-line utility provided by the .NET Framework for managing the GAC. It allows developers to install, remove, and list assemblies stored in the global assembly cache. The correct option c...

Q3. What method do you trigger on the DataAdapter control to populate your generated dataset with records ?

Select your answer for: What method do you trigger on the DataAdapter control to populate your generated dataset with records ?
Show answer

Answer: C. Fill( )

The Fill method of the DataAdapter populates a dataset with records from a database. It executes the underlying database command and maps the retrieved results into data tables. This method acts as the primary bridge bet...

Q5. Who possesses permissions to access Session state variables ?

Select your answer for: Who possesses permissions to access Session state variables ?
Show answer

Answer: C. A Single session

Session state variables are strictly isolated and accessible only within a single user session. Data stored in session state remains private and cannot be viewed by other active users. The server creates a unique session...

Q6. Which of the subsequent languages can be employed to author server side scripting in ASP.NET ?

Select your answer for: Which of the subsequent languages can be employed to author server side scripting in ASP.NET ?
Show answer

Answer: C. C#

C# is one of the primary object-oriented languages fully supported for server-side scripting in ASP.NET. ASP.NET compiles C# server code into intermediate language for execution by the managed runtime. The correct option...