Skip to content
October 22, 2009 / red1s

SharePoint’s Detailed Error Messages Vs. The Annoying Page!


 

Usually, an error message will be your first indication that something went wrong. Unfortunately, SharePoint uses a user friendly (Yellow & Blue) error page to show that a problem occurred. Yeah, they call it the user friendly page, but we, as developers, call it the Annoying Page. The first time I wrote SharePoint code, I received a screen like the one shown in the figure below:

This error page points out that an assembly has thrown an unhandled System.Exception. Sometimes, the user-friendly error page will specify the nature of the error if the code that threw the exception used something more specific than System.Exception or if it included a message in the Exception class constructor.

We need to get a more detailed Error Message than the annoying “Unexpected error has occurred “. This can be achieved by doing three modifications to the Web.Config file from the virtual directory containing your SharePoint application. These modifications are listed in the next table.

Tag Attribute Default Value New Value
customErrors Mode On Off or Remote Only
SafeMode CallStack FALSE TRUE
SafeMode AllowPageLevelTrace FALSE TRUE

No Custom Errors shows the full error to every client, every time. This is typically used Development environment, since there are no clients using it.

I recommend using the Debug Config feature to automate this process. This is just a feature that when you activate on a web application, it automatically tweaks the Web.Config of the specified web application across the farm.

Digg This
Advertisements

9 Comments

