Bonjour,
Est i l possible de mettre le debug a true ou false en fonction d'une IP ou nom de machine ?
Merci
Bonjour,
Est i l possible de mettre le debug a true ou false en fonction d'une IP ou nom de machine ?
Merci
Salut,
pas que je sache...en plus, si c'etait possible, ca couterait cher (recompilation en fonction de l'adresse ip...)\
Quel est le probleme que tu essayes de regler ?
En faite, j'oublie de tps en tps avant le passage en prod de desactiver le debug ds le global asax.
J'aurais preferé qq choses de sure
Bjr
le global.asax ne sert pas à activer ou désactiver le mode debug
Google + 30 secondes
http://weblogs.asp.net/scottgu/archi...11/442448.aspxIf you are a server administrator and want to ensure that no one accidentally deploys an ASP.NET application in production with the <compilation debug=”true”/> switch enabled within the application’s web.config file, one trick you can use with ASP.NET V2.0 is to take advantage of the <deployment> section within your machine.config file.
Specifically, by setting this within your machine.config file:
<configuration>
<system.web>
<deployment retail=”true”/>
</system.web>
</configuration>
You will disable the <compilation debug=”true”/> switch, disable the ability to output trace output in a page, and turn off the ability to show detailed error messages remotely. Note that these last two items are security best practices you really want to follow (otherwise hackers can learn a lot more about the internals of your application than you should show them).
Setting this switch to true is probably a best practice that any company with formal production servers should follow to ensure that an application always runs with the best possible performance and no security information leakages.
Oui dans le web.config, dsl j'ai tapé trop vite. Ok je vais me pencher sur Nant alors.
Partager