children could not be evaluated error - calling Web API from JQuery
I created a Web API and I'm sending the data back in XML format. I'm calling the API from JQuery on an HTM page. When I debug it, I get the following error the URL call. [children could not be...
View ArticleUpload method is it correct?
I have a method that will upload files to AWS S3 - is this method correct?[HttpPost] publicActionResult GetDocumentCollection(HttpPostedFileBase[] _GetFiles) { ------ upload files to Cloud...
View ArticleNeed a list with the actual files or arraylist of files
I have a method and I need to pass a group files to another method, please help me resolve this...[System.Web.Http.HttpPost]public ActionResult GetDocon(FormCollection Form) { var Model = new...
View ArticleTesting a web service with a netTCP binding
Hi,I am a tester trying to test a webservice. So thought of giving the developer forum a shot. We have a webservice which has a netTCP binding. Tools like SAOP UI,HP service tests does not support...
View Articleget token OAuthor from linkedIn ?
hi,first, you can see the code below:var client = new HttpClient(); client.BaseAddress = new Uri("https://www.linkedin.com/"); var responseLinkedIn =...
View ArticleDefaultHttpControllerSelector not finding any controller, "Not Found" response
I am having trouble using the DefaultHttpControllerSelector and HttpConfiguration classes. Take a look at the simple example code below.I am trying to create a DefaultHttpControllerSelector that will...
View ArticleAccess is denied for everything but "localhost"
In a WEB API 2 OWIN self host project I get "Access is denied" exception thrown for anything other then localhost in:string baseUrl = "http://localhost:2500";WebApp.Start<Startup>(baseUrl);If I...
View ArticleStop Model Binding after the List count > 15000
What is the best way to stop model binding after the List<object> being bond count is > 15000? In other words, we do not want to bind 30000 objects in one request.
View ArticleMy Web Api client is blocked after a single GET request, why?
Hello,I wrote a simple client for my web service with WebApi as explained in this tutorial: Calling a web api from a ..NET clientThe first request (GET a table) is executed problem-fee; table data is...
View ArticleConsume Web API in MVC application throgh proxy class
HI,I am trying implement the Web API service for MVC application. But have to implement in layer wise formation likecustomer(cshtml) ----call---> EnviormentController(MVC) ---call--->...
View ArticleGet Cnn string from model...
I am trying to get a connection string from the web.config file and keep getting an null error message;config modelpublic static class AConfig { public static string getFileNe() {...
View Articleuploading multiple large files and getting max error message...
I am trying to upload many files, and I am getting the following error message:Error Message: System.Web.HttpException: Maximum request length exceeded.any ideal how to fix this error message when...
View ArticleHelp passing files to another method...
I have a method where I am trying to pass a collection of one or more files to another method. I need help passing files to another method. The method SendFiles_AWSS3 return aThree-dimensional array...
View ArticleWhich project template to use for building a new Restful web services?
Hi, I'm using VS2012.These 2 links shows 2 different project templates to use for building a Restful API. Which one should I use and follow? The first one creates a MVC project and the 2nd one I...
View ArticleWeb API 2.0 - Host and deploy Web API 2.0 in production environment
Hello everyone,I'm about to deploy one of our .Net Web API 2.0 web service in coming week. I'm wondering what security measures needs to be considered while deploying it over the server.Server...
View Articlethe issue of (de)serializer in asp.net web api
Hi,I am using mongondb and asp.net mvc 4, i created a POCOs class to generate tables on mongodb, the every class have DataContract,DataMemeber attribute. For some fields of POCOs class, i would like...
View ArticleWeb API security and authentication system
i want to develop layer with web api which will co exist in our asp.net web application. from various part of our web apps we will call web api function from server side code and client side jquery...
View ArticleServing additional files through web api project
I am updating a webpage to web api. The original webpage was acting like a web service by accepting an xml that provided variables values to the webpage onload which in turn produced files in an output...
View ArticleIntegrating or communicating Asp.net webapi models with business logic
how do i write a service in Asp.net webapi in which models should access my business logic and get the data. i donot want to expose my data with the third party so i should go with the 3 tier...
View Articlecontroller's method return file web api ?
Hi,I am build a web api cors, i have a <img src="http://localhost:89/api/file/{id}" />, you can see the src attribute which invoke a get method of FileController.I tried to the code as below, it...
View Article