Leave a Comment
  1. Unknown / Dec 1 2009 11:52 am

    好站推蔫!!!http://channel0204.com|http://channel0401.com|http://channel0401.net|http://channel1007.com|http://channel1007.net|http://channel176.info|http://channel176.net|http://channel222.info|http://channel222.net|http://dxmeimei.com|http://dxmeme.com|http://dxroom.com|http://dxsexy.com|http://dxtalk.com

  2. Unknown / Apr 13 2010 11:45 am

    There are cheap shoes to choosehttp://www.nike-airjordanshoes.com/jordan-6-c-53.html jordan 6http://www.nike-airjordanshoes.com/jordan-7-c-55.html jordan 7Good quality with low price.http://www.nike-airjordanshoes.com/air-jordan-other-shoes-air-jordan-2010-c-126_131.html air jordan 2010http://www.nike-airjordanshoes.com/air-jordan-2009-c-146.html Air Jordan 2009You can have a look at it.http://www.nike-airjordanshoes.com/ jordan shoeshttp://www.nike-airjordanshoes.com/jordan-ajf-shoes-c-134.html jordan ajf shoesWe offer different styles.http://www.nike-airjordanshoes.com/jordan-1-c-48.html jordan 1http://www.nike-airjordanshoes.com/jordan-2-c-49.html jordan 2If you like,you can contact us.http://www.nike-airjordanshoes.com/jordan-3-c-50.html jordan 3http://www.nike-airjordanshoes.com/jordan-4-c-51.html jordan 4Thanks.http://www.nike-airjordanshoes.com/jordan-5-c-52.html jordan 5http://www.nike-airjordanshoes.com/jumpman23-c-144.html jumpman23

  3. Cindy / Apr 17 2010 5:22 am

    http://www.ghdhairstraightenerswholesale.com/ Cheap GHD Straighteners Discount GHD Styler http://www.sunglasshunting.com/ 2010 Cheap ED Hardy Sunglasses Discount Oakley Sunglasses http://www.pickedhardyca.com/ cheap ED Hardy Clothes discount ED Hardy Outlet http://www.us-handbagsoutlet.com/ cheap Prada shoes discount Prada Sunglasses http://www.ankhroyalty-us.com/ Ankh Royalty Clothing AnkhRoyalty Outlet http://www.sunglasshunting.com/armani-sunglasses-c-9.html discount Armani Sunglasseshttp://www.sunglasshunting.com/burberry-sunglasses-c-14.html discount Burberry Sunglasses http://www.sunglasshunting.com/cartier-sunglasses-c-27.html discount Cartier Sunglasses http://www.sunglasshunting.com/chanel-sunglasses-c-1.html discount Chanel Sunglasses http://www.sunglasshunting.com/coach-sunglasses-c-3.html discount Coach Sunglasseshttp://www.sunglasshunting.com/dg-sunglasses-c-4.html discount D&G Sunglasses http://www.sunglasshunting.com/dior-sunglasses-c-5.html discount Dior Sunglasseshttp://www.sunglasshunting.com/ed-hardy-sunglasses-c-15.html discount ED Hardy Sunglasses http://www.sunglasshunting.com/fendi-sunglasses-c-13.html discount Fendi Sunglasseshttp://www.sunglasshunting.com/gucci-sunglasses-c-18.html discount Gucci Sunglasses http://www.sunglasshunting.com/lv-sunglasses-c-11.html discount LV Sunglasses http://www.sunglasshunting.com/oakley-sunglasses-c-6.html cheap Oakley Sunglasses http://www.sunglasshunting.com/police-sunglasses-c-10.html discount Police Sunglasseshttp://www.sunglasshunting.com/prada-sunglasses-c-7.html discount Prada Sunglasses http://www.sunglasshunting.com/ray-ban-sunglasses-c-25.html discount Ray Ban Sunglasses http://www.sunglasshunting.com/roberto-cavalli-sunglasses-c-22.html discount Roberto Cavalli Sunglasses http://www.sunglasshunting.com/versace-sunglasses-c-8.html discount Versace Sunglasseshttp://www.monclerjacketoutlet.com/ Moncler jackets Moncler coats http://www.topwholesaleb2b.com Cheap Ed Hardy Sunglasses

  4. Unknown / Apr 17 2010 10:10 am

    http://www.pickcoachhandbag.com/ Cheap Coach handbag 2010http://www.us-luxuryhandbags.com/ LV handbags 2010http://www.rainbootsrubberboots.com/ cheap rain wearhttp://www.us-fashionjeans.com/ Cheap Ture Religion Jeans outlethttp://www.us-abercrombiefitch.com/ cheap abercrombie fitch clothinghttp://www.wholesale-edhardyca.com/ ed hardy wholesalehttp://www.topwholesaleb2b.com/ wholesale LV handbagshttp://www.mymoncler.com/ New moncler coatshttp://www.monclerfactorystore.com/ Moncler outlet

  5. Unknown / Apr 21 2010 8:58 am

    http://www.mtboutlets.com/ MBT Shoes in fashionhttp://www.us-dioroutlet.com/ Cheap Dior shoeshttp://www.newbalanceshoes-outlet.com/ Discount New Balance shoeshttp://www.us-pumaoutlet.com/ Discount PUMA Outlethttp://www.topwholesaleb2b.com/ wholesale cl high heel sandalshttp://www.monclerfactoryoutlet.com/ Moncler http://www.thenorthface-us.com/ the north facehttp://www.usauggoutlets.com/ cheap ugg bootshttp://www.usauggoutlets.com/classic-tall-5815-c-8.html ugg classic tall bootshttp://www.usauggoutlets.com/classic-short-5825-c-11.html classic ugg boots http://www.us-ghds.com/babyliss-c-14.html babylisshttp://www.us-ghds.com/benefit-ghd-iv-styler-c-1.html Benefit GHDhttp://www.us-ghds.com/ghd-iv-salon-styler-c-10.html GHD IV Salon Stylerhttp://www.us-ghds.com/ghd-mini-styler-c-2.html GHD Mini Stylerhttp://www.us-ghds.com/limited-edition-ghd-precious-p-16.html GHD Precious gifthttp://www.us-ghds.com/ghd-rare-styler-c-3.html GHD Rare Stylerhttp://www.us-ghds.com/gray-ghd-iv-styler-c-11.html gray ghdhttp://www.us-ghds.com/gold-ghd-iv-styler-c-4.html gold ghdhttp://www.us-ghds.com/instyler-rotating-iron-p-15.html Instylerhttp://www.us-ghds.com/kiss-ghd-c-5.html Kiss ghdhttp://www.us-ghds.com/pink-ghd-iv-styler-c-6.html pink ghdhttp://www.us-ghds.com/pure-black-ghd-c-7.html pure black ghdhttp://www.us-ghds.com/pure-white-ghd-c-8.html pure white ghdhttp://www.us-ghds.com/purple-ghd-iv-styler-c-9.html purple ghd

  6. 绿茶 / May 7 2010 5:05 am

    a very famous brand in the world http://www.edhardycawholesale.com/ Ed Hardy Wholesalehttp://www.edhardycawholesale.com/ wholesale Ed HardyBreak the rules, create your own life style here!http://www.edhardycawholesale.com/ ed hardy wholesale clothing

  7. Unknown / May 10 2010 2:45 pm

    http://www.mtboutlets.com/ http://www.us-dioroutlet.com/ http://www.newbalanceshoes-outlet.com/ http://www.us-pumaoutlet.com/ http://www.topwholesaleb2b.com/ http://www.monclerfactoryoutlet.com/ http://www.thenorthface-us.com/ http://www.usauggoutlets.com/ http://www.usauggoutlets.com/classic-tall-5815-c-8.html http://www.usauggoutlets.com/classic-short-5825-c-11.html http://www.us-ghds.com/ghd-iv-salon-styler-c-10.htmlhttp://www.us-coachoutlet.com/http://www.uggpopularsale.com/ http://www.uggpopularsale.com/classic-tall-5815-c-8.htmlhttp://www.uggpopularsale.com/classic-short-5825-c-11.htmlhttp://www.discountspyderjackets.com/ http://www.adidasunion.com adidas shoeshttp://www.jordanfusioncollection.com air jordan 2010http://www.in-shoesshop.com NIKE SHOXhttp://www.ghdmanufactoryoutlet.net/pure-white-ghd-iv-styler-001-p-160.html Pure GHDhttp://www.us-dooneybourkeoutlet.com dooney bourke handbagshttp://www.monclerspace.com monclerhttp://www.onlyuggshop.com ugg boots http://www.onlyuggshop.com/index.php?main_page=index&cPath=11 classic ugg bootshttp://www.onlyuggshop.com/index.php?main_page=index&cPath=8 ugg classic tall bootshttp://www.vibram5finger.com vibram five fingerhttp://www.uggusoutlet.com discount ugg bootshttp://www.uggusoutlet.com/classic-ugg-boots-c-10.html classic ugg bootshttp://www.uggusoutlet.com/ugg-classic-tall-boots-c-8.html ugg classic tall bootshttp://www.ghdhairstraightenerswholesale.com/index.php?main_page=product_info&cPath=15&products_id=155 Gold GHDhttp://www.sunglasshunting.com/burberry-sunglasses-c-14.html http://www.sunglasshunting.com/ed-hardy-sunglasses-c-15.html ED Hardy Sunglasseshttp://www.pickedhardyca.com/ cheap ED Hardy Clothing discount ED Hardy Outlethttp://www.us-handbagsoutlet.com/ Prada shoes Prada handbagshttp://www.ankhroyalty-us.com/ Ankh Royalty Clothing Ankh Royalty Outlethttp://www.monclerjacketoutlet.com/ Moncler jackets Moncler coats http://www.usbootsoutlet.com/ ugg boots Cheap ugg boots Discount ugg bootshttp://www.usbootsoutlet.com/classic-short-5825-c-32.html classic ugg bootshttp://www.usbootsoutlet.com/classic-tall-5815-c-29.html ugg classic tall boots http://www.topwholesaleb2b.com Cheap Ed Hardy Sunglasses

  8. Unknown / May 13 2010 2:06 am

    http://www.goodlaptopbattery.com.au/dell/latitude-d410.htm Dell latitude d410 battery  http://www.goodlaptopbattery.com.au/dell/latitude-d420.htm Dell latitude d420 battery  http://www.goodlaptopbattery.com.au/dell/latitude-d430.htm Dell latitude d430 battery  http://www.goodlaptopbattery.com.au/dell/latitude-d610.htm Dell latitude d610 battery  http://www.goodlaptopbattery.com.au/dell/latitude-d810.htm Dell latitude d810 battery  http://www.goodlaptopbattery.com.au/dell/vostro-1310.htm Dell vostro 1310 battery  http://www.goodlaptopbattery.com.au/dell/vostro-1320.htm Dell vostro 1320 battery  http://www.goodlaptopbattery.com.au/dell/vostro-1510.htm Dell vostro 1510 battery  http://www.goodlaptopbattery.com.au/dell/vostro-1520.htm Dell vostro 1520 battery  http://www.goodlaptopbattery.com.au/dell/vostro-2510.htm Dell vostro 2510 battery  http://www.goodlaptopbattery.com.au/sony/vgp-bps2.htm Sony vgp-bps2 Battery http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/1500.htm Dell 1500 Adapter http://www.goodlaptopbattery.com.au/sony/vgp-bps2a.htm Sony vgp-bps2a Battery http://www.goodlaptopbattery.com.au/sony/vgp-bps2c.htm Sony vgp-bps2c Battery http://www.goodlaptopbattery.com.au/dell/gw240.htm Dell gw240 Battery http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/1700.htm Dell 1700 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/1720.htm Dell 1720 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/6400.htm Dell 6400 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/d820.htm Dell d820 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/inspiron-6400.htm Dell inspiron 6400 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/latitude-d620.htm Dell latitude d620 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/latitude-d630.htm Dell latitude d630 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/latitude-d820.htm Dell latitude d820 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/hp/dv2000.htm Hp dv2000 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/hp/dv6000.htm Hp dv6000 Adapter http://www.goodlaptopbattery.com.au/acer/travelmate-4200-series.htm Acer travelmate 4200 series Battery http://www.goodlaptopbattery.com.au/acer/travelmate-4203-series.htm Acer travelmate 4203 series Battery http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/6400.htm Dell 6400 Adapter http://www.goodlaptopbattery.com.au/laptop-ac-adapter/dell/d820.htm Dell d820 Adapter http://www.goodlaptopbattery.com.au/acer/travelmate-4230-series.htm Acer travelmate 4230 series Battery http://www.goodlaptopbattery.com.au/apple/a1175.htm Apple a1175 Battery http://www.goodlaptopbattery.com.au/acer/aspire-5520.htm Acer aspire 5520 Battery http://www.goodlaptopbattery.com.au/acer/aspire-5920.htm Acer aspire 5920 Battery http://www.goodlaptopbattery.com.au/acer/batbl50l6.htm Acer batbl50l6 Battery http://www.goodlaptopbattery.com.au/asus/a42-a2.htm Asus a42-a2 Battery http://www.goodlaptopbattery.com.au/asus/a4.htm Asus a4 Battery http://www.goodlaptopbattery.com.au/asus/a42-m6.htm Asus a42-m6 Battery http://www.goodlaptopbattery.com.au/asus/a42-w1.htm Asus a42-w1 Battery http://www.goodlaptopbattery.com.au/hp/nc8430.htm Hp nc8430 Battery http://www.goodlaptopbattery.com.au/hp/nw8000.htm Hp nw8000 Battery http://www.goodlaptopbattery.com.au/hp/nw8200.htm Hp nw8200 Battery http://www.goodlaptopbattery.com.au/hp/nx7000.htm Hp nx7000 Battery http://www.goodlaptopbattery.com.au/hp/nx8200.htm Hp nx8200 Battery http://www.goodlaptopbattery.com.au/ibm/thinkpad-t30.htm Ibm thinkpad t30 Battery http://www.goodlaptopbattery.com.au/laptop-ac-adapter/acer/5520.htm Acer 5520 Adapter

  9. Unknown / May 13 2010 2:06 am

    http://www.goodlaptopbattery.com.au/laptop-ac-adapter/acer/5920.htm Acer 5920 Adapter http://www.goodlaptopbattery.com.au/hp/pavilion-dv9700.htm HP pavilion dv9700 Battery http://www.goodlaptopbattery.com.au/hp/pavilion-dv9500.htm HP pavilion dv9500 Battery http://www.goodlaptopbattery.com.au/hp/zt1000.htm Hp zt1000 Battery http://www.goodlaptopbattery.com.au/hp/zt3000.htm Hp zt3000 Battery http://www.goodlaptopbattery.com.au/dell/original-inspiron-1525.htm Dell original inspiron 1525 Battery http://www.goodlaptopbattery.com.au/dell/original-inspiron-1526.htm Dell original inspiron 1526 Battery http://www.goodlaptopbattery.com.au/dell/TK330.htm Dell TK330 Battery http://www.goodlaptopbattery.com.au/acer/as07b31.htm Acer as07b31 Battery http://www.goodlaptopbattery.com.au/acer/as07b32.htm Acer as07b32 Battery http://www.goodlaptopbattery.com.au/acer/as07b42.htm Acer as07b42 Battery http://www.goodlaptopbattery.com.au/acer/as07b51.htm Acer as07b51 Battery http://www.goodlaptopbattery.com.au/acer/as07b52.htm Acer as07b52 Battery http://www.goodlaptopbattery.com.au/acer/as07b71.htm Acer as07b71 Battery http://www.goodlaptopbattery.com.au/acer/as07b72.htm Acer as07b72 Battery http://www.goodlaptopbattery.co.uk/acer/as07b31.htm Acer as07b31 Battery http://www.goodlaptopbattery.co.uk/acer/as07b32.htm Acer as07b32 Battery http://www.goodlaptopbattery.co.uk/acer/as07b41.htm Acer as07b41 Battery http://www.goodlaptopbattery.co.uk/acer/as07b42.htm Acer as07b42 Battery http://www.goodlaptopbattery.co.uk/acer/aspire-5520.htm Acer aspire 5520 Battery http://www.goodlaptopbattery.co.uk/acer/aspire-5920.htm Acer aspire 5920 Battery http://www.goodlaptopbattery.co.uk/acer/batbl50l6.htm Acer batbl50l6 Battery http://www.goodlaptopbattery.co.uk/acer/travelmate-3260.htm Acer travelmate 3260 Battery http://www.goodlaptopbattery.co.uk/acer/travelmate-4200-series.htm Acer travelmate 4200 series Battery http://www.goodlaptopbattery.co.uk/acer/travelmate-4203-series.htm Acer travelmate 4203 series Battery http://www.goodlaptopbattery.co.uk/acer/travelmate-4230-series.htm Acer travelmate 4230 series Battery http://www.goodlaptopbattery.co.uk/apple/a1148.htm Apple a1148 Battery http://www.goodlaptopbattery.co.uk/apple/a1185.htm Apple a1185 Battery http://www.goodlaptopbattery.co.uk/apple/a1185-black.htm Apple a1185 black Battery http://www.goodlaptopbattery.co.uk/apple/a1185-white.htm Apple a1185 white Battery http://www.goodlaptopbattery.co.uk/asus/a42-a2.htm Asus a42-a2 Battery http://www.goodlaptopbattery.co.uk/dell/latitude-d620.htm Dell latitude d620 Battery http://www.goodlaptopbattery.co.uk/dell/latitude-d630.htm Dell latitude d630 Battery http://www.goodlaptopbattery.co.uk/dell/original-inspiron-1525.htm Dell original inspiron 1525 Battery http://www.goodlaptopbattery.co.uk/dell/latitude-d820.htm Dell latitude d820 Battery http://www.goodlaptopbattery.co.uk/dell/latitude-d830.htm Dell latitude d830 Battery http://www.goodlaptopbattery.co.uk/dell/vostro-1500.htm Dell vostro 1500 Battery http://www.goodlaptopbattery.co.uk/dell/vostro-1700.htm Dell vostro 1700 Battery http://www.goodlaptopbattery.co.uk/dell/xps-m1330.htm Dell xps m1330 Battery http://www.goodlaptopbattery.co.uk/dell/xps-m1530.htm Dell xps m1530 Battery http://www.goodlaptopbattery.co.uk/dell/d620.htm Dell d620 Battery http://www.goodlaptopbattery.co.uk/dell/d630.htm Dell d630 Battery http://www.goodlaptopbattery.co.uk/dell/d820.htm Dell d820 Battery http://www.goodlaptopbattery.co.uk/dell/d830.htm Dell d830 Battery http://www.goodlaptopbattery.co.uk/dell/inspiron-1520.htm Dell inspiron 1520 Battery http://www.goodlaptopbattery.co.uk/dell/6400.htm Dell 6400 Battery

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: