Bonjour,
J'ai hérité d'une application ASP.Net qui fonctionnait très bien jusqu'à maintenant et qui affiche une erreur lorsque l'on charge une des pages.
Dans le code behind il y a cette instruction qui maintenant donne une erreur :
L'erreur indiqué au chargement de la page est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 protected void Page_Load(object sender, EventArgs e) { remote_pc = ((System.Net.Dns.GetHostEntry(Request.ServerVariables["remote_addr"]).HostName.ToString()).Split('.'))[0].ToString(); }
"Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: No such host is known"
Sauriez-vous me dire quel est le problème sachant que le fichier .aspx et le .aspx.cs n'ont pas été modifiés depuis 2012 ?
Merci d'avance de votre aide.
David
Partager