azure-web-sites

How to publish an Azure web site (xxx.azurewebsites.net) with PowerShell?

守給你的承諾、 提交于 2019-12-07 23:10:19
问题 I have my web site built ready in a folder. And I know how to use Azure PowerShell to create a site. In Azure management portal, I just need to copy the site files through FTP. But I don't know how to use PowerShell to push my web site files to Azure. Could someone shed some light? 回答1: You can use the Publish-AzureWebsiteProject cmdlet to do this. For example, suppose you have your Azure Website already created at contosows.azurewebsites.net . On your local computer running Visual Studio

Azure websites complaining Role environment . FAILED TO INITIALIZE on startup

旧街凉风 提交于 2019-12-07 22:28:50
问题 my question is similar to Azure websites complaining Role environment . FAILED TO INITIALIZE Error that I see in the Azure App Service Support Event Viewer: " 9236 w3wp Role environment . FAILED TO INITIALIZE. hr: -2147024891 " It happens every single time on startup of the website. Other than that - website functions just fine. Except, randomly (it might take 10-30 minutes) it stops with "The application was terminated." (i see this error through azure application logs). I am not sure if

Enable Azure Website Application Diagnostics

白昼怎懂夜的黑 提交于 2019-12-07 22:13:12
问题 I have a Windows Azure Website (built with ASP.NET Web Pages), and in the configuration have enabled "Application Diagnostics" for both Blob storage and file storage: I've then added some Trace statements to a Razor page to test it out @{ System.Diagnostics.Trace.TraceInformation("INFORMATION"); System.Diagnostics.Trace.TraceWarning("WARNING"); System.Diagnostics.Trace.TraceError("ERROR"); } However, this results in no logs at all, either in the file system or the blob. For good measure I

Multilingual website: Azure deployment different behavior than localhost

。_饼干妹妹 提交于 2019-12-07 21:53:04
问题 Edit: the full code can be found in the github repository. I have build a ASP.NET MVC5 multilingual application following this post (1) and this MVC4 code (2) for multilingual websites. On (2) it uses a "trick" to solve the "I want the full X.cshtml rendered in language Y" problem: it adds a suffix ViewName.fr.cshtml so the view is automatically redirected to the correct language. This is the code for that, which I think is the only part of the code relevant to my problem: public class

How to deploy ASP.NET MVC4 application with SQL Server CE to Azure website

こ雲淡風輕ζ 提交于 2019-12-07 19:07:27
问题 I deployed a ASP.NET MVC4 app with SQL Server CE database, but I'm getting Sorry, an error occurred while processing your request I am using VS2012 to publish this app to azure website. How can I solve this issue? Thanks. 回答1: To summarize and so an answer can get marked on this to help the next person that comes by. When running into issues on azure-web-sites FTP is a handy debugging tool which enables you to: Verify that the dll exists in your bin directory Sometimes the .gitignore file

What parameters are showing undefined in this dnvm.ps1 command? Deployment to Azure Web Site Fails as a result

感情迁移 提交于 2019-12-07 16:48:53
问题 I have been developing a new ASP.NET 5 (MVC 6) website on Linux. I am using Git with Azure and have been able to successfully push it to SCM. However my deployment fails due to some undefined parameters. Hoping someone can tell me what the undefined parameters are in the command shown in the terminal output so I can modify the script and finish this process. I run the command # git push azure master The following is the output, auto deployment should happen after a successful commit. The

Azure WebApp not loading my fonts

拜拜、爱过 提交于 2019-12-07 15:38:02
问题 I have a little problem with my WebApp on Azure. My custom fonts are rendered properly on my localhost, but when I deploy my project to Azure and visit the WebSite, the WebBrowser is notifying me that my fonts couldn't be found (error 404). But when I visit the FTP Server from Azure Portal I can find those Fonts. I also tried solution from this link: http://www.codepal.co.uk/show/WOFF_files_return_404_in_Azure_Web_Sites But sadly without any progress. 回答1: I have a little problem with my

Identity Server by leastprivilege doesn't work properly on Azure

橙三吉。 提交于 2019-12-07 15:28:46
问题 I am trying to implement an architecture that follows the OAUTH2/OIDC protocol. In order to do that, I have STS(Identity Server v3 by leastprivilege), ASP.NET WebApi and ASP.NET MVC application for a client. My goal was to have the STS and REST service hosted on Azure so different clients can use them as public services. So far so good. Everything seemed to work smoothly and perfectly before I decided to add a new client that uses one of the redirection flows - Authorization Code flow. I

Azure slow response time in Django web app

99封情书 提交于 2019-12-07 15:02:35
问题 For a long time I've been managing an Azure web site in testing, staging and production environments. Initially, all of them were free and I noticed the server sometimes was very slow to respond to async requests. Some requests took 15-30 seconds to complete on the Azure web site. A local copy running on IIS worked with no problem and request times ranged from 75ms to 400ms. At first I thought the problem with the Azure websites was the 'Always on' feature but after upgrading the production

The entity type ApplicationUser is not part of the model for the current context. Used two different databases at beginning of project

痞子三分冷 提交于 2019-12-07 14:47:35
问题 I've created an MVC 4 application using entity framework to read and write data to a database I am hosting on an Azure database. The Azure database was supposed to keep the application data AND the login data for the application. However, when I first created the application, I had forgotten to remove the connection string to my local machine. Therefore, I had created an application that used two different databases in two different locations. One database was for the application data (Azure)