MVC Web API json response truncated?

I have an MVC 4 Web API in C# hosted in IIS 7
Basically this service has a queue that has items enqueued every minute. I expose a GET method that allows for all the items in the queue to be returned in a json array.
the queue is really this: Queue<List<CustomObject>> mQueue; then every minute a new list is enqueued.
The max size of the queue is 50 (1 hour of data)
the maximum count of a list in said queue is ~500 and minimum count is ~100. When I debug the api locally It will return all the elemnets in the queue no problem. only takes a couple seconds. The size of the json response (saved to disk) is ~10Mb.
So I decided to host this service on a VM. I let it run for a while so the queue gets populated. then I make my request:
http://somepoint:4328/AzureQueueService?view=Full
I only get 1.30 - 1.32 mb of data back. Which equates to about 4 minutes worth of data! So the question becomes is there some setting in IIS that forces the response sent to be less than 2Mb? Maybe there is a similar setting in my webconfig? Or maybe IIS
has created more than one instance of my service? Either way, I'm missing something here.

What OS (including SP number) your service is running on? (both local and VM)
Do you receive the same amount of data as specified in Content-Length header? Is your response a valid JSON (just having less data than expected), or it is really truncated?
Where is your queue hosted? Is it just a static object inside IIS process, or somewhere out-of-process?
How is it filled? By another method passing incoming data? Do you use thread synchronization when accessing the queue?
IIS may have multiple worker processes per application, and each will have its own static queue (of course, if it is hosted in-process). Also IIS might recycle worker processes, so in-process data could be lost.

