SharePoint - An unexpected error has occurred

被刻印的时光 ゝ 提交于 2019-12-01 09:15:41
Brij

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" changed to CallStack="true"

  2. <customErrors mode="On" /> changed to <customErrors mode="Off" />

Save it and do IISRESET from command line.

Open Page again then you will get exact error.

Have you checked the SharePoint Log files?

Try setting

<compilation debug="true" />

in web.config

You can try to wrap your WebPart code with the Try Catch Block. Looks like some exception is left uncaught.

it might be that the .dll that has the compiled webpart code is not copied to bin/GAC directory. next thing I would do is to check whether the web part is in site/site collection web part gallery

hth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!