问题标签 [sharepoint-2010]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
610 浏览

sharepoint - Sharepoint 2007 / Sharepoint 2010 何时适用于业务线应用程序?

根据我的经验,与仅使用“纯”Microsoft.Net、ASP.NET 和 IIS 应用程序相比,这是在增加实施和维护成本的情况下添加次要功能。

Sharepoint 2007 =(没有部署版本控制等概念,几乎没有 css/skinning,奇怪的 cms 功能,不推荐 sp webparts,worfklow 功能非常有限)

Sharepoint 2010 =(一切都修复了吗?)

我的一般感觉是远离 Sharepoint,使用经过验证的模式和实践、架构等在纯 asp.net 中实现。并且在合适的时候使用 Sharepoint 服务。

Sharepoint 2007 或 2010 是否已准备好用于运行具有数千名用户的外联网的实际业务线应用程序,还是我们应该只使用 asp.net?

0 投票
5 回答
18739 浏览

sharepoint - SharePoint 2010 - Access denied during ApplyWebConfigModifications()

I have SharePoint 2010 installed on a Windows Server 2008 R2 machine which is also hosting SQL Sever 2008 R2. I am attempting to deploy a solution that includes web parts in the 2010 environment that is working fine in MOSS 2007.

The Web Part feature has a feature receiver that updates the web.config. When I try to activate the feature through the Site Collection Feature GUI, I receive an access denied message. I am logged on to the server and in SharePoint with the APP Pool account which is also a member of the domain administrator group, local administrator group and SharePoint Farm Admin group. This account is also dbo on SQL Server.

This same feature activates fine using the stsadm command.

I have dug into this issue at length and here is what I have found:

Looking at the Microsoft assemblies in reflector, my error is coming from the SPWebApplication.ApplyWebConfigModifications() method. I can see the trace statements from SPWebConfigFileChanges.RemoveModificationsWebConfigXMLDocument and SPWebConfigFileChanges.ApplyModificationsWebConfigXMLDocument. The next line is a Save(str).

Below is the output from the SharePoint logs that pertain to this error:

