2

第一次我从书中打开了一个新的 Sharepoint App 项目:Pro Sharepoint App Development (APress)

https://onedrive.live.com/redir?resid=68C060F1B173BAA9!51983&authkey=!AH2c9Msfs2m9KJg&ithint=file%2crar

第二。我去了我的 azure 帐户,创建了一个服务总线命名空间并复制了连接字符串 http://screencast.com/t/G4w0EXeYYMdT

第三我把它粘贴到视觉工作室 http://screencast.com/t/8PXdt2QuTwAH

第四。我禁用了防火墙 http://screencast.com/t/kqOlWxSZ9Hk

第五。我按 F5 部署应用程序。然后单击信任,然后应用程序说出现错误,我关闭了 Visual Studio 中的浏览器窗口

30秒后我得到这个:

@"Error 1
        CorrelationId: 4f1a0952-1102-47c0-83f3-62f85952bdf9
        ErrorDetail: The remote event receiver callout failed.
        ErrorType: Transient
        ErrorTypeName: Intermittent
        ExceptionMessage: There was no endpoint listening at https://levalencia1.servicebus.windows.net/2772163249/415041792/obj/25b23141-8ec2-4982-9134-09f8d2c02620/AppEventReceiver.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
        Source: Common
        SourceName: Common App Deployment

更新 1:我在 60 天前取消了我的 sharepoint 在线订阅,当我重新激活它时,我不得不再次购买许可证,但是这样做没有任何区别。请注意,我只是创建一个空白应用程序、托管共享点或托管提供程序,一旦我将应用程序安装事件设为真,应用程序就不会在 Visual Studio 中部署(按 F5 时)。

该应用程序在站点内容上显示错误,因此我关闭了浏览器内窗口,它在输出上显示上述消息,我什至重新创建了开发人员站点集合,我重新创建了服务总线命名空间,我禁用了防火墙。

@"Error 1
        CorrelationId: 06821605-2c94-4df6-9146-c934d1cca93d
        ErrorDetail: The remote event receiver callout failed.
        ErrorType: Transient
        ErrorTypeName: Intermittent
        ExceptionMessage: There was no endpoint listening at https://levalencia.servicebus.windows.net/2772163249/415041792/obj/25b23141-8ec2-4982-9134-09f8d2c02620/AppEventReceiver.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
        Source: Common
        SourceName: Common App Deployment

我还在输出共享点工具窗口中注意到以下内容:

Cannot register AppEventReceiver.svc on Microsoft Azure Service Bus: The underlying connection was closed: An unexpected error occurred on a send.
4

3 回答 3

3

使用 ACS 身份验证,而不是 SAS 作为服务总线命名空间的身份验证,因为它似乎完全无法用于 RER 调试。

如果您没有为此身份验证配置命名空间(似乎无法使用它创建新命名空间),请使用 Azure CLI cmdletNew-AzureSBNamespace -Name "NewNamespace" -Location "West Europe"

于 2014-09-11T15:23:11.843 回答
2

I am also facing the same issue here. Exact same error message. Unfortunately, I do not have an answer for the original problem but was able to carry out debugging of the RER (remote event receiver) using Remote Debugging in VS2013.

You can deploy the Provider Hosted App to your remote web in Azure and attach the Remote Debugger to the deployed Remote Web. This will allow you to debug the Event Receiver.

For more info on Remote Debugging in VS2013/VS2012: http://blogs.msdn.com/b/webdev/archive/2013/11/05/remote-debugging-a-window-azure-web-site-with-visual-studio-2013.aspx

Hope this helps and hope we can find an answer to the original problem!

于 2014-09-11T01:30:39.813 回答
0

当从 sharepoint 应用程序触发事件接收器时,将搜索端点。如果您在本地主机上部署您的应用程序,那么在线共享点(我假设您正在使用部署共享点应用程序)将无法找到您的端点。

对于要调用的远程事件接收器,请将其托管在 azure 或共享点在线可以找到端点的某个地方(全球可用)

于 2014-09-03T05:51:03.667 回答