标签: sharepoint-2013

连接到包含MS Access Web App后端的SQL Azure

好的,不知道在主题行输入什么,如果不清楚,请道歉.

我使用MS Access 2013创建了一个简单的Web应用程序.它只有一个包含示例数据的表.我把它推到了我的共享点.在我们开始之前,我想告诉您我正在使用Office 365企业版,我们需要管理Lync/SharePoint/Exchange等所有内容.

因此,根据Microsoft博客和文章以及讨论,甚至以下屏幕截图表明存储在Office 365中的数据存储在Office 2013 Web应用程序的SQL Azure数据库中.

接下来是什么

因此,下一步,网上的说明如果我们选择"从任意位置"并启用"读写连接",它应该允许您从任何窗口访问数据,如SQL Server管理窗口.

数据连接选项

好的,我的凭证看起来像这样:

证书:Oscillate Infotech Pvt Ltd DB

现在,当我转到SQL Server Management Studio并使用上述凭据并尝试登录时,我收到以下错误:

Oscillate Infotech Pvt Ltd:错误

我假设我们的管理页面中有一些设置需要更改,这可以让我连接.有帮助吗?我认为连接它似乎很简单,但它没有连接.

有帮助吗?

我们必须修理像BCS这样的东西吗?请帮忙.

编辑:我已经有两个downvotes所以请注意我已经尝试阅读超过50个不同的网页讨论这个,没有一个说它可能是问题.无论他们提供什么解决方案,我都尝试过.为什么没有评论就downvote?好玩吗?

谢谢,Vikas B.

office365 office-2013 sharepoint-2013 azure-sql-database

9
推荐指数
2
解决办法
9861
查看次数

ChatBot 在 Web 模拟器中不起作用,但在本地 Bot Framework 模拟器中运行良好

我开发了与 SharePoint On Premise 集成的 ChatBot。当我在模拟器中调试 ChatBot 时,它可以工作。但是,当我使用 DirectLine 在 Azure 中的 Web 模拟器和公司网站中托管的网站上进行调试时,它不起作用。

有谁知道如何解决它?

附上我的截图。左侧来自 Web Emulator,右侧来自本地 Bot Framework Emulator

在此处输入图片说明

更新源代码(2019 年 12 月 9 日)

XmlNamespaceManager xmlnspm = new XmlNamespaceManager(new NameTable());

Uri sharepointUrl = new Uri("https://mvponduty.sharepoint.com/sites/sg/daw/");

xmlnspm.AddNamespace("atom", "http://www.w3.org/2005/Atom");
xmlnspm.AddNamespace("d", "http://schemas.microsoft.com/ado/2007/08/dataservices");
xmlnspm.AddNamespace("m", "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata");

NetworkCredential cred = new System.Net.NetworkCredential("engsooncheah@mvponduty.onmicrosoft.com", "Pa$$w0rd", "mvponduty.onmicrosoft.com");

HttpWebRequest listRequest = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + "_api/lists/getByTitle('" + "data@work" + "')/items?$filter=Keywords%20eq%20%27bloomberg%27");
listRequest.Method = "GET";
listRequest.Accept = "application/atom+xml";
listRequest.ContentType = "application/atom+xml;type=entry";

listRequest.Credentials = cred;
//LINE 136 start from below
HttpWebResponse listResponse …
Run Code Online (Sandbox Code Playgroud)

sharepoint-2013 botframework direct-line-botframework azure-bot-service

9
推荐指数
1
解决办法
567
查看次数

Autofac和ASP .Net MVC 4 Web API

我在ASP .Net MVC 4项目中使用Autofac for IoC.Autofac在初始化存储库并将其传递给API控制器时遇到一些问题.

我确信我的配置中缺少一些东西.

这是我导航到的错误: https://localhost:44305/api/integration

<Error>
    <Message>An error has occurred.</Message>
    <ExceptionMessage>
        None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' 
        on type 'EL.Web.Controllers.API.IntegrationController' can be invoked with 
        the available services and parameters: Cannot resolve parameter 
        'EL.Web.Infrastructure.IRepository`1[EL.Web.Models.Integration] repository' of 
        constructor 'Void .ctor(EL.Web.Infrastructure.IRepository`1[EL.Web.Models.Integration])'.
    </ExceptionMessage>
    <ExceptionType>Autofac.Core.DependencyResolutionException</ExceptionType>
    <StackTrace>
        at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) 
        at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) 
        at Autofac.Core.Resolving.InstanceLookup.Execute() 
        at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) 
        at Autofac.Core.Resolving.ResolveOperation.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) 
        at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) 
        at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 …