Apply web config modifications to web app
5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
General 8grn Medium WebConfigModification: Applying web config modifications to web app in server tw-s1-m4400-007
5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 88gw Medium WebConfigModification: Applying web config modifications to file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 887b Medium Removing web config node - Path configuration/system.web/httpModules Node name add[@name='JivePageController']
5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 887b Medium Removing web config node - Path configuration/system.web/httpHandlers Node name add[@path='ScriptResource.axd']
5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 887b Medium Removing web config node - Path configuration/runtime/*[local-name()="assemblyBinding" and namespace-uri()="urn:schemas-microsoft-com:asm.v1"] Node name [local-name()="dependentAssembly"][/@name="System.Web.Extensions.Design"] 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 887b Medium Removing web config node - Path configuration/runtime/*[local-name()="assemblyBinding" and namespace-uri()="urn:schemas-microsoft-com:asm.v1"] Node name [local-name()="dependentAssembly"][/@name="System.Web.Extensions"] 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 8gp8 Medium WebConfigModification: Adding web config node - Path - configuration/runtime/*[local-name()="assemblyBinding" and namespace-uri()="urn:schemas-microsoft-com:asm.v1"] Node name - [local-name()="dependentAssembly"][/@name="System.Web.Extensions"] Node value - in web.config file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 8gp8 Medium WebConfigModification: Adding web config node - Path - configuration/runtime/*[local-name()="assemblyBinding" and namespace-uri()="urn:schemas-microsoft-com:asm.v1"] Node name - [local-name()="dependentAssembly"][/@name="System.Web.Extensions.Design"] Node value - in web.config file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 8gp8 Medium WebConfigModification: Adding web config node - Path - configuration/system.web/httpHandlers Node name - add[@path='ScriptResource.axd'] Node value - in web.config file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 8gp8 Medium WebConfigModification: Adding web config node - Path - configuration/system.web/httpModules Node name - add[@name='JivePageController'] Node value - in web.config file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config 5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.09 w3wp.exe (0x15C4)
0x1444 SharePoint Foundation
Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://tw-s1-m4400-007.jivedemo.local:32843/15702467ece1408f881abeabac3b5077/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: xxx MessageId: 'urn:uuid:4e859532-ed7f-4937-8b88-68d3af43d589' 9f403ede-2c94-490b-a05c-e169cc5fe58d

02/24/2010 16:05:41.10 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology f6kh High WebConfigModification: Save of web.config file C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config for applying modifications to web app SharePoint - 2008 failed. Error message - Access to the path 'C:\inetpub\wwwroot\wss\VirtualDirectories\2008\web.config' is denied.
5a817a37-7bf6-4d26-be51-207369e38f5b

02/24/2010 16:05:41.10 w3wp.exe (0x0F64)
0x1034 SharePoint Foundation
Topology 8j2o High WebConfigModification: Changes not applied to web application SharePoint - 2008 with Url xxx
5a817a37-7bf6-4d26-be51-207369e38f5b

Any help would be appreciated!

0 投票
1 回答
1224 浏览

visual-studio-2010 - 从特征中移除特征接收器

可能是一个愚蠢的问题,但我没有找到答案。

使用 Visual Studio 2010 Beta 2,我有一个 SharePoint 2010 项目,其中定义了一个功能,该功能附加了一个事件接收器来触发一些自定义代码。我现在正在尝试从功能中删除事件接收器。我已经从项目中删除了事件接收器代码,但是 Visual Studio 生成的 feature.xml 仍然在 Feature 节点中包含 ReceiverClass 属性。由于引用的类不再存在,这显然是一个问题。

如果不手动编辑功能清单,我找不到在 UI 中删除此关联的方法,我真的不想这样做,因为我仍然希望 Visual Studio 自动填写清单的其余部分。

我在 UI 中缺少的某处是否有该功能的属性,可以让我删除事件接收器与该功能的关联?

0 投票
1 回答
549 浏览

sharepoint - Sharepoint 2010 可替换参数不起作用

我在 _layouts 中有一个 aspx 页面,它是包的一部分。它包含 :

这应该在我部署时使用当前程序集全名进行更新 - 但它没有。

有人有什么想法吗?

0 投票
2 回答
1444 浏览

visual-studio-2010 - Visual Studio 2010 中的业务数据连接服务

我收到“业务数据连接配置不正确。管理员,请参阅服务器日志了解更多信息”错误。我真的很感激任何帮助。

0 投票
1 回答
284 浏览

sharepoint-2007 - 从 Sharepoint 2007 升级到 Sharepoint 2010

到目前为止,你有没有人试过这个?你有没有发现什么问题?我们考虑将我们的 SP 服务器升级到 SP 2010,因为它提供了许多灵活的开发环境。这样做的最佳做法是什么?

0 投票
1 回答
723 浏览

sharepoint - SharePoint 2010 是否仍然具有复杂的 SPWeb.Dispose 方法?

我对 SharePoint 2007 的不满之一是复杂的 SPWeb.Dispose 规则,如果您不处理必须处理的内容,可能会导致大量资源泄漏,或者如果您在不需要处理的情况下进行处理,则会导致各种其他奇怪的问题. Roger Lamb 的帖子试图总结这种疯狂。但我想知道 SharePoint 2010 是否改进了这一点?

我有 Beta 设置,但在这里并没有看到太大的区别,但其中一些东西至少有所改进吗?

0 投票
2 回答
2566 浏览

sharepoint - 无法从我的内容类型中删除系统页面字段

我正在使用 VS2010 在 SP2010 RC 中为发布站点的功能中创建一些内容类型,但我无法使用 RemoveFieldRef 删除页面内容类型中包含的现成联系人字段。我的定义如下:

当我在站点设置-> 内容类型中激活功能后查看内容类型时,任何人都可以解释为什么这些字段仍然出现?

0 投票
4 回答
5780 浏览

sharepoint-2010 - SharePoint 2010 中的 DisplayPattern 有问题吗?

我正在使用 SPFieldCollection 的 AddFieldAsXML 方法将新字段添加到列表中。该方法执行良好,没有问题。当我查看列表时会显示列标题;但是该值永远不会显示在列中。这是该字段添加到列表后的样子。此 xml 是从使用http://tw-s1-m4400-007:4016/_vti_bin/owssvr.dll?Cmd=ExportList&List= {1F87433F-50E1-46C5-A138-00E1CF7E5801}派生的列表架构中截取的

此代码在 2007 年运行良好,但在 2010 年不起作用。任何帮助将不胜感激。

0 投票
3 回答
49130 浏览

sharepoint-2010 - 在 sharepoint 2010 中启用发布基础结构功能

嗨,我可以在 sharepoint 2010 中启用发布基础架构功能吗 谢谢