在sharepoint开发中遇到的一些问题和解决方案
1.错误类型:
The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
3. 错误类型 :
Unable to serialize the session state. In 'StateServer' and 'SQL Server' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted. The same restriction applies if similar serialization is done by the custom session state store in 'Custom' mode.
解决 方案:
在不同的创作后的今天早些时候的过程中,我偶然发现一个错误,同时使用代码度量在Visual Studio 2008的功能。 在点击分析 菜单,然后点击 代码度量的计算解决方案 ,我遇到的解决方案在几个项目的错误类似于以下内容: 发生错误时计算目标文件『E代码度量:\ NotBackedUp \ ...'项目...下面的错误阅读时遇到模块'Microsoft.SharePoint':无法解析类型:?Ť?对象模型?。 英文错误:[Project: Revolution.WebSite
Configuration: Debug
Scope: None
Assembly: C:\Users\hao.jiang\Desktop\2010-01-06\kkjhjhjhjhjhjhjhjhjhk\SharePointObject\Revolution.WebSite\bin\Revolution.WebSite.dll
Maintainability Index:
Cyclomatic Complexity:
Depth of Inheritance:
Class Coupling:
Lines of Code:
Message: An error occurred while calculating code metrics for target fil 'C:\Users\hao.jiang\Desktop\2010-01-06\kkjhjhjhjhjhjhjhjhjhk\SharePointObject\Revolution.WebSite\bin\Revolution.WebSite.dll' in project Revolution.WebSite. The following error was encountered while reading module 'Microsoft.SharePoint': Could not resolve type: T ObjectModel.]
(不要问我,'?'字的意思应该是 - 我只是复制和粘贴从Visual Studio中直接完成。)
原来,这是在Visual Studio 2008已知的错误,由于默认设置,允许家属集会在一个项目中使用没有明确引用它们。