English 中文(简体)
改变习俗 网上错误。 半衰期
原标题:Changing customErrors in web.config semi-dynamically

基本思想是,我们有一个试卷,试卷了生产,因此习惯“RemoteOnly”。 我们刚刚建立了一种试验利用,与试爆和探测断裂发生对照。 我们希望它能够收回详细的错误。 但是,我们不希望将习惯Errors=“On”转而去,因为那是 t。

我仔细研究并思考许多问题,我前面提到的一切都有可能。 我对其中任何一点都是错误的?

  • We can t turn customErrors on at runtime because when you call configuration.Save() - it writes the web.config to disk and now it s Off for every request.
  • We can t symlink the files into a new top level directory with it s own web.config because we re on windows and subversion on windows doesn t do symlinks.
  • We can t use URL-Mapping to make an empty folder dir2 with its own web.config and make the files in dir1 appear to be in dir2 - the web.config doesn t apply
  • We can t copy all the aspx files into dir2 with it s own web.config because none of the links would be consistent and it s a horrible hacky solution.
  • We can t change customErrors in web.config based on hostname (e.g. add another dns entry to the test server) because it s not possible/supported
  • We can t do any virtual directory shenanigans to make it work.

如果我不说,是否有办法完成我想要做的工作? 在某些情况下(地名或甚至立方位值)在全地点进行海关校外活动?

问题回答

如果您有“在线”或“远处”的习惯错误细节,就会消失? 我指的是,你仍然能够使用你的习俗错误网页,将其与另一个来源进行记录。

为什么你在生产过程中的习惯错误一页将你掌握的信息与信息格格或应用事件记录一样,在什么地方可以查阅? 当驾车停下来时,必须有足够的聪明才智,在适当的地方对全错误信息进行调查。

另一个值得考虑的事项。





相关问题
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!

热门标签