SP 2013 + ADFS + APPS所有本地错误 - 找不到SharePoint数据 [英] SP 2013 + ADFS + APPS All On-premises Error - SharePoint Data Not Found

查看:64
本文介绍了SP 2013 + ADFS + APPS所有本地错误 - 找不到SharePoint数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Secenario: 


SharePoint 2013 在Server 2012 R2上与2015年2月的CU  (通过更新窃听 - 感谢Microsoft) 使用ADFS作为TrustedIdentityProvider。

ADFS w / ADFS WAP on Server 2012 R2(ADFS 3.0)

2012 - 不是R2 - 带有已部署应用程序的Web服务器 - 又名Visual Studio Lightswitch带有特殊酱汁:) 
$
来自我们的域证书颁发者的域生成代码歌唱证书(因此不是商业用途,但也不是由Cert Tool制作的。所有内容一旦我发布到生产服务器(对于应用程序 - 不是SharePoint - IIS Web
App Server 2012-不是R2),我在本地调试和测试工作得很好。我得到了死亡的asp.net黄色屏幕,可能是最好的直接指向某个原因的错误消息(再次感谢Microsoft!)


值不能为空。

参数名称:sharePointHostData


所以当然,因为那个错误没有意义我启动了小提琴手并得到了这个:


< input type =" hidden" name =" SPAppToken" value =" ;" />

< input type =" hidden"名称= QUOT; SPSiteUrl"值= QUOT; {REMOVED}" />

< input type =" hidden"名称= QUOT; SPSiteTitle"值= QUOT; {REMOVED}" />

< input type =" hidden"名称= QUOT; SPSiteLogoUrl"值= QUOT;" />

< input type =" hidden"名称= QUOT; SPSiteLanguage"值= QUOT;的en-US" />

< input type =" hidden"名称= QUOT; SPSiteCulture"值= QUOT;的en-US" />

< input type =" hidden"名称= QUOT; SPRedirectMessage"值= QUOT; EndpointAuthorityMatches" />

< input type =" hidden"名称= QUOT; SPErrorCorrelationId"值= QUOT; e0a1f69c-6049-60b8-44c7-7a589eb5361c" />

< input type =" hidden"名称= QUOT; SPErrorInfo" value =" Azure访问控制服务不可用。 />


我使用correlationID检查ULS日志并查找:


(第一个相关行)异常:Microsoft.SharePoint.SPException: Azure Access Control服务不可用。 &NBSP;  


(第二条相关行)  appredirect.aspx为网站请求的应用令牌:{GUID}但生成它时出错。  这可能是我们不需要令牌或未正确设置应用主体时的情况


我为该网站设置了App Principal 


我没有SharePointContextTokenHelper.cs(或类似的东西 - 不认为这是必需的。是吗?) 


基于ULS日志显示应用程序为网站设置的方式很好......搞砸了。


有没有人搞乱这样的情景?


谢谢!


-Jon








解决方案

< blockquote>


您能否提供有关您开发的应用程序类型的更多详细信息?如果有关于如何创建和部署此应用程序的详细步骤,我们将不胜感激,这也将使本论坛中的其他人更容易找到此问题的根本原因。


感谢<跨度>&NBSP;


Patrick Liang


Secenario: 

SharePoint 2013  on Server 2012 R2 with the February 2015 CU   (snuck in by Updates - Thanks Microsoft)  Using ADFS as a TrustedIdentityProvider.
ADFS w/ ADFS WAP on Server 2012 R2 (ADFS 3.0)
2012 - NOT R2 - Web Server with the deployed App - aka Visual Studio Lightswitch with special sauce :) 
Domain Generated Code Singing Certificate from our Domain Cert issuer (so not commercial but not made by Cert Tool either.Everything worked great locally debugging and testing, once I published to the production server (for the App - not SharePoint - IIS Web App Server 2012 -not R2). I get the asp.net Yellow screen of death and possibly the best error message that points directly to a cause (thanks again Microsoft!)

Value cannot be null.
Parameter name: sharePointHostData

So of course since that error makes no sense I fire up fiddler and get this:

<input type="hidden" name="SPAppToken" value="" />
<input type="hidden" name="SPSiteUrl" value="{REMOVED}" />
<input type="hidden" name="SPSiteTitle" value="{REMOVED}" />
<input type="hidden" name="SPSiteLogoUrl" value="" />
<input type="hidden" name="SPSiteLanguage" value="en-US" />
<input type="hidden" name="SPSiteCulture" value="en-US" />
<input type="hidden" name="SPRedirectMessage" value="EndpointAuthorityMatches" />
<input type="hidden" name="SPErrorCorrelationId" value="e0a1f69c-6049-60b8-44c7-7a589eb5361c" />
<input type="hidden" name="SPErrorInfo" value="The Azure Access Control service is unavailable." />

I use the correlationID to check the ULS logs and find:

(first relevant line) exception: Microsoft.SharePoint.SPException: The Azure Access Control service is unavailable.    

(second relevant line) App token requested from appredirect.aspx for site: {GUID} but there was an error in generating it.  This may be a case when we do not need a token or when the app principal was not properly set up

I have an App Principal setup for the site 

I don't have a SharePointContextTokenHelper.cs (or anything like that - Didn't think this was needed. Is it??) 

Based on the ULS Logs it appears the way the App is setup for the site is well... messed up.

Has any one messed with a scenario like this?

Thanks!

-Jon


解决方案

Hi,

Can you provide more details about what type of app you developed? It would be appreciate if there will be detailed steps about how you create and deploy this app, it would also make others in this forum easier to find out the root cause of this issue.

Thanks 

Patrick Liang


这篇关于SP 2013 + ADFS + APPS所有本地错误 - 找不到SharePoint数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