Node.js的蔚蓝+ sql数据库 [英] node.js + azure sql database

查看:245
本文介绍了Node.js的蔚蓝+ sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对这个微软的Node.js的SQL客户端挣扎。

我已经安装了它,而不使用在GitHub的页面导向的任何错误,一切都在本地工作完美。但是当我使用git把车推到蔚蓝,我得到的错误:

I've installed it, without any errors using the guide at the github page, and everything works perfect locally. but when i use git to push it to azure, i get the error:

Native sqlserver module not found. Did you remember to run node-gyp configure build?
Application has thrown an uncaught exception and is terminated:
Error: Unable to load shared library C:\DWASFiles\Sites\bid110\VirtualDirectory0\site\wwwroot\node_modules\msnodesql\build\Release\sqlserver.node

我也看了引导,即使有些地方已经过时。我还cheked所有文件上传到服务器。在node_modules / msnodesql和node_modules \\ msnodesql \\建立与它的所有子文件夹\\发布\\文件夹有作为。

I've also looked at this guide, even though some parts is outdated. I've also cheked that all the files are uploaded to the server. the node_modules/msnodesql and node_modules\msnodesql\build\Release\ folders with all its subfolders are there as well.

任何想法我可能是错在这里做什么?

Any ideas what I might be doing wrong here?

推荐答案

请检查您的msnodesql是x86或x64。如果你的本地计算机是64与64位Python和安装msnodesql通过 NPM安装msnodesql 那么你应该得到一个64位版本。但是在Windows Azure上的网站应用程序将在x86的运行,所以你可能需要msnodesql的x86版。您可以通过NPM从x86机器上安装,或者您也可以在的 http://www.microsoft.com/en-us/download/details.aspx?id=29995

Please check if your msnodesql is x86 or x64. If your local machine was x64 with x64 Python, and you installed msnodesql through npm install msnodesql then you should get a x64 version. But on Windows Azure Web Site your application will be running in x86, so you might need to a x86 version of msnodesql. You can install through NPM from a x86 machine, or you can download the compiled version at http://www.microsoft.com/en-us/download/details.aspx?id=29995

我也有一个博客帖子这个希望帮助。 <一href=\"http://blogs.shaunxu.me/archive/2012/09/18/node.js-adventure---when-node.js-meets-windows-azure.aspx\" rel=\"nofollow\">http://blogs.shaunxu.me/archive/2012/09/18/node.js-adventure---when-node.js-meets-windows-azure.aspx

I also have a blog post about this hope that helps. http://blogs.shaunxu.me/archive/2012/09/18/node.js-adventure---when-node.js-meets-windows-azure.aspx

这篇关于Node.js的蔚蓝+ sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