English 中文(简体)
视觉演播室开发服务器
原标题:Visual studio development server idle timeout

Does the visual studio development server have an equivalent IIS app pool idle timeout setting? If so, how do I change it? I m having trouble keeping my user s session open while running in a development environment and wonder if this could be the problem.

最佳回答

不幸的是,ASP.NET 据微软称,Dev Webservice并不代表真正的生产环境:

... This provides a convenient way to test your ASP.NET application without IIS 7 – however, we recommend that you configure Visual Studio to test your application by using the IIS 7 environment. The reasons for this are: The ASP.NET Development Server does not support hosting ASP.NET applications in Integrated mode, which is the default mode of operation used by IIS 7. This may introduce differences in application behavior. The ASP.NET Development Server does not support many of the IIS configuration features, so if your application relies on or uses them, its behavior may be different or incorrect when hosted under the ASP.NET Development Server. The ASP.NET Development Server does not support hosting portions of your application that utilize application technologies other than ASP.NET, such as PHP, CGI, and other third party frameworks.

问题回答

可在sessionState,载于

<system.web>
    <sessionState mode="InProc" timeout="30"  />
</system.web>

但是,如果你提出申请,这一价值也会发生变化。 另一种选择是使用

void Session_onStart(object sender, EventArgs e)
{
    #if DEBUG
        Session.Timeout = 6 * 60; // 6 hours
    #endif
}




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!