SharePoint-发生意外错误 [英] SharePoint - An unexpected error has occurred

查看:90
本文介绍了SharePoint-发生意外错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在SharePoint中,当我转到新的Web部件页面时会得到以下信息:

In SharePoint I am getting the following when I go to my new web part page:

错误

发生了意外错误.

Web部件维护页面:如果有权限,则可以使用此页面临时关闭Web部件或删除个人设置.有关更多信息,请与您的站点管理员联系. 解决Windows SharePoint Services的问题.

Web Parts Maintenance Page: If you have permission, you can use this page to temporarily close Web Parts or remove personal settings. For more information, contact your site administrator. Troubleshoot issues with Windows SharePoint Services.

我尝试了以下方法以获得更有用的错误消息:

I have tried the following to get a more useful error message:

在web.config中,我有:

In web.config I have:

<SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="true">

<customErrors mode="Off"/>

我已将以下内容添加到布局文件夹中的web.config中

I have added the following to my web.config in my layout folder

<SharePoint>
    <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false" />
</SharePoint>

我还能看到堆栈跟踪吗?

What else can I do see a stack trace?

推荐答案

如果您想知道确切的错误描述,则需要在SharePoint Web应用程序web.config文件中进行以下更改.

If you would like to know what exact error description is, then you need to make following changes in your SharePoint web application web.config file.

  1. CallStack="false"更改为CallStack="true"

<customErrors mode="On" />更改为<customErrors mode="Off" />

保存并从命令行执行IISRESET.

Save it and do IISRESET from command line.

再次打开页面,您将得到确切的错误.

Open Page again then you will get exact error.

这篇关于SharePoint-发生意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