azure-web-sites

SignalR CryptographicException on AzureWebsites

偶尔善良 提交于 2019-12-01 06:16:11
问题 I got this exception with SignalR, deployed in Azure WebSites. It works fine in debug environment. It's SignalR 1.0.1 and I use .NET MVC and WebApi The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

NotificationHub Push Notification returns : The Token obtained from the Token Provider is wrong

梦想的初衷 提交于 2019-12-01 06:16:00
问题 I have Wp8.1 Silverlight app that receives push notification (WNS) from Mobileservice (the old azure service). I therefore wanted to update to the new service because of the new features. I have now created/upgraded a new server to use App Service - Mobile App. And tested push notification with the sample app from azure (everything works). Going back to my app WP8.1 -> Adding the new package Microsoft.Azure.Mobile.Client through NuGet (2.0.1), there is the issue that the Microsoft

Azure Web App Trace logs not appearing in log

不羁岁月 提交于 2019-12-01 06:15:00
I am using Azure Web App Application Logging, and I followed the online tutorial, and made the following setup: I get an exception and in my catch block I have the following code: Trace.TraceError("abc"); Trace.TraceInformation("abc"); Trace.TraceWarning("abc"); Trace.WriteLine("abc"); Console.WriteLine("abc"); In the logs I get this: 2017-02-13 03:30:14 ~1ENGINEMAILERAPI GET /api/vfs/site/wwwroot/ _=1486950157594&X-ARR-LOG-ID=149fee3f-8da3-460e-816e-10e7a4b95f1d 443 - 121.121.23.217 Mozilla/5.0+(Windows+NT+6.3;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/56.0.2924.87+Safari/537

Add a domain to an Azure web site via code

馋奶兔 提交于 2019-12-01 06:11:12
How do I programmatically add an additional domain name to an Azure Web Site? Hopefully there .NET API for this that I missed, perhaps in the Azure SDK or a NuGet package. Or perhaps there is a REST interface. Simon Opelt The Windows Azure Web Sites Management REST API should provide the functionality you are looking for. The property Site.HostNames property of Windows Azure Web Site can be used to provide additional domain names. The properties can be provided during creation of a web site or when updating. Please also take note of the general info on Configuring a custom domain name for a

Visual Studio Online continuous deployment to Azure Website with publish profile

◇◆丶佛笑我妖孽 提交于 2019-12-01 06:01:05
I am using Visual Studio Online to deploy my project continuously after the CI build pass. However I have to use a publish profile to build the production web.config transform so that the deployed website will be using the production DB instead of dev DB. I have followed Scott Hanselman's blog post to add the MSBuild arguments in the CI build definition. My arguments are like this: /p:DeployOnBuild=true /p:PublishProfile=[publish profile name] /p:AllowUntrustedCertificate=true /p:UserName=[credentials obtained from Azure Website portal] /p:Password=[from the portal as well] It seems working,

Visual Studio Online Build treats git output as errors

风流意气都作罢 提交于 2019-12-01 05:53:35
问题 My build in Visual Studio Online tries to deploy my Azure web site via Kudu. The script works fine, and deployment goes through, but VSO treats git output as errors for some reason, and declares the whole build failed. Take a look at the screenshot below. Some details: This is a "new scripted" build, not a XAML-defined one. Build definition has just one step, which executes a PowerShell script, which runs F# FAKE (not sure if this is relevant). When I run the same script on my local machine,

Add a domain to an Azure web site via code

谁都会走 提交于 2019-12-01 05:40:16
问题 How do I programmatically add an additional domain name to an Azure Web Site? Hopefully there .NET API for this that I missed, perhaps in the Azure SDK or a NuGet package. Or perhaps there is a REST interface. 回答1: The Windows Azure Web Sites Management REST API should provide the functionality you are looking for. The property Site.HostNames property of Windows Azure Web Site can be used to provide additional domain names. The properties can be provided during creation of a web site or when

Can we run windowservice or EXE in Azure website or in Virtual Machine?

余生长醉 提交于 2019-12-01 05:32:46
问题 I have experienced with cloud service/hosted service on Azure. However regarding another project i am confused in selection in terms of functionalities. I have project (2 tier asp.net app) with that i need to run windowservice or exe which will do some functionality every day (like fetch data) so my confusions are as below Regarding Windows Azure Web Sites Can i access RDP if i'll move to reserved instance? can i run windowservice/exe ? Regarding Windows Azure Virtual Machine Is it same as

Folder permissions in Azure web sites

十年热恋 提交于 2019-12-01 05:29:11
Just getting my head around the new Azure web sites feature and hitting my first obstacle. I'm deploying a PHP site which writes cache data to the file system, but the app is throwing an error because the folder it wants to write to does not have write permission. Is it possible to set permissions on folders or is this a no-no? I can probably work round this but would like to know if it's possible. Folder permissions cannot be set/customized. This means whatever location your app writes to should be under your site root. Your site can only write to locations under C:\DWASFiles\Sites\[siteName]

Export Azure SSL certificate as pfx file

喜你入骨 提交于 2019-12-01 04:58:51
I purchased a wild card certificate from azure. It sits right now in the Key Vault. I need to upload it to our other server which hosts one of our other applications for the same domain. There is no option to export the certificate as a .pfx file anywhere in azure portal. Please help. Dmitry Kazakov You can create a local PFX copy of Azure App Service Certificate using PowerShell. Provide appropriate values from the following variables and save the script as copyasc.ps1 . Variables: $appServiceCertificateName = "ascdemo" $resourceGroupName = "ascdemorg" $azureLoginEmailId = "user@microsoft.com