简体   繁体   English

Sharepoint 2010异常错误

[英]Sharepoint 2010 Exception error

I perfomed in past days a migration of a web application from Sharepoint 2007 to Sharepoint 2010 . 我过去几天一直在执行Web应用程序从Sharepoint 2007Sharepoint 2010的迁移。

I noticed some exception error on a page of the web site which where caused by one webparts on the page. 我注意到网站页面上出现了一些异常错误,该错误是由页面上的一个Web部件引起的。

Appending the query string ?contents=1 to the address page in the browser I obtained the webpart giving the error and eliminated it from the browser. 将查询字符串?contents=1附加到浏览器中的地址页面上,我获得了给出错误的webpart并将其从浏览器中消除。

Then on Sharepoint Designer I eliminated the reference of the web part from the page header. 然后在Sharepoint Designer上,我从页面标题中删除了Web部件的引用。

After these deletion the browsing of the page now return the error: 这些删除之后,页面浏览现在返回错误:

Only Content controls are allowed directly in a content page that contains Content controls. 

After some googling without valid results I used USL viewer to get more error information and I found these extra adds: 经过一番谷歌搜索而没有获得有效结果后,我使用了USL查看器来获取更多错误信息,并且发现了这些额外的增加:

System.Web.HttpException: Only Content controls are allowed directly in a content page that contains Content controls.   
at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)    
at System.Web.UI.TemplateParser.ProcessLiteral()

Unfortunately in not the amount of info I would desired: as far as I can see the trouble is related to something wrong in content page. 不幸的是,我没有想要的信息量:据我所知,问题出在内容页面上。

Anyone experienced something similar? 任何人都经历过类似的事情吗?

I found that the error was caused by a spurious character outside the <content /> tag: once I deleted the uncorrect char I didn't get the error. 我发现错误是由<content />标记之外的虚假字符引起的:一旦删除了不正确的字符,我就没有得到该错误。

Thank you 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM