远程事件接收器问题 [英] Remote Event Receiver Problem

查看:66
本文介绍了远程事件接收器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发环境中开发一个Remote Event Receiver.我正在将SP 2016与VS 2017配合使用.我创建了SharePoint加载项.  问题是当我在AppManifest中添加以下两行时:

I am working on a Remote Event Receiver in my development environment.  I am using SP 2016 with VS 2017.  I created a SharePoint Addin.  The problem is when I add the following two lines in the AppManifest:

<InstalledEventEndpoint>~remoteAppUrl/Services/AppEventReceiver.svc</InstalledEventEndpoint>
<UninstallingEventEndpoint>~remoteAppUrl/Services/AppEventReceiver.svc</UninstallingEventEndpoint>

default.aspx页面无法启动.注释完以上两行后,default.aspx页将按预期启动:

The default.aspx page does not launch.  When the two lines above are commented out the default.aspx page launches as expected:

<StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>

我无法弄清楚为什么InstalledEventEndpoint和UninstallingEventEndpoint行中断或阻止了应用程序的启动(通过Visual Studio).  

I am not able to figure out why the InstalledEventEndpoint and UninstallingEventEndpoint lines are breaking or preventing the app from launching (through Visual Studio).  

事件查看器显示以下消息:

Event Reviewer shows this message:

.NET运行时版本4.0.30319.0-在CoCreateInstance期间加载分析器失败.   Profiler CLSID:"{de70e25c-02b5-4556-a837-8aa6fe502668}".   HRESULT:0x8007007e.  进程ID(十进制):14152. 消息ID:[0x2504].

我对ULS的了解并不多-至少没有帮助.

I am really not seeing much in ULS - at least nothing helpful.


推荐答案

在Visual Studio中按F5键时,请检查起始页是否没有启动.

Please check if the start page not launch when press F5 in visual studio.

我建议您在开发人员站点中部署外接程序,然后打开外接程序并检查起始页是否启动.

I suggest you deploy the add-in in developer site, then open the add-in and check whether the start page launch or not.

最好的问候,

丹尼斯


这篇关于远程事件接收器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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