Is there a way for an ASP.NET app to show a wait screen to the user that kicks off the Application_Start event?

技术标签: C#  ASP.NET.

Greetings folks,

The ASP.NET application I'm maintaining has a fairly long start up procedure. A number of data files are updated, etc. I've been asked if there is a way for the application to return a wait screen (static if necessary) while Application_Start is running?

看答案

No, there's not. ASP.Net needs to initialize the pipeline and everything else just to get to the point of being able to actually handle the request.

Prior to that point, .Net has no idea what the request is, nor what the potential outcome might be. For example, it might be a web service call which has no response. Or the request might cause a document to download at which point you don't want to have any data sent to the client yet.

Instead, I'd look into two things. First, how to reduce the app_start time; and, second, why would an application_start event be kicked off more than once in a blue moon.


智能推荐

Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.

在Idea中新创建了一个Springboot项目。然后启动发现了一个新错误: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. 原因: Application.java 文件不能直接放在main/java文件夹下,必须要建一个包把他放进去...

One year after cutting off from Bitcoin. Is BCH still on the way to replacing BTC?

It has been one year since the first fork in the crypto world, Bitcoin Cash, came out as an independent token from Bitcoin. In the past year, the BCH was viewed as a powerful rival to Bitcoi...

[Ambari] Yarn User [dr.who] is not authorized to view the logs for application

报错      User [dr.who] is not authorized to view the logs for application 原因     Resource Manager UI的默认用户dr.who权限不正确 解决     修改配置, 在HDFS > Configurations > ...

The goal you specified requires a project to execute but there is no POM in this directory

最近学习使用maven,然后在通过cmd命令“maven test E:mavenTest”,运行项目工程的时候碰过这个错误,看错误日志提示,我们知道“C:\Users\Administrator”这个路径下找不到pom.xml文件,可是我的工程不是在这个路径下并且我也是指定了工程路径了,为什么还是报错,所以我就尝试直接进入工程文件夹,执行mvn t...

The goal you specified requires a project to execute but there is no POM in this directory

Maven项目打包 mvn -U package -DskipTests 时碰过这个错误。 看错误日志提示,我们知道“/Users/anan/ws/BBKTest”这个路径下找不到pom.xml文件,可是我的工程不是在这个路径下,为什么还是报错,所以我就尝试直接进入工程文件夹,执行mvn test,发现可以正常启动maven工程项目了,原来“mvn test&r...

猜你喜欢

redis中的hash扩容渐进式rehash过程

背景: redis字典(hash表)当数据越来越多的时候,就会发生扩容,也就是rehash 对比:java中的hashmap,当数据数量达到阈值的时候(0.75),就会发生rehash,hash表长度变为原来的二倍,将原hash表数据全部重新计算hash地址,重新分配位置,达到rehash目的 redis中的hash表采用的是渐进式hash的方式: 1、redis字典(hash表)底层有...

不同系统下的回车\r和换行\n,及其历史

2019独角兽企业重金招聘Python工程师标准>>>      我们平时按下键盘上的‘回车键’,就能实现回车换行【我们在屏幕上所看到的就是光标移到了下一行的开头位置!!ps:不讨论软件实现的特殊功能,如word里的回车智能缩进】。因此对这个按键更准确说应该叫做‘回车换行键’ 就且将这种将光标移到下行开...

windows操作系统,python环境下django的自动安装

首先,在Windows操作系统下安装python,完成python环境的搭建。(我看有的博客需要配置环境变量,其实不必要,因为我们在安装的时候只要勾选如下图所示即可避免不必要的麻烦) 第二步,使用快捷键windows+R或者点击如下图所示,之后点击运行 在其中输入cmd即可进入dos命令。 第三步,输入以下命令 就会自动安装,等待安装完成即可。 第四步,检测django是否安装成功,如果出现如下图...

Qt之日志输出文件

    做过项目的童鞋可能都使用过日志功能,以便有异常错误能够快速跟踪、定位,Qt也提供的类似的机制。之前用Qt4做项目时使用的是Qt::qInstallMsgHandler(),到了Qt5,使用了新的Qt::qInstallMessageHandler()来替代,详情请查看Qt助手(C++ API changes)。 描述     助手中在C++ API ...

基于雇员流失率数据进行多分类模型训练及阈值调整实践-大数据ML样本集案例实战

版权声明:本套技术专栏是作者(秦凯新)平时工作的总结和升华,通过从真实商业环境抽取案例进行总结和分享,并给出商业应用的调优建议和集群环境容量规划等内容,请持续关注本套博客。QQ邮箱地址:[email protected],如有任何学术交流,可随时联系。 1 数据的预处理分析 2 数据标准化处理 3 sklearn多模型封装(已废弃,学思想) 4 阈值概率调整 5 总结 方便复习,整成笔记,内容粗略...

问答精选

How to get the sum of rows using a vector and the make the result in a column

I have a dataframe and i want to calculate the sum of variables present in a vector in every row and make the sum in other variable after i want the name of new variable created to be from the name of...

Call a custom class in zend framework

I have a very rough project that done partially in zend framework (not ZF2). The 'application', 'library' and 'public' folders are on the same root. Now i need to create a library 'Anil' in the 'libra...

Hide Some Of The Categories In Magento?

I want to hide some of the categories from magento home page. I have created some categories like New Arrivals, Special Offer Which I would like to show in some different way may be in left panel or r...

Reading an internal file in Android Studio

I am writing to an internal file in Android Studio The code lets me write lines of data split with commas. I am able to then go to another activity and read it all out at once. However I want to be ab...

Rails Acts_as_votable Gem Like/Unlike Buttons with Ajax

I'm new to Ruby On Rails, I used the acts_as_votable gem to create Like and Unlike Buttons to make Users like and unlike Posts but I can't make them change from Like to Unlike (and viceversa) and upda...

相关问题

相关文章

热门文章

推荐文章

相关标签

推荐问答