I am working with asp.net MVC with web API
I create an account in Microsoft azure
my API successfully publish but I don't know which one is select from below
then I click the link and display below 2 part one is deployment center and quick start I don't know which one is select
what should I do next?
help
By default, Azure provides us a simple page hostingstart.html when you create App Service. It's the default page when you get redirected when you access the url.
And, I understand you have published the .Net Framework - Web API. And, you clicked on the App Service and navigated to the root which is expected.
Now, you need to type-in the Controllername/Actionmethod name which should look something as shown below.
https://webapiazuredemo.azurewebsites.net/Home/Index
Can you show the folder structure of the app?
Update: It looks like the database was not created in Azure and so the APIs were throwing an error. Once you create database and it's objects properly in Azure, change the connection string in the code. It should work after that.
Related
I've acquired a 1&1 Windows Business Hosting which allows to deploy ASP.NET Core applications (so yeah, I have no access to IIS solutions of building as application stuff or that kind of things I've seen in other posts). I wanted to deploy a web and an API in different subfolders within the 1&1 server I've acquired.
What I want to achieve is the following:
Imagine that my domain is https://myDomain. com.
If a user access directly that URL he should see a specific page of the Angular Web App. However, if the called is https://myDomain. com/api/controllerName it should do whatever I have programmed in that controller of the Web API.
I want to have the folder structure something like this:
But it is also valid if I manage to get it like this:
Is any of these two cases even possible to be done? If possible, how I should proceed for being able to do it? I don't have a lot of knowledge in these topics related to web deployment.
What I have managed to do up until now:
If I deploy just the ASP.NET Core Web API outside the subfolder it works with no issues. If I deploy just the ASP.NET Core with Angular outside the subfolder it also works. My issue is that I'm unable to get them both to work at the same time when at least one of them is in a subfolder.
Alternatives on how to achieve this are also welcome!
Thanks in advance :)
You can deploy ASP.NET Core Web API and ASP.NET Core with Angular in two folders as shown in the image below.
These two folders are virtual directories in IIS. If you want to specify which app to access by default, you can modify the rewrite rule in web.config under the wwwroot folder.
I have to make a very basic website as a final project in a intro web design class, but because I had some free time and I like programming I made a simple web application for the website. How do I access the web application from a page on the website? I've tried googling it, but I don't know if I am phrasing it correctly or not because it never returns what I am looking for.
I've been doing more research and learned that in order to access a web app I need to deploy it to the server. I haven't had time to mess around with this, so I don't know more than that, but even when it is deployed to (I would assume) the same server as my website how would I access it via a web page on the site?
maybe this is the answer you were trying to find on google ,i do not full understand what you mean, but i hope this what you were looking for (got from google)Open Access, and select a web app template. (Web app templates have a picture of a globe in the background.) Tip: If you don't see the template you want, under the Search for online templates box, select Databases. Then, to find database templates on Office.com, enter one or more keywords in the search box.
I am building a very simple maintenance app for a website hosted on Azure. I want to display a few details such as website online status (on/off), server location, latest deployment(s) and so forth. So rather then browsing the azure portal I want to see a few things on a single page in the maintenance app.
https://resources.azure.com shows off the azure management API I want to use.
The question is how can I get back a JSON object with information displayed above?
A call would be made at the following url: https://management.azure.com/subscriptions/subscription_id/resourceGroups/Default-Web-NorthEurope/providers/Microsoft.Web/sites/my-website?api-version=2014-06-01
Apart from the API endpoints, the application above doesn't tell me much.
For example how does the authentication object needed looks like (the one used during a GET/POST)? I am building this in C#.
This helped me so far :
http://blogs.msdn.com/b/tomholl/archive/2014/11/25/unattended-authentication-to-azure-management-apis-with-azure-active-directory.aspx.
though I have still having issue on udating it but I'm getting the json data.
I'm running a mobile services instance (C# backend) and besides all the other functionality, I also need to host a few html pages and their respective css files.
Here is what I tried:
If I browse to http://<service-url>/myfile.html I get an 404 error. So I
created a myfile.html file and stuck it in the project root folder. Now, instead of 404, I get a blank page.
I tried going through the ContentController by putting the html file in <project root>\api\Content\Views\myfile.html. When I browse to http://<service-url>/api/Content/Views/myfile.html I get a blank page.
Update Dec, 2015
Now that Microsoft published App Services you should probably use that - create a mobile app and a web app and you're done.
Don't try to hack around with Mobile Services.
It always felt to me that Mobile Services were a half baked solution. It is more a competitor to Parse.com and similar BaaS and was missing a lot of the stuff you'd expect from an Azure service.
Update
The solution below does not work but it does teach you a lot about how the mobile service is built. The reason the solution does not work is that Azure refuses to upload the static files to the mobile service instance.
You start by understanding what is Owin and that mobile services are using one. This post helped me a lot.
Then you look in this link which explains how to build a file server using katana.
Here are short instructions:
Install nuget package Microsoft.Owin.StaticFiles.
Plug into the OwinAppBuilder and instruct it to use Katana's file server just before you run the original (put this in WebApiConfig.cs):
var originalAppBuilder = StartupOwinAppBuilder.OwinAppBuilder;
StartupOwinAppBuilder.Initialize(builder =>
{
builder.UseFileServer("/static");
originalAppBuilder(builder);
}
Create a static folder in your project root, put some files there and browse to <your service url>/static/somefile.html.
we have a web application that users can take online reports from ou ERP system data... And we have another web application that is used by our teachers and employees.
We can't change the ERP web app because its a closed DLL, in this case we made some extended functionality in our custom internal web app and we are willing to put this functionality on the "menu" of the ERP web app.
I need to integrate the two applications in the following way:
When I click in the menu of the ERP web app, I want that our internal web app assert that the click have come from our ERP web app and not typed in the URL, this is possible?
Consider the ServerVariable called HTTP_REFERER below is a link to some documentation
http://www.w3schools.com/asp/coll_servervariables.asp
Look for the server variable HTTP_REFERER in your internal app's request. You should be able to compare that against a known value.