Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unable to download under IIS 7
Message
De
23/09/2013 12:54:00
 
 
À
23/09/2013 11:49:17
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583406
Message ID:
01583912
Vues:
28
>>No, that's what it seems like (and why I just used Response.CompleteRequest).
>>If you actually follow the CompleteRequest link it goes here : http://msdn.microsoft.com/en-us/library/system.web.httpapplication.completerequest.aspx
>
>Very well, I will then have to recheck on this. So, from what you say, Reponse.End() should no longer being used because its support will be removed at one point or another.

Not necessarily removed (in fact I assume not) but only there for classic ASP compatibility and not good practice in ASP.NET

> The CompleteRequest() method should then be used.

If your problem was mixed up with Response.Redirect then the suggested method seems to be to call Response.Redirect() with the second parameter 'false' (which suppresses the internal call to Response.End()) followed by a CompleteRequest() e.g.:
Response.Redirect("somepage.aspx",false);
HttpContext.Current.ApplicationInstance.CompleteRequest();
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform