SharePoint2010 Navigation Runtime Error

来源:互联网 发布:云计算股票龙头股阿里 编辑:程序博客网 时间:2024/05/18 03:48

今天发现一个奇怪的问题,访问navigation就出错。

Runtime error,重启iis或重启网站,页面第一次访问就OK,再刷新一下就挂了。

 

Server Error in '/' Application.

Runtime Error

Description:An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed.

Details: To enable the details of this specific error message to be viewable on the local server machine, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "RemoteOnly". To enable the details to be viewable on remote machines, please set "mode" to "Off".

<!-- Web.Config Configuration File --><configuration>    <system.web>        <customErrors mode="RemoteOnly"/>    </system.web></configuration>


Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.

<!-- Web.Config Configuration File --><configuration>    <system.web>        <customErrors mode="On" defaultRedirect="mycustompage.htm"/>    </system.web></configuration>


 

访问中文网站却正常。

按照页面的建议,修改web.config

从url看 http://sp2010:9002/xxx/_layouts/AreaNavigationSettings.aspx

应该更新layouts底下的web.config

而不是C:\inetpub\wwwroot\wss\VirtualDirectories\9002\web.config

更改:

<customErrors mode="Off" /> 

<customErrors mode="RemoteOnly" />

错误出来了:

 

 

Server Error in '/' Application.

Cannot make a cache safe URL for "1033/selectorcontrols.js", file not found. Please verify that the file exists under the layouts directory.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.SharePoint.SPException: Cannot make a cache safe URL for "1033/selectorcontrols.js", file not found. Please verify that the file exists under the layouts directory.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

原来是安装了英文语言包,有些资源文件不存在导致的。

按照提示缺少的文件,一个个的到\LAYOUTS\2052\目录去找,copy到1033目录就可以了。

整理了一下,缺少的文件还真不少.

 

原创粉丝点击