小编Mar*_*erg的帖子

编译器失败,错误代码为-1073741502(在Windows Server 2008 R2上运行的SharePoint 2010 SP1)

我有一台虚拟机(在我的笔记本电脑上运行VMWare Workstation 8.0.2)运行我用于SharePoint开发的Windows Server 2008 R2 Standard和SharePoint Server 2010 SP1(Visual Studio 2010安装在虚拟机上).有时我收到以下错误消息:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Compilation Error 
Description: An error occurred during the compilation of a resource required to service     this request. Please review the following specific error details and modify your source     code appropriately. 

Compiler Error Message: The compiler failed with error code -1073741502.

Show Detailed Compiler Output:

c:\windows\system32\inetsrv> 
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe"     /t:library /utf8output /R:
"C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:
"C:\Windows\assembly\GAC_MSIL\AscomADManager\1.0.0.0__e27e5c95e5e50246\AscomADManager.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:
"C:\Windows\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:
"C:\Windows\assembly\GAC_64\Microsoft.Office.Server.Search\14.0.0.0__71e9bce111e9429c\Microsoft.Office.Server.Search.dll" …
Run Code Online (Sandbox Code Playgroud)

.net compiler-errors windows-server-2008 sharepoint-2010

5
推荐指数
1
解决办法
1万
查看次数

使用XML定义文件以编程方式创建SharePoint 2010内容类型

有没有办法以编程方式使用XML定义文件创建SharePoint 2010内容类型?可以通过以下方式添加SPField:

SPContext.Current.Web.Fields.AddFieldAsXml("<xml />");
Run Code Online (Sandbox Code Playgroud)

是否有任何类似的方式以编程方式将内容类型添加到网站集/网站?

c# xml sharepoint-2010 contenttype

2
推荐指数
1
解决办法
1万
查看次数