我有一个配置为匿名访问的MOSS 07站点.此站点中有一个文档库,也启用了匿名访问.当匿名用户单击此库中的PDF文件时,他或她可以正常阅读或下载它.当用户单击Office文档时,系统会提示他或她使用登录框.用户可以在不输入登录的情况下取消此框,并将被带到文档中.
这发生在IE中,但不是FireFox.
我在网上看到一些对此问题的引用,但没有明确的解决方案:http: //www.microsoft.com/communities/newsgroups/en-us/default.aspx?dr = microsoft.public.sharepoint.windowsservices.development&tid = 5452e093 -a0d7-45c5-8ed0-96551e854cec&猫= en_US_CC8402B4-DC5E-652D-7DB2-0119AFB7C906&LANG = EN&CR = US&SLOC = p = 1
http://www.sharepointu.com/forums/t/5779.aspx
http://www.eggheadcafe.com/software/aspnet/30817418/anonymous-users-getting-p.aspx
当我尝试检索作为超链接的列时,我得到两个逗号分隔的项而不是一个.
当我拉item["ColumnName"]我得到它的价值:
为什么显示链接和标题?
我曾经读过,在SharePoint中创建新的ContentType时,更改Title列的显示名称是不明智的.然而,它是可能的(即列静态名称仍然是"标题"但显示名称是"描述").
所以我的问题是,有哪些可能的并发症?当我创建一个需要"描述"列但没有"标题"列的新ContentType时,为什么不更改它?
我们需要将多个用户添加到多个SharePoint组.
有没有人有一个如何使用power shell将用户添加到sharepoint组的示例.
我刚开始在一家没有任何源代码控制的公司工作.我提到了,我们可能需要得到某种源代码控制的去和我的同事们的一个建议我们使用SharePoint.我认为他喜欢这个主意,因为我们已经使用了sharepoint,他是一个大的SharePoint人物.
我想出了为什么我们不应该这样做的一些原因.
在我恳求我的案子时还有什么我应该包括的吗?
我正在使用SharePoint 2010.我在该库中有一个文档库ID和文档ID.我没有web文件库所在的站点.现在我必须得到文档的完整URL在运行时.我怎么能得到它.我尝试了以下内容.
string filepath = currentList.DefaultViewUrl + "/" + sListItem.Url;
Run Code Online (Sandbox Code Playgroud)
请回答这个问题.
我尝试通过WPF应用程序连接到SharePoint Online实例.我发现这篇文章描述了一个可能的解决方案,但问题是特定实例前面有一个Active Directory联合身份验证服务(ADFS),我不知道如何获取auth-token.(我无法为我的应用程序创建证书以对adfs进行身份验证.)
任何已经完成此操作的人都可以通过一些代码片段来支持我吗?
我正在尝试优化SharePoint webpart的代码.我有一个转发器控件:
<asp:Repeater ID="CountryOptionsRepeater" runat="server">
<ItemTemplate>
<option value='<%#Eval("CountryName") %>'><%#Eval("CountryName") %></option>
</ItemTemplate>
</asp:Repeater>
Run Code Online (Sandbox Code Playgroud)
我用数据表填充它
countriesList = countriesList.Distinct<String>().ToList<String>();
countriesList.Sort();
//var noDupsCountriesList = new HashSet<String>(countriesList);
DataTable dt = new DataTable();
dt.Columns.Add("CountryName");
foreach (String countryName in countriesList)
{
DataRow dr = dt.NewRow();
dr["CountryName"] = countryName;
dt.Rows.Add(dr);
}
CountryOptionsRepeater.DataSource = dt;
CountryOptionsRepeater.DataBind();
this.DataBind();
Run Code Online (Sandbox Code Playgroud)
有没有办法直接将HashSet对象(noDupsCountriesList)绑定到具有相同配置的转发器的DataSource,以实现优化?
就像是:
//countriesList = countriesList.Distinct<String>().ToList<String>();
//countriesList.Sort();
var noDupsCountriesList = new HashSet<String>(countriesList);
CountryOptionsRepeater.DataMember = "CountryName"; // ??
CountryOptionsRepeater.DataSource = noDupsCountriesList;
CountryOptionsRepeater.DataBind();
this.DataBind();
Run Code Online (Sandbox Code Playgroud) 我试图使用自定义C#代码从CRM工作流调用SharePoint Web服务.但是,当我运行我的代码时,我收到以下错误:
The provided URI scheme 'https' is invalid; expected 'http'.
Parameter name: via
这是违规代码:
#region Set up security binding and service endpoint
BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.TransportCredentialOnly);
binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.Ntlm;
EndpointAddress endpoint = new EndpointAddress(endpointAddress);
#endregion
#region Create the client and supply appropriate credentials
CopySPContents.CopyService.SharepointFileServiceClient client = new CopySPContents.CopyService.SharepointFileServiceClient(binding, endpoint);
client.ClientCredentials.Windows.ClientCredential = System.Net.CredentialCache.DefaultNetworkCredentials;
client.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal.TokenImpersonationLevel.Impersonation;
#endregion
#region Call the web service and trace its response
String response = client.CopyFolderContentsAcrossSites(sourceSiteURL, sourceFolderURL, destinationSiteURL, destinationFolderURL);
#endregion
Run Code Online (Sandbox Code Playgroud)
在String …
当我尝试添加SharePoint mvc应用程序时,我收到以下错误:
Error occurred in deployment step 'Install app for SharePoint':
Failed to install app for SharePoint. Please see the output window for details.
Run Code Online (Sandbox Code Playgroud)
详细的堆栈跟踪:
CorrelationId: 50583239-71cb-4b07-8bcb-4bbc51a22631
ErrorDetail: There was a problem with activating the app web definition.
ErrorType: App
ErrorTypeName: App Related
ExceptionMessage: Microsoft.SharePoint.SPException: Exception from HRESULT: 0x81070964 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x81070964
at Microsoft.SharePoint.Library.SPRequestInternalClass.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback pModuleContext)
at Microsoft.SharePoint.Library.SPRequest.EnableModuleFromXml(String bstrSetupDirectory, String bstrFeatureDirectory, String bstrUrl, String bstrXML, Boolean fForceUnghost, ISPEnableModuleCallback …Run Code Online (Sandbox Code Playgroud) sharepoint ×10
c# ×3
.net ×1
adfs ×1
anonymous ×1
asp.net ×1
deployment ×1
list ×1
powershell ×1
security ×1
url ×1
wcf ×1