The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.

learn more… | top users | synonyms

1
vote
1answer
336 views

Sharepoint 365 MVC 4 with Azure Database

I've created an autohosted MVC 4 app to embed into a Sharepoint 365 account. I have followed the tutorial here: http://msdn.microsoft.com/en-us/library/fp179902.aspx to the letter AFAIK. The ...
0
votes
1answer
42 views

How to create Client Context from jquery AJAX Get?

I have an HTTP Post controller that I use in a SharePoint online provider hosted app. The controller code: [HttpPost] public JsonResult FinaliseQuote(string quote) { using ...
0
votes
1answer
106 views

MVC Autohosted SP2013 online app can not access context

I created a very very simple MVC view to show how many task are remaining in my todo list. Just as many tutorials out there but this time as an MVC auto hosted app. I created the projects and played ...
3
votes
0answers
318 views

Use CSOM with ADFS credentials from Single Sign-On enabled ASP.NET MVC app

I have the following setup: ADFS 3.0, SharePoint 2013 and the custom ASP.NET MVC app. Both SharePoint and MVC app are configured to use Single Sign-On from ADFS, so once user is logged in via ADFS, ...
2
votes
0answers
444 views

How to properly cache, validate, refresh Access Tokens?

I'm a complete newbie to SharePoint Provider-Hosted Solutions and their authentication logic. My App is an ASP MVC Solution. I run many AJAX-Calls from Client-Scripts to my Controller to interact with ...
1
vote
0answers
88 views

MVC web api in sharepoint 2013 farm solution

How to consume the MVC web api in SharePoint 2013 farm solution? When I try to consume with httpclient I cannot refer to the assembly WebApiRestService.WebApiClient, it's showing error as not strong ...
0
votes
0answers
32 views

Access Denied Error with Provider Hosted App (MVC/CSOM)

I built a PHA using MVC a little while ago. I'm receiving "Access denied. You do not have permission to perform this action or access this resource." error when trying to update or even access simple ...
0
votes
0answers
24 views

Open SharePoint list in MVC provider hosted app

I am having following setup: provider hosted Asp.Net MVC app hosted on-premise. I have created a list instance (simple Tasks list). Is there any way how I can open that list from app? Obviously ...
0
votes
0answers
28 views

Using MasterPage for SharePoint 2013 Provider Hosted Apps

I try to migrate a Farm Solution to a SharePoint 2013 Provider Hosted app via MVC technology. The app will be hosted on IIS. I have a heavy styled custom masterpage that I want to use also for my MVC ...
0
votes
0answers
23 views

Cant redirect back to SharePoint app after custom mvc app returns FileStreamResult

I have a custom action (created using a custom app) which does a customized export. The export method is in a MVC app which returns a FileStreamResult to the user. The problem i am having with this ...
0
votes
0answers
56 views

Lightswitch or ASP.Net or ASP MVC

I developed an App for SharePoint Online in LightSwitch but as it was an AutoHosted app, it is no longer supported so I will be re-creating it as a provider hosted app using Azure Websites and Azure ...
0
votes
0answers
80 views

Provider Hosted MVC application hosted outside Sharepoint IIS, find current Sharepoint User

I want to host a MVC application outside Sharepoint - 80 IIS website. Everything works just fine, but I can not find the current sharepoint user, because SPContext.Current is null. My entire MVC ...
0
votes
0answers
24 views

“Please make sure the web service is deployed to Microsoft Azure Emulator prior to running your app for SharePoint”

I'm trying to host a Provider-Hosted web app to Azure and am getting the following error Unable to contact the Cloud Web Service project. Please make sure the web service is deployed to Microsoft ...
0
votes
0answers
135 views

Run MVC App with Sharepoint as backend for Document Storage

My company has a small sharepoint site that we're hosting. We are almost exclusively using it for document storage, and we don't have very many documents. At the same time, we are developing an MVC ...
0
votes
0answers
101 views

Redirect to list after Custom Action

I am creating a sharepoint app with MVC, I have a custom action in the ECB bar on a document library. I don't need to display any information when the custom action is pressed, I just need it to ...
0
votes
0answers
260 views

SharePoint Provider Hosted App: mixed content issue

We have a provider hosted app that needs the SharePoint javascript and CSS files, so in our MVC view we added the following code: <script ...
0
votes
0answers
434 views

ASP.NET MVC - Get current user logged in from sharepoint

I have an MVC web app that is sitting on a server running SharePoint Foundation and users access it via a link in the SharePoint portal. I require the website to log in automatically for the current ...