SharePoint - An unexpected error has occurred

后端 未结 5 1365
伪装坚强ぢ
伪装坚强ぢ 2021-01-14 07:23

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

Error

An unexpected error has occurred.

Web Parts

相关标签:
5条回答
  • 2021-01-14 07:40

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

    0 讨论(0)
  • 2021-01-14 07:43

    Try setting

    <compilation debug="true" />

    in web.config

    0 讨论(0)
  • 2021-01-14 07:49

    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.

    0 讨论(0)
  • 2021-01-14 07:56

    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

    0 讨论(0)
  • 2021-01-14 08:03

    Have you checked the SharePoint Log files?

    0 讨论(0)
提交回复
热议问题