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
349 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
133 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 ...
4
votes
0answers
617 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
669 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
138 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
34 views

How to create common javascript file for multiple views/pages?

I am working on MVC project where I have saveral number of views. In all the views I have pages like Index.cshtml, AddEdit.cshtml, ViewDetails.cshtml etc. Currently each of one these view has ...
0
votes
0answers
29 views

How do I get 2 lists to show next to each other using MVC web- application?

I know how to get one list from SP in my web-application, but I want to display 2 lists that I have in 2 div's. My problem is that Everything disappears when i run them with the code below: var ...
0
votes
0answers
95 views

Sharepoint - MVC authentication issue

Our main purpose here is security. Right now our MVC application is called inside Sharepoint site in iFrame. And that iFrame is inside Web part. So if you do right click on Sharepoint site you can ...
0
votes
0answers
45 views

Authenticate the user from SharePoint user group by using SP application page with MVC4

I have to authenticate the user from the SharePoint User Group and after the authentication navigate to the MVC Home page. How to integrate the SharePoint application page and MVC Application ? I mean ...
0
votes
0answers
207 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
51 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
65 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
42 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
108 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
323 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
509 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 ...