惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
宝玉的分享
宝玉的分享
爱范儿
爱范儿
月光博客
月光博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog
T
Tailwind CSS Blog
美团技术团队
D
Docker
V
Visual Studio Blog
Martin Fowler
Martin Fowler
博客园 - 聂微东
The Cloudflare Blog

博客园 - π三毛

Hyperledge 开发环境配置常见问题 SQL Server 2012日志文件误删除数据库质疑后的相关恢复 go read text file into string array mac boot2docker certs not valid with 1.7 T-SQL 比较N个指段取其中最大值 xcode-git笔记 如何定位Sharepoint网站集所在的w3wp进程 node常用包 Google analytics Offline Installation the .NET Framework 3.5 on Windows 8 [MSDN]How to use the computer keyboard with Windows Phone Emulator Managing SharePoint 2010 Farm Solutions with Windows PowerShell [转]vi使用方法 转帖-在oracle中自动大批量生成测试数据 删除大恒文档加密客户端 Terminating the Session with ALTER SYSTEM Oracle RMAN vs. Export? 错误14274:无法添加、更新或删除从msx服务器上发起的作业(或其步骤或调度) MS SQL SERVER 2000 同步计算机名称
turning on full error Messages
π三毛 · 2012-04-05 · via 博客园 - π三毛

One of the first things you will realize when working on your custom master page is that when you

make a mistake, SharePoint’s default error messages are rather unhelpful. As mentioned earlier, if

you omit one of the required content placeholders and browse a site that uses your master page,

SharePoint will reply with simply “An unexpected error has occurred.” The first time this happens,

it’s hard not to respond with some choice curse words and give up completely on SharePoint, but

don’t throw in the towel yet. SharePoint can actually return descriptive error messages, but they

are turned off by default for security reasons. If you are working in a development environment,

though, it’s imperative to enable these full error messages.

Here are the steps for turning on the full error messages:

   1.        Log in to the physical SharePoint Server machine and navigate to the directory that

holds your SharePoint website. It will most likely be located at C:\inetpub\wwwroot\

wss\VirtualDirectories\ and will be in a subdirectory with the port number of your

SharePoint site. If you have trouble fi nding it, you can open IIS7 and in the Sites folder, rightclick

your SharePoint site, and then select Explore. This will take you directly to the directory

that holds your SharePoint website.

    2.        Locate the fi le named web.config and open it for editing in Notepad.

    3.        Press Ctrl+F and fi nd the line of code that contains the word “callstack.” You will fi nd a line

that looks like this:

<SafeMode MaxControls=”200” CallStack=”false” DirectFileDependencies=”10”

TotalFileDependencies=”50” AllowPageLevelTrace=”false”>

     4.        Press Ctrl+F again and this time search for the word “errors.” You will fi nd a line that looks

like this:

<customErrors mode=”On” />

Change the mode from On to Off. This tells IIS not to show its customary basic error messages

and to instead display the raw detailed error messages.

     5.        Save and close web.config. Note that this change will cause IIS to restart the web application

in which your SharePoint site resides. Be careful when making edits to this fi le in production

or shared development environments.