Similar Messages

  • MVC Web API in SharePoint site

    We're planning on moving most of our web presence on our SharePoint 2013 server in cloud. Our current setup uses a MVC Web API for data retrieval from DB. We do not want to host the API under a separate domain and thus need to move the API under SharePoint
    domain as well. There is no relaxation in this requirement.
    Is there a way to publish my API to SharePoint? Or is there a SharePoint specific API project template in Visual Studio? If not what are my options?

    Hi,
    According to your description, you might want to host the Web API in your SharePoint Online environment.
    If it is SharePoint Online, as we can’t access the backend server, your requirement might not be achievable at this moment.
    Your requirement is retrieving data from a database, as a workaround, you can use “the Business Connectivity Services (BCS) hybrid scenario to access on-premises data
    through SharePoint Online”:
    http://technet.microsoft.com/en-us/library/dn197239(v=office.15).aspx
    With the retrieved data from the database, you can create an External list, then access the data of this External list using Client Object Model.
    Or we can use an Azure SQL Server to sync with your database, then implement a Provider Hosted app to deal with the data from Azure SQL Server. The demo below would
    provide more details about this solution:
    http://blogs.msdn.com/b/alimaz/archive/2014/07/31/connect-sharepoint-online-to-an-on-premises-sql-server-from-an-azure-provider-hosted-app-using-hybrid-connections.aspx
    Best regards
    Patrick Liang
    TechNet Community Support

  • Want a JSON response by the Bing Synonyms API

    Hello,
    How do I request for a JSON response from the synonyms API. I could not find the answer in the documentation found here: https://onedrive.live.com/view.aspx?resid=23DD320B9FC9364A!113&app=Word&authkey=!AAxXlP949CZOQyA
    I decided to try query param format=json and it did not work, neither did it work if I passed in the Content-Type: application/json
    Everytime the API sends back the response in XML.
    Please let me know,
    AJ

    What I could get from the documentation is basically:
    A request to the HTTP endpoint consists of an HTTP GET request to the appropriate URI. There are two
    URIs, one for XML results and one for JSON results. These are http://api.bing.com/xml.aspx and
    http://api.bing.net/json.aspx, respectively.
    Now the synonyms API URL is: 
    https://api.datamarket.azure.com/Bing/Synonyms/GetSynonyms?Query=%27word%27
    what I am supposed to do here?

  • MVC and Web API in a single project?

    Hi,
    I currently have a MVC 5 application using EF6 and we need to add Web API on top of it.  I can simply scaffold new Web API controller using different controller name within the same project but I don't feel it is the best solution.  For example.
    if I have a MCV5 controller called "phonebook", I would have to call the WebAPI controller phonebooksAPI (or something else) .. Then, when I need to call the WebApi, it would be something like /api/phonebooksAPI.
    So, is it possible to have my MCV controller at /phonebook and the WebAPI controller at: /api/phonebook ?  Should I create the 2 different projects, which mean I would have to redo my EF model binding (they should be the same in both MVC and WebAPI).
    What are the best practices on that.  I've read a bit on the web but many people are having different way of doing this, and different opinion.  So what do you think Microsoft Expert ?! ;)
    Best regards.

    Hello Elezium38,
    Welcome to MSDN forum.
    Your issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because your issue is related to ASP.NET MVC Application, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using Web API and MVC to connect to CRM and ADFS

    Hi,
    I'm struggling trying to find best point start for a migration project.
    I have a web forms application that connects to CRM 2011 (Azure VM, Windows Server 2008 R2) using ADFS 2.1 (Azure VM, Windows Server 2012) for CRUD operations.
    An external developer has build the front end in AngularJS, so we have decided to migrate the project to MVC framework for the integration simplicity over web forms.
    Can you confirm if this is right?
    1. Should I use Web API as I'll be querying CRM?
    2. Should I have an MVC project as I need to authenticate against ADFS 2.1?
    3. If one answer of the above questions is NO, can I develop just an MVC or Web API project to achieve what I want?

    This forum supports setup of the .NET Framework itself.
    For best help with your MVC questions, I suggest you post here:
    http://forums.asp.net/1146.aspx/1?MVC

  • How to call an Azure Web API (2.2) - from Dynamics Custom WorkFlow Activity of Plugin c#

    Hello,
    I am specifically trying to call a web api, that has a FromBody.
    However, I am trying to do it without having to use libraries (or nuget packages) that I cannot install on CRM of CRM Online.
    It seems JSON newtonsoft is big... or I guess I could use my own custom formatter...
    But I would love to see if someone has an example for posting to web API, versus an ASMX
    Thanks

    Wow I had this awesome thing typed up... and it wouldn't do it then wanted me to verify and then that messed up and I lost it all... Wow..
    Anyway
    [SOLVED]
    Works from Plugin or Workflow activity
    Use the Query string to pass things (not the body) or else you have to compress it and you can't use the libraries to DO that in the Sandbox... You CAN do that if you or on premise and do NOT isolate.. Then heck I did everything I wanted but for online
    this was it.
    You do NOT have to use WebClient, use HttpClient (follow the code below)
    WebApi 2.2 is what I used
    My signature for Webapi
    You do have to clean up the response.. as the string you get back is JSON.. and you cannot use the JSON desieralizer...
    Easy fix... just do a replacement of the \ and " to a " " space.. then Trim the result.. bingo a clean string response...
    [HttpGet]
    Public string MyMethod(string value1, string value2, string value3)
    This will parse the query string so USE these are your parameters in your query string or the API will NOT work. ?value1=ddd&&value2=ddd&&value3=aaa
    of course make up your own string names
    IIS and Apache etc work differently so the AMOUNT of data you can send will differ per platform, per version of platform AND usually you can configure it.. IIS used to be like 2048 by default.. anything beyond that (as a total URL incoming) was truncated..
    Not sure now. I know it was configurable
    I got it working.. all my points are gone... but it's possible
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Activities;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.Xrm;
    using System.Net.Http;
    using System.IO;
    using System.IO.Compression;
    using System.Net.Http.Headers;
    using System.Runtime.Serialization.Json;
    using System.ServiceModel;
    using System.Net;
    try
        string result = string.Empty;
        using (var client = new HttpClient())
            client.BaseAddress = new Uri(webapihost);
            client.DefaultRequestHeaders.Accept.Clear();
            client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/x-www-form-urlencoded"));
            client.Timeout = new TimeSpan(0, 0, 30); ;
            client.MaxResponseContentBufferSize = 2000000;
            using (HttpResponseMessage response = client.GetAsync(webapihost + apimethod + querystring).Result)
                if (response.IsSuccessStatusCode)
                    result = Decompress(response);
                    tracingService.Trace("Call Data Value [{0}]", result.ToString());
    catch (Exception simple)
        throw new InvalidPluginExecutionException("Error with simple HTTPClient x-www-form-urlencoded" + simple.ToString());
    private string Decompress(HttpResponseMessage response)
        try
            switch (response.Content.Headers.ContentEncoding.ToString().ToLower())
                case "gzip":
                        return DecompressGzip(response.Content.ReadAsStreamAsync().Result);
                case "deflate":
                        return Inflate(response.Content.ReadAsStreamAsync().Result);
                default:
                        return response.Content.ReadAsStringAsync().Result;
        catch (Exception ex)
            throw new Exception("Error decompressing: " + ex.ToString());
    private string DecompressGzip(Stream datastream)
        try
            //Create a new stream
            //decompress the original
            //get back the string (JSON)
            if (datastream != null)
                Stream decompressedStream = null;
                decompressedStream = new GZipStream(datastream, CompressionMode.Decompress, true);
                var streamReader = new StreamReader(decompressedStream);
                string stringdata = streamReader.ReadToEnd();
                decompressedStream.Dispose();
                return stringdata;
            else
                return string.Empty;
        catch (Exception ex)
            throw new Exception("Gzip error: " + ex.ToString());
    private string Inflate(Stream datastream)
        try
            if (datastream != null)
                Stream decompressedStream = null;
                decompressedStream = new DeflateStream(datastream, CompressionMode.Decompress, true);
                var streamReader = new StreamReader(decompressedStream);
                string stringdata = streamReader.ReadToEnd();
                decompressedStream.Dispose();
                return stringdata;
            else
                return string.Empty;
        catch (Exception ex)
            throw new Exception("Inflate error: " + ex.ToString());

  • How to call a Web Api from from a Visual webpart code behind?

    Hi,
    I am trying to create a visual web part in sharepoint 2013 with data received from another Web API.
    I followed the below steps.
    1. Created a Visual Web part.
    2. In the code behind(.cs) file I wrote the following code.
     async private void GetResult()
                using (var client = new HttpClient())
                    client.BaseAddress = new Uri("http://localhost:8080/");
                    client.DefaultRequestHeaders.Accept.Clear();
                    client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
                    var response = await client.GetAsync("api/Tfs/OpenEnquiriesCount");
                    var content = response.Content;
    3. When I run the application, I get security exception in the line await
    client.GetAsync()
    What is the way to achieve this? How to call a web api from share point visual web part?
    Thank you in advance.

    Hi,
    Thanks for your sharing.
    Cheers,
    Jason
    Jason Guo
    TechNet Community Support

  • MS CRM 2015 :DB locking issues while calling a web API inside an asynchronous Plugin.

    Hi,
    We have a SharePoint Integration where a Web API is deployed on SharePoint Server.We are calling this Web API in asynchronous plugin. Although the Plugin works fine. But  its causing DB issues .other custom applications like schedulers are breaking
    and showing time-out issues. 
    I analysed it and found that Web API sometime failed to instantiate the Proxy object ( Exception ::System.Net.WebException: The operation has timed out ).
    This results into the exception in  plugin OR cause of DB locking. 
    Kindly suggest how to resolve this issue.
    Thanks,
    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Thanks and Regards, Mohammad Yusuf Ansari
    http://microxrm.blogspot.in

    ianp123,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • LightSwitch with Web API OData service not accepting Action Parameters

    I created a custom OData v3 endpoint with ASP.Net Web API 2.2 (similar to http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v3/creating-an-odata-endpoint ). I also have a Lightswitch VS 2013 update 2 HTML client that uses the
    endpoint as a data source. This configuration works pretty well.
    Problem, Actions (ActionConfiguration) works except for passing in parameters (note: I followed these instructions -- http://www.asp.net/web-api/overview/odata-support-in-aspnet-web-api/odata-v3/odata-actions ). I use an ajax async HTTP request from
    the Lightswitch HTML client:
    var pUrl = 'http://localhost:58998/OData/BOMS_CATEGORY_LIST(1)/FindCatID';    
        $.ajax({
            type: 'post',       
            data: { 'CATEGORY_NAME':'Sample', 'CATEGORY_TYPE':'SUPPLY' },
            url: pUrl,       
            success: function success(result) {
                screen.propSampCatID = result.value;           
    Using Fiddler to trace, I believe the Content-Type is the problem.
    The client uses --
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    In Fiddler, if I put a code break and then copy the entire request that comes from the client and then use that verbage exactly to submit a request from Fiddler BUT replace the Content-Type with:
    Content-Type: application/json
    it works as expected.
    Unfortunately, based on testing, specifying contentType: application/json in the ajax request does not work.
    NOTE: I just updated all the packages in the OData solution but that did not fix the problem.
    1. In general, does anyone know how to fix/what I am doing wrong?
    2. If not, any work-around suggestions?
    3. I am posting this here and on the ASP.Net-Web API forum since I am not sure where the issue lies.
    4. Aside from the parameters, the Action works as expected (i.e. a result is returned to the client)
    5. The parameters Count is 0 as opposed to the parameters being null, which tells me that the Actionconfiguration is not even adding the parameters to the Dictionary as opposed to not setting the values.
    Thanks in advance,
    Vanohrmer

    OK. I seem to have this working now. I tried a bunch of things, but I think that the issue was in my Ajax request (I had to use the JSON.stringify() function on the parameters in conjunction with the contentType of application/json):
    var pUrl =
    'http://localhost:58998/OData/BOMS_CATEGORY_LIST(1)/FindCatID';   
    var pData = {
    'CATEGORY_NAME':'Sample',
    'CATEGORY_TYPE':'SUPPLY'
    $.ajax({
    type: 'post',
    processData: false,
    data: JSON.stringify(pData),
    url: pUrl,       
    success: function success(result) {
    screen.propSampCatID = result.value;           
    dataType: 'json',
    contentType: 'application/json'

  • WCF vs Web API, Deeper details?

    Before I continue, I just want to mention I have heavily researched and searched on this topic, but I need the opinion of people who have worked/and or have practical knowledge with
    regards to this topic.
    We are currently looking at developing an API so that clients can utilize this. We are definitely set on REST as opposed to SOAP, but I am still a little unclear about what exactly the difference is, if you go down to microscopic detail.
    Having a look at msdn (Choosing which technology to use), the link below:
    http://msdn.microsoft.com/en-us/library/jj823172.aspx
    The differences are clear. However, the first point states for WCF:
    Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them.
    For ASP.NET Web Api:
    HTTP only. First-class programming model for HTTP. More suitable for access from various browsers, mobile devices etc enabling wide reach.
    So, both support HTTP, but WCF supports more protocols in addition. What makes ASP.NET Web API more suitable for, I quote: "More suitable for access from various browsers, mobile devices etc enabling wide reach." if both support HTTP?
    We have until now, relied heavily on PC use. What I am getting to, and finally my question is:
    We plan on going mobile, and moving a lot more to multiple devices, browsers etc. But I just would not like to go on a service on the basis of a bit of text saying "Web API" is more suitable? IS it more efficient, less resource intensive etc.? With
    regards to future proofing? Would we be better of with WEB API and why? Just lastly, we have existing SOAP services, everything we have is built in SOAP.
    Please do not hesitate to go into detail, I am not an experienced dev, just trying to add a contribution to this project.
    Just a last couple of requirements:
    1) We plan on utilizing JSON. 2) We are limited to .NET 3.5/4. 3) Must be REST.

    Its all hype for the different products written by different product teams with incentive to get their baby adopted. Ignore them all and evaluate what you need, not what they need you to want.
    What I do know if that ASP.NET projects require a heap of infrastructure (eg IIS, and associated configuration), whereas WCF can be built as stand-alone services that just run with minimal configuration (typically registering the root URL with http.sys).
    This is the biggest win for me - recently we had some older ASP.NET projects that we had to integrate with, and what could have been an easy task with some WCF services was a huge PiTA as we had to go through a mass of setup instructions (that were not necessarily
    up to date, of course) to get something working, not to mention the installation of system services to do this.
    So you need to consider the future maintenance involved. If WebAPI requires a heap of setup, then I'd avoid it.
    There are alternatives, WWS is much more efficient as WCF and supports the same protocols (not that it matters if you're only using HTTP). If you are just building a REST API then any web server, embedded or not, will do. (eg I added Mongoose to one of my
    services recently, so now it serves http to clients as well, seamlessly and really simple though using C++ not C#).

  • Best way to write Web API

    Hi,
    I want to write the Web API ( say a json )in CQ so that I can consume this API to get some information about the content.
    I am thinking of wiriting servlets ( OSGI components ) and expose the path with selector and extension. Is this a right approach or there are some better ways to get this implementation. I need the Caching implmented as well.
    Advise on same.
    Thanks.

    post EXPLAIN PLAN
    SELECT col1,
           COUNT(*)
    FROM   tablea
    GROUP  BY col1
    HAVING COUNT(*) = (SELECT MAX(vals)
                       FROM   (SELECT col1,
                                      COUNT(*) AS vals
                               FROM   tablea
                               GROUP  BY col1
                               HAVING COUNT(*) > 1))

  • Using Application Insights in a worker role using OWIN Web API 2

    Hi,
    Great work, I'm wondering if you had any guidance on using Application Insights with a worker role hosted Web API 2 application using OWIN ?
    I'm planning to create a Delegating Handler as you don't have a Begin_Request event to issue the  ServerAnalytics.BeginRequest but anyone thoughts or guidance would be appreciated.
    We are planning to try it out over the next few days so I'll report back my findings then.
    Thanks
    John

    You can start with this (just an example, please adjust to your needs):
    public class ApplicationInsightsHandler : DelegatingHandler
    private TelemetryClient telemetryClient;
    public ApplicationInsightsHandler()
    this.telemetryClient = new TelemetryClient();
    protected override Task<HttpResponseMessage> SendAsync(
    HttpRequestMessage request, CancellationToken cancellationToken)
    DateTimeOffset start = DateTime.Now;
    return base.SendAsync(request, cancellationToken)
    .ContinueWith<HttpResponseMessage>((responseToCompleteTask) =>
    HttpResponseMessage response = responseToCompleteTask.Result;
    int statusCode = (int)response.StatusCode;
    this.telemetryClient.TrackRequest(request.RequestUri.AbsolutePath,
    start, DateTimeOffset.Now - start,
    statusCode.ToString(),
    statusCode < 400);
    return response;
    Anastasia

  • Export data to excel with EPPlus and Web Api - HELP!

    I am trying to do a simple excel file export with EPPlus and Web Api. In the html client I have a button that calls the web api and opens a new window. No error is thrown, but the result is always "file could not be downloaded".  I get the
    save file dialog but the file name is Order/ instead of the expected Orders.xls or Orders.xlsx.  Can anyone help? I'm surprised this is so difficult.
    using System.Linq;
    using System.Net.Http;
    using System.Web.Http;
    using OfficeOpenXml;
    using System.Collections.Generic;
    using System.IO;
    using System.Net.Http.Headers;
    using System.Net;
    using System.ComponentModel.DataAnnotations;
    namespace LightSwitchApplication
    public class OrdersController : ApiController
    // GET: api/Orders
    [HttpGet]
    public HttpResponseMessage Get()
    HttpResponseMessage response;
    response = Request.CreateResponse(HttpStatusCode.OK);
    MediaTypeHeaderValue mediaType = new MediaTypeHeaderValue("application/octet-stream");
    response.Content = new StreamContent(GetExcelSheet());
    response.Content.Headers.ContentType = mediaType;
    response.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment");
    response.Content.Headers.ContentDisposition.FileName = "Orders.xls";
    return response;
    public List<Order> GetOrders()
    List<Order> colOrders = new List<Order>();
    using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
    ServerApplicationContext.CreateContext())
    colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
    return colOrders;
    public MemoryStream GetExcelSheet()
    using (var package = new ExcelPackage())
    var worksheet = package.Workbook.Worksheets.Add("Orders");
    worksheet.Cells["A1"].LoadFromCollection(GetOrders(), false);
    package.Save();
    var stream = new MemoryStream(package.GetAsByteArray());
    return stream;
    This has been driving me crazy for two days!

    Making some progress.  I got the spreadsheet into a byte[] and used code from Paul Van
    Bladel's blog to make the HttpResponseMessage.  If I comment out the LightSwitch data access code, this works to export a spreadsheet from a static list to the browser from Web Api.
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Net.Http;
    using System.Net.Http.Headers;
    using System.Web.Http;
    using Microsoft.LightSwitch;
    using Microsoft.LightSwitch.Details;
    using OfficeOpenXml;
    using System.ComponentModel.DataAnnotations;
    namespace LightSwitchApplication
    public class Order
    [Key]
    public int Id { get; set; }
    public string OrderNumber { get; set; }
    public class OrdersController : ApiController
    // GET: api/Orders
    [HttpGet]
    public HttpResponseMessage Download()
    MediaTypeHeaderValue mediaType =
    MediaTypeHeaderValue.Parse("application/octet-stream");
    byte[] excelFile = ExcelSheet();
    string fileName = "Orders.xlsx";
    MemoryStream memoryStream = new MemoryStream(excelFile);
    HttpResponseMessage response =
    response = Request.CreateResponse(HttpStatusCode.OK);
    response.Content = new StreamContent(memoryStream);
    response.Content.Headers.ContentType = mediaType;
    response.Content.Headers.ContentDisposition =
    new ContentDispositionHeaderValue("fileName") { FileName = fileName };
    return response;
    public List<Order> Orders()
    List<Order> orders = new List<Order>();
    orders.Add(new Order { Id = 1, OrderNumber = "123456789" });
    orders.Add(new Order { Id = 2, OrderNumber = "987654321" });
    return orders;
    // this doesn't work
    //public List<Order> Orders()
    // List<Order> colOrders = new List<Order>();
    // using (ServerApplicationContext ctx = ServerApplicationContext.Current ??
    // ServerApplicationContext.CreateContext())
    // colOrders = ctx.DataWorkspace.Data.Orders.GetQuery().Execute().ToList();
    // return colOrders;
    public byte[] ExcelSheet()
    using (var package = new ExcelPackage())
    var worksheet = package.Workbook.Worksheets.Add("Orders");
    worksheet.Cells["A1"].LoadFromCollection(Orders(), false);
    byte[] bytes = package.GetAsByteArray();
    return bytes;
    The problem is that the LightSwitch query (commented out in the code above) is trying to load navigation properties for the orders.  Error: "It is not valid to access this object on the current thread."  How do I solve this? 

  • Getting error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure

    I have create Logic App under Azure App Services, I am getting
    error while using HTTP connector and calling POST action to a Web API which is deployed as website on Azure.
    Following are the screen shots:
    Login App Connector Diagram:
    hema

    Marking as answered since no response on request for more information - assuming that you found what was wrong in the inputs. Let us know if you're still having trouble.
    http://twitter.com/joshtwist

  • Why Web API 2 has RouteConfig.cs file?

    I m working on Web API project, and it is using WebApiConfig.cs file
    to defined routs for Web API.
    Web API fold RouteConfig.cs file.
    I have googled and they say RouteConfig.cs is
    for MVC routing. It is actually a confusing statement. Can you please guide why WebAPI has RouteConfig.cs file
    ? Why would one need MVC routing in Web API ? What function it will do ?
    Thanks for your help and guidance.

    The RouteConfig.cs file
    isn't required for Web API. It is included by default in new Web API projects because that template also includes an MVC webpage (for the index page that appears when you open the project in a browser).
    If you delete both the RouteConfig.cs and
    the HomeController.cs file
    (as well as modify Global.asax.cs to
    not call RouteConfig.RegisterRoutes()),
    then your project will still compile and the API controllers will still work fine, you will just be missing a pretty homepage.
    Note also that MVC Areas have their own MVC routing and do not use the global MVC routing, which is why the /Help page
    still works even when RouteConfig.cs has
    been removed.

Maybe you are looking for

  • Process Batch in IS Mills

    Hi, Is there internal batch number assignment possible for Process Batches in IS Mills system? Best Regards Ramakanth

  • Trying to account for dozens of unidentified TB on SSD

    I am working  with a late 2009 27" 2.66Ghz iMac running OS X 10.9.3 It is fitted with 16GB RAM. the Operating system and applications are on a 240Gb OWC 3G SSD. Issue: When I go to SSD > users > user name and use the 'get info" tool it tells me that

  • Mavericks 10.9.2 Energy Saver and Downloads

    I noticed App Store downloads stop when closing the lid on my rMBP late 2013 running Mavericks 10.9.2 even though I have the following Energy Saver settings while pluged in to AC power: Checked: Prevent computer from sleeping automatically when the d

  • Wireless Site survey tools and Software requirement

    Dears,  I have Cisco wireless site survey to distributed and selected Wireless AP on big building contain 20 floor,  what are the prerequisites and is there any free tool from Cisco or third party software , that can help my to upload all building ma

  • Disabled user - all identifiers are hyphens

    GMS 2.0.1 Build 53 I have a disabled user in my list. Under details, the full name, mobile user, groupwise email, ldap id, and poa are all listed as a hyphen "-". Initialized says unknown and sync is set to disabled. I tried to use DSAPP to remove it