Mohsin Ali Ayub
Mohsin Ali Ayub

Reputation: 102

Access FTP Hosted Web API in C#

I have created a Web API in ASP.NET. I deployed this API in Azure Web App and I was able to use controllers from web API like this http://.azurewebsites.net/api/{controller}.

Now I have deployed the Web API on an FTP server and I am unable to access my controllers like I did before. Any idea on how to do it?

I would really appreciate your help as I am new to FTP.

Thanks in advance.

Upvotes: 0

Views: 1072

Answers (1)

Juan Tarquino
Juan Tarquino

Reputation: 987

Just because you can upload/deploy an asp.net site via FTP, it does not mean that the server can automatically run the site and start serving those endpoints (/api/{controller}) automatically.

You need to clarify with whoever is hosting your FTP server if such server can also host asp.net websites. If so, you need to ask them in what particular folder within that server you need to upload your site to.

Upvotes: 1

Related Questions