更新一个重新回顾这个问题的有趣时刻.当SharePoint 2010开始占据时,感知是否仍然相同?当然,实施2010并非没有自己的挑战,但其中一个是商业认知吗?
更新:我们的实施现在正在高速发展,一些高调的项目将在未来几周内上线,所以我很想知道环境是否已经改变.
原始问题
我们的工作环境中存在一个问题,即SharePoint的感知是:
a)金色的子弹,是我们所有问题的答案.
b)应用程序是否解决了特定问题.
c)令人沮丧的工具,不能满足他们的严格要求.
现在我认为SharePoint(或者更具体地说是我们的Microsoft Office SharePoint Server 2007)是一个基于各种低级Microsoft技术(IIS,ASP.Net,WSS 3.0,.Net Framework,Windows Workflow Foundation等)的框架.因此可以发展为做任何事情(给定时间和资源).
在我的组织(以及其他我确定的其他人)中形成的态度是微软营销机器和组织者希望在尽可能多的人面前获得"金子弹"的愿望,而不是说'为什么? " 或'为什么?' 或者在某些情况下甚至是"怎么样?"
这是其他SharePoint开发者共享的态度和看法吗?
我被要求在接下来的几周内在SharePoint中创建一个网站,而且我对SharePoint完全不熟悉.
有没有人有关于如何使用自定义SQL Server数据库创建自定义表单,使用基本CRUD操作等基本操作的任何好示例/教程?
还有什么办法在ASP.NET中编码(带有代码隐藏页面),但是使用SharePoint外观和身份验证的东西?
我正在尝试在mysiteurl/_layouts /中插入一些数据
因为我不得不使用第三方软件,它使用存储在该文件夹中的数据...我是该机器的管理员(Windows Server 2008R2上的Sharepoint 2010),但Sharepoint说我无法直接访问该文件夹...
是否有任何技巧在该特定文件夹中插入数据?
我需要使用.NET(C#)中的客户端对象模型将文档上载到SharePoint列表或文件夹.做这个的最好方式是什么?
要求如下:
设置元数据值
文件大小没有限制
必须使用超出列表视图阈值的库
我正在尝试对Sharepoint进行身份验证,以便我可以将文件上传到特定的Sharepoint站点.
我正在尝试使用X.509证书来检索访问令牌,但我一直在(401):未经授权.
这是我尝试使用证书检索访问令牌的方式:
string authority = SettingsHelper.Authority;
string clientID = SettingsHelper.ClientId;
string serverName = SettingsHelper.SharepointServerName;
//Retreive the certificate path
string certFile = Server.MapPath(SettingsHelper.CertificatePath);
string certPassword = SettingsHelper.CertificatePassword;
AuthenticationResult authenticationResult = null;
AuthenticationContext authenticationContext = new AuthenticationContext(authority);
//Create the certificate file, using the path (certFile), password (certPassword) and the MachineKeySet
X509Certificate2 cert = new X509Certificate2(certFile, certPassword, X509KeyStorageFlags.MachineKeySet);
//Create the ClientAssertionCertificate using the clientID and the actual certificate
ClientAssertionCertificate cac = new ClientAssertionCertificate(clientID, cert);
//Retreive the access token using the serverName and …Run Code Online (Sandbox Code Playgroud) 我尝试SPSite在自定义进程(MyApp.exe)中实例化服务器场服务器上的实例,并将其作为参数提供给整个URI(http:// mysite:80 /).我还相信,该帐户运行MyApp.exe的Site Collection Administrator.
但是,我无法做出SPSite我想要做的任何事情.它总是抛出一个FileNotFoundException.
有人有个主意吗?
堆栈跟踪:
在Microsoft.SharePoint.SPSite..ctor(SPFarm场,Uri requestUri,Boolean contextSite,SPUserToken userToken)
的Microsoft.SharePoint.SPSite..ctor(String requestUrl)在C中的MyCompanyName.Service.HelperClass.GetItemStateInSharePoint(SharePointItem项)中:\Workspaces\MyCompanyName\Development\Main\MyCompanyName.SharePoint\Service\HelperClass.cs:第555行
另一方面说明......我有一个Web应用程序+网站集,我可以通过浏览器访问它没有任何问题.
在SharePoint中,如何从后面的代码中获取您所在页面的URL?例如,包含blah.aspx页面......
SPContext.Current.Web.Url给出http:// vm/en /
我从http://msdn.microsoft.com/en-us/library/dd584174(office.11).aspx获取以下代码,用于在webpart工具窗格中添加自定义属性.方括号([])在下面的代码中的含义是什么?
[Category("Custom Properties")]
[WebPartStorage(Storage.Personal)]
[FriendlyNameAttribute("Custom Color")]
[Description("Select a color from the dropdown list.")]
[Browsable(true)]
[XmlElement(typeof(System.Drawing.KnownColor))]
public System.Drawing.KnownColor MyColor
{
get
{
return _myColor;
}
set
{
_myColor = value;
}
}
Run Code Online (Sandbox Code Playgroud) 我需要编写一个小软件,它必须在Sharepoint 2010上更新一些列表.
我找到了可以使用url创建的"SPSite",但我无法弄清楚如何指定我想要连接的用户.
用户不是当前的Windows用户,并且该程序未在服务器上执行.
我看到了提供"SPUserToken"的可能性,但在我的方法中我只有用户,域和他的密码,所以如何生成这个用户(我认为这个用户在执行代码的系统上是未知的,但在服务器上已知)
我在哪里可以指定?
谢谢!
我想得到互联网的图片并插入到单词中.
我用这个代码.
MainDocumentPart mainPart = wordprocessingDocument.MainDocumentPart;
System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://spsdev2:1009");
System.Net.WebResponse response = request.GetResponse();
ImagePart imagePart = mainPart.AddImagePart(ImagePartType.Jpeg);
//Send an HTTP request and get the image at the URL as an HTTP response
HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(fileName);
WebResponse myResp = myReq.GetResponse();
//Get a stream from the webresponse
Stream stream = myResp.GetResponseStream();
Run Code Online (Sandbox Code Playgroud)
我在myReq.GetResponse()中收到错误;
错误:远程服务器返回错误:(401)未经授权.
编辑
这段代码对我有用:)
myReq.UseDefaultCredentials = true;
myReq.PreAuthenticate = true;
myReq.Credentials = CredentialCache.DefaultCredentials;
Run Code Online (Sandbox Code Playgroud) sharepoint ×10
c# ×5
asp.net ×3
.net ×2
access-token ×1
file-upload ×1
insert ×1
layout ×1
oauth ×1
office365 ×1
security ×1