Run Code Online (Sandbox Code Playgroud)

autofac asp.net-mvc-4 asp.net-web-api sharepoint-2013

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

如何在sp2013中使用REST api将用户添加到sharepoint列表项用户字段?

我有一个基本的sharepoint列表,其中包含people字段,现在我正在尝试使用rest api添加新的列表项并尝试将person字段设置为我的别名,但它不起作用并且让我低于错误.看起来我的用户数据传递方式有问题,但我无法在线找到任何帮助.

你能帮助正确的方式来打电话,非常感谢任何帮助.

我的代码----------

function runAjax(){   var d  = JSON.stringify({"__metadata":{"type":"SP.Data.RepositoryItem"},"Owners":"-1;#v-mynme@microsoft.com"});
jQuery.ajax({ 
    url: "https://microsoft.sharepoint.com/sites/mysite/docstore/_api/web/lists/GetByTitle('Repository')/items(1580) ",
    type: "POST", 
    headers: { 
        "accept": "application/json;odata=verbose", 
        "content-type": "application/json;odata=verbose", 
        "X-RequestDigest": $("#__REQUESTDIGEST").val(), 
        "X-HTTP-Method": "MERGE", 
        "If-Match": "*" 
    }, 
    data:d, 
    success: function (_a) { 
        console.log(JSON.stringify(_a)); 
    }, 
    error: function (_e) { 
        console.error(JSON.stringify(_e)); 
    } 
});}runAjax(); 






error I am getting is 
Run Code Online (Sandbox Code Playgroud)

更新失败{"readyState":4,"responseText":"{\"error \":{\"code \":\" - 1,Microsoft.SharePoint.Client.InvalidClientQueryException \",\"message \":{ \"lang \":\"en-US \",\"value \":\"尝试读取导航属性的值时,找到了具有非空值的'PrimitiveValue'节点; 但是,期望"StartArray"节点,"StartObject"节点或具有空值的"PrimitiveValue"节点.\"}}}","status":400,"statusText":"错误请求"}

sharepoint sharepoint-2013

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

如何为sharepoint 2013设置开发环境

我在虚拟机中的Windows Server 2012操作系统中安装了sharepoint 2013基础,sql server 2012.

我需要为sharepoint 2013设置开发环境.任何人都可以帮助我解决我必须安装的问题.

我有一些问题

必须在哪里安装Visual Studio 2012(在客户端或服务器VM中)?我必须安装哪些组件?我需要安装Sharepoint Designer吗?

请帮助我解决这些问题.

干杯!

sharepoint sharepoint-designer sharepoint-2010 sharepoint-2013

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

在SharePoint 2013中以不同用户身份登录

我使用SharePoint 2013,我需要更改我的SharePoint网站中的当前用户.

如何更改当前用户?

如何在菜单中添加子菜单(以不同用户身份登录)?

在此输入图像描述

sharepoint sharepoint-2013

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

如何使用泽西发送NTLM认证的帖子请求?

我正在使用Java对Sharepoint 2013进行休息api调用.如何使用泽西休息客户端连接到sharepoint 2013?

注意:目前我正在使用apache http组件和NTCredentials

Credentials credentials=new NTCredentials(username, password, workstation, domain);
AuthScope authScope=new AuthScope(AuthScope.ANY);
CredentialsProvider credsProvider = new BasicCredentialsProvider();
credsProvider.setCredentials(authScope,credentials);
CloseableHttpClient httpclient = HttpClients.custom().setDefaultCredentialsProvider(credsProvider).build();
Run Code Online (Sandbox Code Playgroud)

如何将此采用到Jersey框架?

java rest ntlm jersey sharepoint-2013

8
推荐指数
1
解决办法
2084
查看次数

如何在Yammer组上添加自定义托管元数据

