Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Problem with SharePoint Online Provider Hosted App in Azure

$
0
0

I have deployed a very simple Lightswitch application to SharePoint online (provider hosted) with the middle tier and database components being hosted in Azure.

I have followed this tutorial as my guide ( http://blogs.msdn.com/b/lightswitch/archive/2013/04/02/sharepoint-hosting-options-for-lightswitch.aspx )

I have my ClientID and Client Secret as described in the article.

The publish process seems to work normally but when I launch the application in SharePoint I am getting the following error:

Server Error in '/' Application.

Value cannot be null.
Parameter name: sharePointHostData

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: sharePointHostData

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: sharePointHostData]
   Microsoft.LightSwitch.Framework.Server.SharePointHost..ctor(SharePointAuthDataBase sharePointHostData) +62
   Microsoft.LightSwitch.Framework.Server.SharePointApplication`3.get_SharePoint() +42
   Microsoft.LightSwitch.Framework.Server.SharePointLaunchBase.Page_Load(Object sender, EventArgs e) +75
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>