ASP .NET Development Server无法始终提供所有服务 [英] ASP .NET Development Server not serving everything all the time

查看:122
本文介绍了ASP .NET Development Server无法始终提供所有服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP SP3计算机上使用Visual Studio 2005,最近遇到了一些奇怪的问题。

I'm using Visual Studio 2005 on a Windows XP SP3 machine and recently have come accross a some what strange issue.

我有一个C#和ASP.NET在团队测试服务器上运行并在我自己的机器上本地使用IIS的项目。但是,使用内置的Visual Studio ASP.NET开发服务器运行它似乎并不总是提供所有images / scripts / css文件。当我加载页面一次图像A,B和C将丢失,我可能会得到一个系统(子包)错误然而再加载它所有那些图像将在那里,子包将工作但CSS,a脚本或任何其他图像文件可能丢失。

I have a C# and ASP.NET project that runs fine when on the team test server and using IIS locally on my own machine. However, running it using the in-built Visual Studio ASP.NET Development server it doesn't seem to serve all the images/scripts/css files all of the time. When I load a page one time images A, B and C will be missing and I may get a system (sub-package) error however loading it again all those images will be there and the sub-package will work but a CSS, a script or any other image file may be missing.

Windows事件应用程序日志似乎偶尔会显示丢失的文件将被记录,但这也不一致。

The Windows event application log seems to show occasionally the missing files will be logged but this isn't consistent either.

推荐答案

它一直发生在我身上;我认为原因是ASP.NET开发服务器不是一个非常好的HTTP服务器,当收到太多请求时,它会丢弃一些。

It happens to me all the time; I think the reason is that the ASP.NET Develoment server is not a very good HTTP server, and when receiveing too many requests, it drops some ones.

因为它是也非常非常慢,我配置了vs2008(你当然可以用vs2005做到这一点)来使用ASP.NET进行调试;它的效果要好得多。

Since it is also very very slow, I configured vs2008 (you can do that with vs2005, of course) to use ASP.NET for debugging; it works far better that way.

要做到这一点:

项目 - >属性 - > Web(最后tab) - >服务器。有三种选择:使用Visual Studio Development Server;使用本地Web IIS;使用自定义Web服务器。选择第二个。 (不确定确切的英文名称:我有VS的意大利语版本。)

Project -> properties -> Web (last tab) -> Server. There are three alternatives: Use Visual Studio Development Server; Use local Web IIS; Use custom Web server. Choose the second. (not sure about the exact english names: I have the Italian version of VS).

这篇关于ASP .NET Development Server无法始终提供所有服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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