我们在工作地点使用Yammer,我们正在寻找一种以自定义方式对组进行排序的方法.为此,如果我们可以向当前存在的所有组添加自定义元数据,这将非常有用.有没有明确定义的方式,或者,如果没有,是否有方法在Yammer 中实现自定义排序(,根据我们自己定义的标准)?任何帮助是极大的赞赏.谢谢!

sorting metadata yammer sharepoint-2013

8
推荐指数
1
解决办法
99
查看次数

适用于SharePoint 2013内部部署,Power BI和自定义Web应用程序的ADFS单一登录?

脚本

有一个用户存储,即内部部署AD.ADFS为SharePoint 2013和Power BI提供身份验证.

自定义Web应用程序需要从AD验证用户.Web应用程序后端还需要访问SharePoint REST API.

目标是使用单点登录实现上述目标.如果签入三个应用程序中的任何一个,用户不必输入其他任何一个的凭据.此外,自定义Web应用程序还显示来自SharePoint(iFrame和REST API)和Power BI(iFrame)的内容.

我们尝试了以下两种解决方案,但在任何一种情况下都遇到了问题.

解决方案1

  • 用户在Web应用程序中输入凭据.
  • Web应用程序后端使用这些凭据从ADFS获取SAML令牌.
  • Web应用程序后端使用SAML令牌通过基于表单的身份验证向SharePoint用户进行身份验证,并检索FedAuth cookie.
  • Web应用程序后端使用FedAuth cookie向SharePoint发出REST API请求
  • Web应用程序前端使用SAML令牌通过基于表单的身份验证向SharePoint用户进行身份验证.这允许iFrame中的SharePoint内容.

什么不起作用:导航到Power BI或将其包含在iFrame中会将用户重定向到ADFS登录页面.这是因为用户尚未在浏览器中使用ADFS进行身份验证.

解决方案2

  • ADFS SSO也用于自定义Web应用程序.
  • 导航到三个应用程序中的任何一个都会将用户重定向到ADFS登录页面
  • 用户输入其凭据并使用SAML令牌重定向回应用程序.
  • 导航到任何其他两个应用程序会将用户重定向到ADFS,ADFS将使用另一个SAML令牌重定向回应用程序,而无需用户再次登录.
  • 这允许SharePoint和Power BI内容都包含在iFrame中的Web应用程序中.

什么不起作用:Web应用程序无法使用从ADFS为Web应用程序收到的SAML令牌向SharePoint发出REST API请求.我们已尝试使用该SAML令牌代表登录用户从ADFS for SharePoint请求另一个令牌.这也不起作用.同样,SharePoint 2013内部部署可能不会代表请求接受.

有没有办法为所有三个应用程序提供SSO,同时还可以从Web应用程序获得对SharePoint的REST API访问?用户只需登录一次,最好只登录Web应用程序.

sharepoint adfs adfs2.0 sharepoint-2013 powerbi

8
推荐指数
1
解决办法
520
查看次数

如何在单独的类库中管理客户端上下文对象?

我正在尝试为sharepoint 创建一个库(类库),它将使所有sharepoint dll与sharepoint服务器交互,以上传文件,文档并创建文档库和文档集.

现在这个库可以被Web应用程序(asp.net webform或mvc)或控制台应用程序或web api/wcf服务或windows形成任何东西的客户端使用.

所以在这里我对创建存储库模式和工作单元层以便管理客户端上下文对象感到困惑.

我不确定是否允许为每个操作创建客户端上下文,或者是否创建客户端上下文一次并重新使用或是否每次都创建clientcontext.

我有很多搜索,但无法找到任何参考或文章来创建存储库层,就像它创建的方式一样Entity framework DbContext.

我正在使用客户端对象模型(CSOM库),我的库是关于管理文件和元数据的内容管理系统.

我会感激任何帮助:)

更新:在sharepoint域上传文件的示例代码

ClientContext context = new ClientContext("http://SiteUrl"); // Starting with ClientContext, the constructor requires a URL to the server running SharePoint. 
context.Credentials = new SharePointOnlineCredentials(username, password);

// The SharePoint web at the URL.
Web myWeb = context.Web;

List myLibrary = myWeb.Lists.GetByTitle("MyProject"); //This is called document library so in sharepoint document Library is the root where …
Run Code Online (Sandbox Code Playgroud)

c# unit-of-work repository-pattern sharepoint-2013 csom

8
推荐指数
1
解决办法
831
查看次数