خرابی: Microsoft Adcenter Labs و .NET

مردم تعجب می کنند که چرا من از برنامه نویسی لذت نمی برم ASP.NET. به این دلیل است که هر وقت این کار را انجام می دهم ، صفحه خطایی از این دست به من دست می دهد. من می دانم که اگر مردم خوب در مایکروسافت آیا نمی توانم برنامه های خود را بدون انجام آن توسعه دهم ، چگونه می خواهم ؟! از پیش بینی های جمعیتی Microsoft Adcenter Labs:

پیش بینی جمعیتی مایکروسافت adcenter

5 نظرات

  1. 1
    • 2

      You can get an error page with any platform, for sure Sameer. My complaint is that it’s a MICROSOFT site with a MICROSOFT error. They should be embarrassed that they’ve put up an application that errors, given that they are the ones who wrote both IIS and ASP.NET.

  2. 3

    I understand your point now. You are saying this particular Microsoft site is to be blamed.
    Okay your point is valid, they should customize their error page (which is a trivial task) but to actually place the blame on .NET is irresonsible to say the least. That would be like saying “I don’t like programming in PHP because the PHP site has a standard error page” 😛

  3. 4

    I did take a dig at Microsoft, too, Sameer :). I think the error pages in IIS with respect to ASP.NET are terrible! In other languages, including PHP, if error handling is on, I get detail regarding the error. It seems (to me) when I test with ASP.NET all I ever get is this config stuff.

  4. 5

    Ahh okay now I understand. But keep in mind its terrible by design. They intentionally hide the real error message. This is because you don’t want your vulnerabilities exposed to the world.

    The same thing with ASP.NET, you see the screenshot you have? Simply add customErrors=off then it will give you the exact error message.

    Infact there is even a plug and play error handling module you can get called Elmah which I think is just beautiful, I suggested it for use at work and its awesome. In this case you can hide the error messages from the site visitors, but it will be nicely logged and it can even be setup to send you an email every time a new error message appears. Talk about sweet 😉

    PS I like PHP too, but after using .NET for 2 years full-time it has really grown on me 🙂

شما چه فکر میکنید؟

این سایت از Akismet برای کاهش هرزنامه استفاده می کند. بدانید که چگونه نظر شما پردازش می شود.