Cannot edit a web application
Hi I have asp.net web application, I try to edit the code but the content of the site does not change, I tried to convert the web application to a web site but another error appears instead of displaying GDI+ graphics showing a black screen and one…
WebAPI Get autogenerated ID of a just created (posted) record
Good afternoon, I have a web API running just fine and a Xamarin forms app on top of it. There I want to create 1:N relation which is fine in the model but I have the following problem: (I don't want to post all the code here so I bring it down to…
Caching Token in SOAP-based Web Service
I developed a SOAP-based web service for internal consumption. It takes a SOAP-based web request and converts it to a JSON-based external, third-party RESTful web API request. It then takes the JSON-based external, third-party RESTful web API response…
how to create api to get orders from Shopify and post to my database
I want to build an api , where I should be able to get list of new orders from shopify each time an order is created in shopify and post that order details into my database. I have a rough idea on api, but not sure how to start to work on it. Can…
Event code: 3005 An unhandled exception has occurred.
Hi all I keep getting a warning which I don't understand how to get rid off. The warning goes like this & frequently stop my website. Event code: 3005 Event message: An unhandled exception has occurred. Event time: 3/18/2021 3:40:11 PM Event time…
Need Help on ASP.net WEBAPI 2 with Jquery with Azure AD Authentication
Hi All, I was trying to do some POC on the Jquery/ Angular JS as FrontEnd and ASP.net WebAPI 2 (not Asp.net COre) as the middleware and it should be Authenticated with Azure Ad credentials. I am able to login to the UI and API individually, however…
Recording Web Test For MS Dynamics
Hi, I am recording web test for Ms Dynamics using Fiddler. While recording a series of navigation in term of creation of Entity record. I am seeing many api call such as: /api/data/v9.0/GetClientMetadata /api/data/v9.0/roles …
ASP.Net: isSpecified convention for JSON
I have an ASP.Net webservice, that uses XML as the input and output format for its API. I am using the PropertySpecified convention. If, for example, my XML contains a <FirstName> tag, my POCO will contain that tag's value, and the POCO's…
HttpClient.PostAsync - System.Net.Http.Formatting exception
I am running a .NET Standard 2 project. I have added the Microsoft.AspNet.WebApi.Client (5.2.7) package. My call to HttpClient.GetAsync are working fine, but as soon as I try HttpClient.PostAsync, HttpClient.PostAsJsonAsync (or event the PutAsync…
ASP.NET Web API Error: "Attempted to divide by zero" when parameters exceed 29
Using VS 2019 c# 4.8 I have an API containing a lot of parameters as a test. It seems if I exceed 29 parameters I will get this error: Exception Details: System.DivideByZeroException: Attempted to divide by zero. Source Error: Line 18: …
How to call web method in asp.net application
Greetings, have designed asp.net application , Requirement : I have designed web method name "test()" on default.aspx page , want to call on using ajax. Solution required : how can I call this method from client side using ajax…
Caching Web Method Response by Request ID
I developed a SOAP-based web service. I wish to log every request. I also wish to cache its response by its request ID, which is distinctly unique. Should the request be repeated within the hour, I want it to return the cached response. My…
Asp.Net Web API : Call Back Handler
Hi, I am looking on how to implement a CallBack Handler to a Web API Controller. I basically need to process the response send back by my external client. I basically want to call the WebAPI controller from my portal so that I can place/initiate a…
Asp.net web Api with ODATA returns 406 Not Acceptable
I am trying to implement a web API endpoint that returns ODATA. But when I am trying to hit the endpoint the code in the method was executing successfully but getting 406 Not Acceptable error. Below is my code Controller: using…
Unable to access HTTP based Web Api from HTTPS based SharePoint site
My site collection is accessible as: https://myserver/sites/cfp I have a Web API with just one method which is accessible as: http://localhost:10000/api/CFP/GetCustomerName I can access the above API using Jquery/Ajax from an HTML page as well as…
Get the data for Custom Fields in Project for the web
Hi, We are trying to report on project for the web data in which we use custom fields. We are getting the data using odata webapi. We cannot find in which api call the data is present. I tired to connect to cds database using sql server and…
best practice to configure baseaddress URI in MVC Core
Hi I have created an MVC and Web Api project. When consuming web Api endpoints I am using the complete Uri as showing below. string apiUrl = "http://localhost:57025/api/Mypage; ON every single data class I am keep adding the full uri…
ASP.NET 4.8 WebAPI - streaming large file upload fails with HTTP 2
Hello, I have problems with streaming large file upload in ASP.NET 4.8 Web API project. I'm using custom WebHostBufferPolicySelector to disable buffering of input stream (as described here:…