All Questions
Tagged with asp.net-web-api-routing iis
13 questions
0
votes
0
answers
183
views
Unexplained delay in ASP.NET WebAPI in hop from web app directory to action route
Under an 'apps' web site, we've created a web application through docker/powershell using:
New-WebApplication -Name 'service_b' -Site 'apps' -PhysicalPath 'C:\ServiceB.API' -ApplicationPool '...
0
votes
2
answers
685
views
Issue after deploying ASP.NET Web API to production
I tested ASP.NET Web API in local environment with IIS Express and on other server with full IIS. At both places, token api and post api is working fine. I am using System.Web.Http namespace as ...
1
vote
1
answer
939
views
Webapi 404 on windows server 2016 IIS 10
We have a webapi app that we were hosting on Windows Server Standard in IIS 7. We recently migrated it to AWS with Windows Server 2016 IIS 10. For some reason it no longer works. Every route ...
1
vote
1
answer
2k
views
How to protect static content in Web API
Consider this scenario: I have a REST API built with Web API 2.x and authentication is managed by ASP.NET Identity. Users can upload attachments as part of their records, which are all stored on disk ...
1
vote
1
answer
1k
views
MVC Web Api error 403.14
I am doing an MVC5 Web API Application. I am doing an simple example.
Create an Web Asp.Net web Application.
Select Empty and API.
Then I add a Api2 Controller called Home, and add a Simple Method ...
1
vote
1
answer
775
views
Azure IIS routing with Angular2 --> 404
We have a website on Azure using a REST back-end written in C# and a front-end written in Angular2.
When I click on menus or buttons in the webpages the correct page is opened and the url is changed ...
0
votes
0
answers
951
views
How to resolve the never ending web api request
I am a beginner in ASP.NET Web Api. So i started with this small project from pluralsight. I had the project downloaded and the only problem is that whenever i started the web api and as soon as i ...
1
vote
1
answer
2k
views
WebApiConfig.Register Clears routes defined by RouteConfig.RegisterRoutes apon deployment
I'm on struggle street here, When I try to add API controllers it seems to destroy all my MVC base routes and area routes.
On my application start I call
protected void Application_Start()
{
...
1
vote
2
answers
716
views
ASP.Net WebApi MapHttpRoute works on Visual Studio but doesn't work on IIS in a WebForm application
I have a this simple route in Application_Start of Global.asax:
RouteTable.Routes.MapHttpRoute("MyApi", "api/{controller}/{id}");
and this is the folder path of controller and the page that wants to ...
1
vote
1
answer
237
views
Why would a Web API entity collection GET work but the single entity GET return 404.0?
We have an OData 4 WebAPI controller with two GET methods, one that returns a Thing entity collection (IQueryable<Thing>) and one that returns a single Thing (SingleResult<Thing>) based on ...
2
votes
1
answer
516
views
Routing fails when api is created as a web application under another site
I developed a rest api using ASP.net web api. When I deploy this rest api on iis, I need to create it as a web application under an asp.net web site. When I was deploying the rest api as a new web ...
1
vote
2
answers
372
views
Blogengine localhost working, server not
Blogengine works perfectly on localhost, but when I transfer it to the server, setting App_Data to read/write, I cannot save settings, user info, actually anything but adding new pages.
I downloaded ...
2
votes
0
answers
955
views
MVC 4 Web Api Route 404 issue
I have a plain-vanilla MVC 4 Web Api project created using VS2012.
The (/api/Values) works out-of-the-box on the localhost but NOT when deployed on IIS (packages created using the standard "Publish..."...