使用MVC前端的Provider Hosted App发生意外错误 [英] An unexpected error has occurred for Provider Hosted App using MVC frontend

查看:63
本文介绍了使用MVC前端的Provider Hosted App发生意外错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我使用ASP.NET MVC作为Web应用程序创建了一个SharePoint提供程序托管应用程序。我有设置&成功配置SharePoint和App Store(我还从SP Server创建了一个高信任证书并将其添加到我的本地计算机)。当
我从我的本地(开发人员)机器调试时,我可以建立一个可信连接并成功显示项目。

I have created an SharePoint provider hosted app using ASP.NET MVC as the Web Application. I have setup & configure SharePoint and the App Store Successfully (I also created an High Trust Certificate from SP Server and add it to my local machine). When I debug from my local (developer) machine I can make an trusted connection and display the project successfully.

当我尝试将MVC项目部署到IIS Web托管服务器,在发布Web项目后,我使用了我在本地计算机上使用的相同证书作为IIS Web托管服务器上的证书。但是,当尝试
从浏览器运行Web应用程序时,我收到以下错误:

My issue start when I try and deploy the MVC project to the IIS Web hosting Server, after publishing the Web project I used the same certificate that I used on my local machine as the certificate on the IIS Web hosting server. However when trying to run the Web Application from the browser I get the following error :

请通过启动您网站上安装的应用再试一次。

Please try again by launching the app installed on your site.

再次感谢您的帮助。

Francois

推荐答案

您好,

您可以看到以下博客:

"未知用户"创建SharePoint 2013 MVC应用程序时出错

http://jcardy.co.uk/unknown-user-error-when-creating-sharepoint-2013-mvc-apps/

You can see the blog below:
"Unknown User" error when creating SharePoint 2013 MVC Apps
http://jcardy.co.uk/unknown-user-error-when-creating-sharepoint-2013-mvc-apps/

或者你可以尝试创建单个ASP.NET MVC项目并将项目部署到IIS,然后检查它是否可以工作。如果仍然有错误,我建议您将其发布到ASP.NET论坛,您将获得更多帮助并从那里确认答案。

http://forums.asp.net/

Or you can try to create a single ASP.NET MVC project and deploy the project to IIS, then check whether it can work. If there is still error , I suggest you post it to ASP.NET Forum, you will get more help and confirm answers from there.
http://forums.asp.net/

谢谢,

Dennis Guo

TechNet社区支持

如果答案有帮助,请记得将答复标记为答案,如果答案没有提供帮助,请将其取消标记。如果您对TechNet订户支持有反馈,请联系
tnmff@microsoft.com


这篇关于使用MVC前端的Provider Hosted App发生意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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