我的网络应用程序需要很长时间才能加载第一次? [英] my web application is taking a very long time to load first time?

查看:82
本文介绍了我的网络应用程序需要很长时间才能加载第一次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我开发了一个网络应用程序,第一次需要很长时间才能加载。我知道dll库需要一段时间来加载,但每次从visual studio运行项目时,这个需要大约7到10分钟。一旦我登录到系统它工作正常。



我的项目是使用.Net Framework 4.0,devexpress dll文件版本13.1.7,itextsharp,office interop dll文件,microsoft企业库,还可能是其他系统文件。



有人可以告诉我如何减少这个时间才能进入系统。

Hi,
i have developed a web application which takes a very long time to load for the very first time. i know the dll library takes a time to load but this one takes almost 7 to 10 mins everytime i run the project from the visual studio. once i login to the system it works fine.

my project is using .Net Framework 4.0, devexpress dll files version 13.1.7, itextsharp, office interop dll files ,microsoft enterprise library , and may be other system files.

can some one please tell me how can i reduce this time to get enter into the system.

推荐答案

你好,



当VS运行时,它会进行编译等...



所以probs编译你的应用程序需要很长时间。



还有其他需要考虑的事项。



有一个放慢速度的硬盘驱动器或者没有很多内存也会降低编译过程的速度。



例如:一个5400rpm hhd +一个4gb模块,让我们说一个核心i3将会在VS 2013的大型应用程序上有点挣扎。



所以我真的不担心,如果它在你的服务器上顺利运行没问题。



***提示:在调试MVC代码时,您可以编辑任何htm l等...当你正在调试时,不必每次都停止并开始调试过程,使用Ctrl + Alt + Enter从Visual Studio中刷新网站。



祝你好运!
Hello,

When VS runs, it does the compiling etc...

So probs compiling your app is taking long.

There are other things to take into account.

Having a slowing hard drive or not a lot of ram can also slow the compiling process down.

Eg: a 5400rpm hhd + a 4gb module and lets say a core i3 will struggle a bit on a large application with VS 2013.

So I wouldn't really worry, if it runs smoothly on your server no issue.

*** TIP: while you are debugging MVC code you can edit any html etc... while you are debugging and don't have to stop and start the debugging process everytime, use Ctrl+Alt+Enter to refresh the website from within Visual Studio.

Good Luck!


查看Build Configuration Manager。我记得单击Build,Configuration Manager。如果您处于调试模式,请确保仅检查实际需要构建的项目,并确保在调试模式下没有部署任何内容。



几乎听起来好像你处于发布模式并且构建超出必要的范围。
Look in your Build Configuration Manager. As I recall click Build, Configuration Manager. If you are in debug mode make sure only the projects that actually need to be built are checked and make sure nothing is getting deployed while in debug mode.

It almost sounds as if you are in release mode and building more than is necessary.


这篇关于我的网络应用程序需要很长时间才能加载第一次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