Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to publish node js site to azure using Visual Studio 2013

Tags:

node.js

azure

I am publishing my node js site to azure using this tutorial - http://blogs.technet.com/b/sams_blog/archive/2014/11/14/azure-websites-deploy-node-js-website-using-visual-studio.aspx

I get the following error, as mentioned in one of the comments on the blog, any idea what this error is about and how do I fix this ? I am able to run my app locally no issues with that.

Error: InvalidParameter Parameter name: index

enter image description here

P.s : the site is like a very basic "Hello world" kind of site, this is the first time I am using and deploying to azure too.

like image 851
Yasser Shaikh Avatar asked Aug 29 '15 09:08

Yasser Shaikh


People also ask

How do I publish from Visual Studio to Azure?

Create or open an Azure cloud service project in Visual Studio. In Solution Explorer, right-click the project, and, from the context menu, select Convert > Convert to Azure Cloud Service Project. In Solution Explorer, right-click the newly created Azure project, and, from the context menu, select Publish.

Which of the following Visual Studio publishing options can we use to facilitate application deployment on Azure?

publishsettings file contains two publishing profiles that you can use in Visual Studio, one to deploy using Web Deploy, and one to deploy using FTP. The preceding code shows the Web Deploy profile. Both profiles will be imported later when you import the profile.

How do I import a node JS project into Visual Studio?

If you have Visual Studio installed already: In Visual Studio, go to Tools > Get Tools and Features. In the Visual Studio Installer, select the Node. js development workload, and select Modify to download and install the workload.


1 Answers

I created a new project as a "Blank Azure Node.js web application", and replaced the resulting package.json and .js files with what I had before, and it publishes fine now

like image 108
ECH Avatar answered Nov 15 '22 04:11

ECH