2
votes
3answers
74 views

Get users security and info every request -> Else data gets stale

What we have currently implemented works well but I'm just concerned that there maybe a better way or we are doing it completely wrong. Once logged into our website, on each and every request it will ...
0
votes
2answers
682 views

HttpResponse in Webapi controller in MVC

I am using Web api controller as follows: [HttpPost] public HttpResponseMessage PostMethod(string filename) { Stream downloadStream = BL.method(fileName); HttpResponseMessage ...
0
votes
2answers
360 views

CRUD operations using asp.net Icontroller Versus using asp.net ApiController inside my asp.net MVC

If I need to build a web application that implement functionalities related to managing an Medical hospital institution. That application include functionalities to add, update, delete, search and ...
4
votes
1answer
691 views

ASP.Net MVC 4's WebAPI does not bind check boxes correctly?

I'm incorporating WebAPI into my development and am Posting all form submissions to a WebAPI controller. I've noticed that checkboxes are not getting bound to the model correctly. I have a form ...
4
votes
1answer
1k views

Customizing ASP Web API Json serialization by which Action is invoked

I am looking at converting an existing JSON api from a hacky MVC3 implementation to the latest MVC4 Web Api. The MVC3 implementation uses JSON.NET to do all the serialization which will make the ...
2
votes
1answer
996 views

ASP.NET MVC 3 Reroute to other controller and action & Restful API versioning

My original problem is I am looking what is the best practise to do versioning in Restful API. Not much people talk about this, dont have a good answer or I can't found exactly the solution at this ...
1
vote
1answer
811 views

how to read multi part form data in .net web api controller

public class Sampleontroller:apicontroller { public void PostBodyMethod() { HttpRequestMessage request=this.request; //How to read the multi part data in the method } } I am sending a multi ...
0
votes
1answer
58 views

SimpleMembershipProvider vs WebSecurity

I have a WebAPI project with a Repository layer. For methods related to accounts, I'm not sure which method to use here: public class RepositoryService : IRepositoryService { private ...
0
votes
1answer
63 views

Unable to call Delete Web Api

When I attempt to call a Delete Web API, I get: NetworkError: 404 Not Found - /api/tradespendentryip/5 My API controller looks like this: public class TradeSpendEntryIPController : ApiController { ...
0
votes
1answer
331 views

asp.net mvc 3 upload file maximum size

I am trying to upload large files using ASP .Net Web API controller I am able to upload until 2 GB. But for more than 2GB I am unable to upload. is this a limitation of Web api controller and asp ...
0
votes
1answer
682 views

How to disable windows authentication for WEB API inside an ASP.NET MVC 3 application

I have an ASP.NET MVC 3 application with Windows authentication. Now I've added the web api to it (nuget package) and want anonymous access (later on I'll add an api key). But I haven't managed to ...
0
votes
1answer
758 views

WebApi in MVC3, cannot hit my API Controller (500 internal error)

I have the below route mapped in my AreaRegistration: public override void RegisterArea(AreaRegistrationContext context) { if (context != null) { ...
0
votes
1answer
559 views

Post Form data with also some input files to Web Api

Is there any updated example to upload files with a form with fields and file inputs that post to a mvc4 webapi controller? I am trying to post with Jquery axax to a asp.net mvc4 ApiController. I ...
0
votes
1answer
670 views

ASP.NET MVC 4 WebApi Conditional MessageHandlers

In previous version of the WebApi you could do the following: RouteTable.Routes.MapServiceRoute<UserService>("1.0/User/", defaultWebApiConfiguration); ...
1
vote
0answers
293 views

ASP.NET Web API - NTLM authentication and HTTPS

I have the following configuration: self-hosted ASP.NET Web API ASP.NET MVC 3 web application Web app [2] comunicates with Web API [1] over HTTPS. They both (for now) live on the same machine. ...
0
votes
0answers
53 views

Data model validation throws internal server error, when using single model in more than one action method

Below is the validation attributes for the datamodel class RegisterModel public class RegisterModel { [Required, Maxlength(7)] public string Email { get; set; } } If the above datamodel ...
0
votes
0answers
58 views

For Authentication and Authorization : MVC controller of Web API controller?

The Controller in question is my "Account" controller which has actions to sign in, register, log off, recover password etc. My application is web based but soon will also available on Android and ...
0
votes
0answers
17 views

Anti-pattern WCF Client Proxy

I have inherited a project from an IT team that moved to a different project. I noticed right away that they had let the Entities objects bleed all the way to the MVC3 Views! I also have to take into ...
0
votes
0answers
73 views

When listbox items are selected controller takes null parameter

I have multiple textboxes in my form which is sending ajax request with a certain Web-Api. However, when i add a listbox to my controls and select an item from it parameter of post api controller ...
0
votes
0answers
141 views

Reporting solutionl for HTML5 , MVC4.0 with AngularJS

We are using MVC 4.0 with WEBAPI as project, AngujarJS as client side javascript framework. Our Server-side is ASP.Net webapi/ MS SQL Server. Please suggest good reporting tool with new edge of ...
0
votes
0answers
141 views

Appharbor build error: The CodeDom provider type “Microsoft.VisualC.CppCodeProvider…” could not be located

I've just built an ASP.NET WebAPI project and pushed the code upto AppHarbor, but I'm getting a build error. I've tried googling what the error is but I've never seen it before and the project builds ...
0
votes
0answers
139 views

Scaffolding aspnet webapi with jquery grid and unit testing

I've an ASPNET MVC4 project using WebApi, EF5 Code First and Repository and Unit of Work patterns. I'd like to know if someone knows a scaffolder to scaffold the controllers and views, but instead of ...
0
votes
0answers
956 views

'Microsoft.Practices.Unity'. The located assembly's manifest definition does not match the assembly reference

I'm adding WebApi to an existing MVC3 app, and after adding the NuGet Web Api package and getting new Unity.dll, I'm having the following problem: Apparently another assembly is referencing the ...
0
votes
0answers
136 views

WebAPI and MVC on separate Machines

I have both a design question along with an overall question of the way WebAPI works. We have an Internal Website that houses many applications ( a seperate MVC Area for each application). We then ...
0
votes
0answers
100 views

How do I limit the properties on objects exposed to Upshot from a DbDataController?

Upshot apparently offers three different data providers to communicate with a server. These are: "normal" dataProvider which communicates with a WebAPI DataController class (default?) ...