Getting "Debug Info" for a Sharepoint error!
来源:互联网 发布:sql object id 编辑:程序博客网 时间:2024/06/06 12:51
Some time ago I had the brightidea of moving the SQL databases for Sharepoint. I was running a VPCwith only one virtual drive and started running out of disk space. So Idecided to create another virtual drive, detach the SQL databases fromSQL Server, copy them to the new drive, mount the databases and testthe Sharepoint configuration.
Everything should have workedperfectly, wrong! In theory Sharepoint should only be looking at thelogical names of the databases, but it seems that I was mistaken. Mostof the functionality in Sharepoint worked perfectly expect for"MySite". When I selected the link at the top of the Sharepoint site.
I got the following error.
As you can see it is completely descriptive and tells you exactly what to do to fix the error, NOT!!!!
So,now what! Without some more information to go on, it becomes a bitdifficult to resolve the error and as we all know the "Event Log" onlygoes so far.
Fortunately Sharepoint has been built using the.NET framework and we can use that to get some more info. To do this,we need to go and change some settings in the web.config file that sitsin the root of the web site in IIS. Even tough Sharepoint stores mostof its information in the SQL Server content database, it still needsthe .NET framework to process this information.
To find the web config file, we need to navigate to the "Inetpub" directory using windows explorer.
Underthe "Inetpub -> wwwroot -> wss -> Virtualdirectories" folder,you will find sub folders representing each of the web applicationsused by Sharepoint including the system web applications. Each of thesehave their own web.config file.
Findthe correct folder representing the web application causing the problemand edit the web.config file using your preferred text editor. I likeusing "Notepad" as it is "Light Weight" and does not have all the"Bells" and Whistles" I do not need.
There are two section thatwe need to modify in this file. The first section involves the "CallStack" of the .NET framework. This will give us a list of all theassemblies involved in the error. This can be done by setting the"CallStack=True" flag.
Thesecond thing that we need to do is switch the "customErrors mode=Off"so that the information will actually be displayed on the screen.
Oncethese options have been configured and the web.config file saved. Wecan then re-simulate the error and see what you get back.
Asyou can see, we now get a lot more information back that canpotentially be used to help resolve the error. I did not say theinformation will be useful, I only said that you will have more of it.
Rememberto change the web.config back to it's original state after you haveresolved the error. This information should not be available publiclyon the intra or Internet as this could be a potential security risk.
Related Blogs:
ASP.NET error registering with IIS
Overview of the .NET Platform
.NET 2.0 Framework
- Getting "Debug Info" for a Sharepoint error!
- Debug info warn error fatal
- Debug、Info、Warn、Error、Fatal
- 日志级别:Debug Info Warn Error Fatal
- log4j.properties(debug,info,error模式)
- eclipse安装python插件,Error getting info on interpreter
- GDB : save debug info to a file
- Error parsing DDL for `por`.`info`
- SharePoint 2010 Error: You must specify a value for this required field
- 日志类型的选择:Debug、Info、Warn、Error还是Fatal?
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal?
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- 日志级别的选择:Debug、Info、Warn、Error还是Fatal
- log 的 debug()、 error()、 info()方法的区别
- java中MD5加密
- jquery基础(九)
- 搜狐畅游 程序 笔试题
- javascript打开模式窗口的用法
- 设计模式之Facade-外观模式
- Getting "Debug Info" for a Sharepoint error!
- 如何查看自己的ip地址
- 什么是目录数据库、元数据库、内容数据库?
- MyEclipse实用操作谈【转】
- UBOOT之DDR2内存移植相关修改简记
- How to Avoid Multiple Instances of Your Windows Application
- 让笔记本的无线网卡指示灯不再狂闪的方法
- 全面分析 Spring 的编程式事务管理及声明式事务管理(转)
- jquery基础(十)