azure-web-sites

.Net Core web api not working after deployed to Azure

梦想与她 提交于 2019-12-07 14:24:55
问题 I do have a simple .Net Core web api application, the one made by Visual Studio when a new project is created. I want to deploy it to an Azure App Service via FTP (part of a TFS 2017 build job), which is successful: However, when trying a GET like http://somerandomname.azurewebsites.net/api/values all I get is a 404 with the text The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. From Kudu I get the following error: What am I missing? 回答1:

Url Rewrite Provider on Azure Web App

半腔热情 提交于 2019-12-07 14:05:03
问题 We use the DbProvider from the URL Rewrite Extensibility Samples for allow our rewrite rules to use db values. I'm trying to move this website to an Azure Web App. After deploying to a Windows Azure Web App, I'm getting this error: HTTP Error 500.50 - URL Rewrite Module Error. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f' or one of its dependencies. The system cannot

How to deal with the recent Azure outage (Azure Websites)?

孤者浪人 提交于 2019-12-07 13:11:41
问题 We have TONS of websites hosted on Azure. Our VMs appear to be running now, but many of our Azure Websites are not. In an effort to bring our sites back up sooner than later, we have tried scaling UP, OUT, and changing our hosting plan, to no avail. Is there a way to force an Azure Website VM to move to another (working) datacenter? We don't want to destroy the site and bring it back up, as we will be forced to update DNS, which will cause an even longer delay in service to our customers. Any

Querying Azure Web Apps Version Number

可紊 提交于 2019-12-07 13:00:52
问题 We are deploying to Azure Web App slots using VSTS. We want a way for the website to know its build number for versioning purpose. We thought of setting the VSTS build as an environment variable during the release process as the Azure Web App website has access to the environment variable. And we also noticed that VSTS warns you before releasing to VSTS that you are releasing the same build again, so there must be a way that VSTS is querying Azure Web App for this. Is there a standard way of

npm 3.x install fails on rename long paths in Windows/Azure

*爱你&永不变心* 提交于 2019-12-07 12:35:37
问题 npm 3.x install fails on rename long paths in Windows/Azure when deploying node.js due to long paths: npm ERR! EINVAL: invalid argument, rename 'D:\home\site\wwwroot\node_modules\azure_util\node_modules\pkgcloud\node_modules\gcloud\node_modules\gapitoken\node_modules\jws\node_modules\base64url\node_modules\meow\node_modules\indent-string\node_modules\repeating\node_modules\is-finite\node_modules\number-is-nan' -> 'D:\home\site\wwwroot\node_modules\number-is-nan' Is there away to overcome it

Increasing the maximum upload size limit for a Dockerized ASP.NET Core site running on Azure?

隐身守侯 提交于 2019-12-07 12:08:43
问题 Here is the architecture of the application: Web API written in ASP.NET Core. Dockerfile builds the Web application using microsoft/dotnet:2.1-sdk and executes the API using microsoft/dotnet:aspnetcore-rumtime . The app is compiled and placed into /app . The command executed to start the API is: ENTRYPOINT ["dotnet", "/app/WebAPI.dll"] This API is deployed to an Azure Container Registry (Docker registry). An Azure App Service is used to host the API. The App Service is configured to pull the

Is Azure Traffic manager is reliable for failover? what are other problems I should be worried about?

偶尔善良 提交于 2019-12-07 08:44:30
问题 I am planning to use Azure Traffic manager to do a failover of my app running on one Azure zone to Azure zone. I need some suggestion, if that is the correct approach to do a failover ? We have seen issue with Azure that, most of the services in one region goes down for few hours. Although I understand that Azure traffic manager is not associated with the region. But is it possible that Azure traffic manager goes down or that traffic manager endpoint is not reachable although my backend

Deploy an ASP.net MVC website to a subfolder of an Azure website?

女生的网名这么多〃 提交于 2019-12-07 07:56:42
问题 I have an asp.net mvc website that I'd like to deploy to Azure (preferably via GitHub deployment) so that it's accessed as subfolder of the main domain. e.g. http://example.com/mymvcsite/ Ideally I'd like the website to be completely self-contained under the subfolder. As if it was configured to be a good old-fashioned IIS application folder. Ie I don't wanty to build a domain mvc website for mydomain.com that just happens to do all it's business under the /mymvcsite/ subfolder path. I'm

Setting ASP.Net 5 Authentication AppId and AppSecret Configuration in Azure Websites

戏子无情 提交于 2019-12-07 07:52:29
I'm getting an Error 500 due to missing AppId and AppSecret on my Azure websites deployment. How do I set this up on the server? Copying the project.json file seems to be insufficient. On the development machine, the AppId and AppSecret values were added to configuration through SecretManager . UPDATE: I have now hardcoded the AppId and AppSecret values in code as the way its done in previous versions and of course this still works. Eventually, I'd like to still be able to use SecretManager (or something similar) for setting the config values on the server, for obvious security reasons.

Cannot Delete All Azure Website Connection Strings

限于喜欢 提交于 2019-12-07 07:03:17
问题 For a website my team are currently working on we're trying to write some PowerShell automation to temporarily override a connection string which is otherwise usually in Web.config, and then at a later point delete it. However, using both the PowerShell cmdlets and the Azure REST APIs, we don't seem to be able to ever reset the connection strings set to be empty. Whenever we try to delete it either the command says it succeeds but doesn't delete it, or the requests is rejected as invalid. It