This is for a school project.
I have 3 parts to this project. A frontend in React, an http server in C# and a database in mysql. Up until now, they were all running locally. But because of this Covid thing, the teachers want us to host on azure so they can test it from home.
I already have the database on azure working.
Now I wanted to move the HTTP server to Azure, so I tried and deploy it from within visual studio, that created a webjob. However, checking the logs show it is throwing the "Acess Denied" exception on httplistener.start().
Keep in mind basically all http requests require the program to consult the database. I am using the standard sqlconnector from oracle.
So basically what I need to do is send http requests from react (I'm using the fetch API) to this http server.
Is a webjob even the right thing to do?
This is the code that starts the HTTP listener (port is 8080).
listener = new HttpListener();
listener.Prefixes.Add("https://trabalholi4.azurewebsites.net:" + port.ToString() + "/");
listener.Start();