This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory
Asked Answered
U

8

13

can any body suggest me how to remove the app_offline.htm file from application root directory in asp.net web application.when i run the page it doesnt show the design of html source

Unrivaled answered 21/12, 2010 at 8:0 Comment(2)
Is that a bug in visual studio. How app_offline comes to existence?Bower
I saw this error and didn't see the file. I just relaunched Visual Studio and it worked after that 🤷‍♂️Ephrayim
T
24
  1. Go to Visual Studio 05/08 and open the solution explorer.
  2. In the root folder there should be a folder named "App_offline.html". Right click on it and delete it.
  3. Re-open Visual Studio and you should be able to browse your page.
Thrombus answered 30/3, 2011 at 6:3 Comment(0)
F
8

If you cannot find app_ofline.htm file in solution explorer, use windows explorer to get to the position of the solution and delete it manually. You can do it by rigth clicking to solution and clicking on "open folder in file explorer".

Fardel answered 7/4, 2014 at 12:15 Comment(1)
Your comment help me a lot, i was in a moment at work where i was not thinking because of the stres, and you helped me to solve it, thanks!!Cockle
F
4

Just go to the root of your web directory, it should be there. it is something that VS puts there during certain tasks.

Factional answered 21/12, 2010 at 8:1 Comment(0)
R
1

Solution for the problem

"This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory."

  1. Go to your IDE (Visual studio)
  2. Go on the solution Explorar in which site error is showing
  3. RightClick and Delete that file.
Radiotelegraphy answered 15/6, 2014 at 13:41 Comment(0)
S
1

How to solve this problem, when you got this error on the web page like as following image.

enter image description here

Solution 1

You can delete it from your project folder like as following picture , and then you can run your web page again, it will be okay .
enter image description here

Sumerlin answered 24/5, 2017 at 8:7 Comment(0)
F
0

To when running an ASP.NET app locally & receiving 'App is offline' small yellow bad screen. To resolve one set of steps maybe:

  1. Visual Studio Solution Explorer select the file App_offline.html
  2. 'Exclude from Project' Right click and select
  3. F5 - Build and Debug project again
Fattal answered 13/2, 2014 at 13:36 Comment(1)
I think "Exclude from Project" will not work. It needs to be deleted permanently.Derris
L
0

The ASP.Net runtime environment checks the root of the application on the server for an “app_offline.htm” file and if it exists then it stops processing the new requests for the application and redirects the user to the “app_offline.htm” file to notify the user about the change.

So any time following message occurs

"This application is currently offline. To enable the application, remove the app_offline.htm file from the application root directory."

Remove the magical file “app_offline.htm” from the Home directory
Lenalenard answered 25/7, 2017 at 5:7 Comment(0)
D
0

Go for the root folder and search app_offline.htm. You will get the file and just delete it and restart your visual studio

And i have indicated why this app_offline.htm is created

This is a .NET 2.0 "feature"

http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx

http://www.codeproject.com/KB/aspnet/app_offline.aspx

"The easiest way around this is to never publish directly to your server. You shouldn't anyway... Publish to a local folder then copy the site up"

Do you use Visual Studio? http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=102778

Disingenuous answered 26/2, 2018 at 13:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.