azure-web-sites

How to connect a localdb from Visual Studio to the published Azure web app?

两盒软妹~` 提交于 2019-12-29 09:18:36
问题 So i have a localdb set up for my project in Visual Studio but when I publish it to my Azure web app, I get " An unhandled exception occurred while processing the request. Win32Exception: The system canot find the file specified TryGetConnection" I tried adding a "DefaultConnection" Connection String with the database/server as the value in the Web App settings but that didn't do anything 回答1: LocalDb doesn't exist for Azure. LocalDb is a feature of SQL Server Express, there is no equivalency

Authentication problems after publishing MVC 4 app to azure

一笑奈何 提交于 2019-12-29 06:50:33
问题 I have a basic ASP.NET MVC 4 site which I am hosting on Azure websites. The authentication is forms authentication and has not been customised from the default template. Every time I publish, when I revisit my site, it just hangs with a very long timeout (couple of minutes perhaps) before finally showing me an error message. I can recover by deleting the cookies for the site in my browser and reloading. Initially the problem was just trying to access pages that required authentication, but

Does iText (any version) work on Windows Azure websites?

余生长醉 提交于 2019-12-29 06:29:50
问题 There are many limitations with the Azure App Service (formerly websites), so I was wondering if iText's PDF creation tools still worked. Specifically, I will be converting HTML to PDF, including all manner of styles and images. Neither rotativa nor Pechkin work on Azure App Service due to its limitations. 回答1: There are many limitations with the Azure App Service (formerly websites), so I was wondering if iText's PDF creation tools still worked. Based on my test with following sample, I can

Enable Access-Control-Allow-Credentials header in Azure website (Azure App Services)

放肆的年华 提交于 2019-12-28 13:50:27
问题 We recently migrated an API application from Azure Cloud Services to Azure Websites, and some clients are still using our legacy protocol for authentication, which uses cookies (instead of the usual Authorization: Bearer HTTP header). We need to support this authentication protocol for a little longer as the clients will not be able to migrate right away. To support cookies in a cross-origin ajax request directed to the API, the client needs to set the withCredentials setting to true in the

MVC Bundling - Failed to load resource

血红的双手。 提交于 2019-12-28 13:22:11
问题 What could be causing this? I'm working with a DurandalJS project that builds and runs locally just fine. When I try to deploy to an Azure Website, the app publishes but fails in the browser with: Failed to load resource: the server responded with a status of 404 (Not Found) http://appsite.azurewebsites.net/Scripts/vendor.js?v=KJCisWMhJYMzhLi_jWQXizLj9vHeNGfm_1c-uTOfBOM1 I haven't customized any of the bundling. my bundle configs: public class BundleConfig { // For more information on

Where is “download publish profile” in the new Azure Portal?

你。 提交于 2019-12-28 06:27:19
问题 In the old Azure Portal, I used to download the publish profile (which included FTP username/password) for App Services using the menu shown here. How do I get this in the new Azure Portal? Ultimately, how can I get my FTP user/pass for my App Service? 回答1: it is right on the website`s blade. and regarding to FTP address and username, you should be able to see the details from setting --> properties 回答2: I found it just in the main menu under Overview. Yeah, hidden firstly so you need to

Upgrading Node on an Azure website?

寵の児 提交于 2019-12-28 02:57:24
问题 I'm trying to run some pre deployment tasks (unit tests etc) with NPM on an Azure website, however the version of node on the VM is v0.10.32, the current version of node is v4.2.4. I have non administrative access to the command line via the SCM website, no RDP etc. Is there any way to upgrade? 回答1: You can specify the version of node that the app is running on using the package.json file. Add: "engines":{"node":version} e.g.: "engines":{"node": "0.12.x"}, More info: https://azure.microsoft

Debenu PDF works on localhost fails on azure

こ雲淡風輕ζ 提交于 2019-12-25 18:25:33
问题 I'm using Debenu PDF Library to extract pages from a pdf file. Here is how I do it, var pdflib = new PDFLibrary(LoadDll()); int result = pdflib.UnlockKey("UNLOCKKEYISHERE"); AzureStorageWrapper sasWrapper = new AzureStorageWrapper(ConfigurationManager.AppSettings["AzureStorageConnection"], "cont1"); byte[] blob = sasWrapper.GetBlob("file.pdf"); pdflib.LoadFromString(blob, ""); byte[] page = pdflib.RenderPageToString(50, 1, 1); When I run this on my local machine it works perfectly (first page

using virtual directories in a single azure website

妖精的绣舞 提交于 2019-12-25 18:14:24
问题 I've found this answer coherent to this old article but both don't work. Thus I'm here to ask a new solution that works with VS2017. I'll explain more in detail: First time you define a virtual directory (as "/site1" and physical folder "site\site1") and try to publish from VS2017, you receive an error (cannot write into the specified path) and cannot publish. Then if you enter into the console (from portal.azure.com) and manually create the folder under d:\site with "md site1"), the publish

Verify duration of video which has been uploaded into azure blob

杀马特。学长 韩版系。学妹 提交于 2019-12-25 16:55:54
问题 I'm building an application where users can upload a short portrait video about themselves for promotion within the community. The keyword being short. I would like to prevent users from being able to upload 1 hour epics. I have tried figuring out a way to verify this on the client side yet with all the available video formats out there I resolved to doing it server side. This is where I hit the next wall. I upload the users videos in chunks (due to be expected large files) via a reference