部署asp.net 5应用程序天青 [英] Deploying asp.net 5 application to azure

查看:288
本文介绍了部署asp.net 5应用程序天青的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试部署我的asp.net mvc的5应用蔚蓝。
我第一次遇到这个错误:


  

部署模板验证失败:'提供的价值为
  模板参数SKU在行16和列17是无效的。


通过从Visual Studio在创建门户蔚蓝的Web应用程序,而不是固定它。

现在我有这个错误:


  

错误EPERM,打开C:\\ WINDOWS \\ NPM-的debug.logMapApp DNU 0


不能找到这个问题的解决方案,我试图清理和重建我的项目,重新打开Visual Studio中。此外,当我启动我的应用程序在本地模式下所有的罚款(即出现任何错误)。

P.S。完整的错误堆栈:


  

------发布开始:项目:MapApp,配置:释放任何CPU ------
  环境变量:
  路径= \\苹果\\首页\\桌面\\工作\\ DemoApps \\ MapApp \\服务器\\ MapApp的\\ src \\ MapApp \\ node_modules.bin; C:\\ Program Files文件(x86)的\\微软的Visual Studio 14.0 \\ Common7 \\ IDE \\ \\扩展微软\\网络工具\\外部; C:\\ Program Files文件(x86)的\\微软的Visual Studio 14.0 \\ Common7 \\ IDE \\ CommonExtensions \\微软\\ TeamFoundation \\团队资源管理器\\ NativeBinaries \\ 86; C:\\ Program Files文件(x86)的\\的Parallels \\的Parallels Tools\\Applications;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\system32\\config\\systemprofile.dnx\\bin;C:\\Program FILES \\微软DNX \\ Dnvm \\; C:\\ Program Files文件(x86)的\\的Windows套件\\ 10 \\ Windows性能工具包\\; C:\\ Program Files文件\\ Microsoft SQL Server的\\ 110 \\ TOOLS \\ BINN \\; C:\\ Users \\用户最多.dnx \\ BIN; C:\\ Program Files文件(x86)的\\微软的Visual Studio 14.0 \\ Common7 \\ IDE \\分机\\微软\\网络工具\\ external.git
  C:\\用户\\ max.dnx \\运行时\\ DNX-CLR-双赢x86.1.0.0-beta5的\\ BIN \\ dnu.cmd发布\\苹果\\首页\\桌面\\工作\\ DemoApps \\ MapApp \\服务器\\ MapApp \\ SRC \\ MapApp--outC:\\用户\\最大\\应用程序数据\\本地的\\ Temp \\ PublishTemp--configuration释放--runtime DNX-CLR-双赢x86.1.0.0-beta5的--wwwroot出wwwroot的 - 安静
  '\\苹果\\首页\\桌面\\工作\\ DemoApps \\ MapApp \\服务器\\ MapApp的\\ src \\ MapApp
  CMD.EXE开始与为当前目录上面的路径。
  UNC路径不被支持。默认为Windows目录。
  微软.NET开发工具CLR-x86-1.0.0-beta5-12103
  执行脚本prepublish在project.json
  '\\苹果\\首页\\桌面\\工作\\ DemoApps \\ MapApp \\服务器\\ MapApp的\\ src \\ MapApp
  CMD.EXE开始与为当前目录上面的路径。
  UNC路径不被支持。默认为Windows目录。
  NPM ERR!安装无法读取依赖


  
  

NPM ERR!的package.json ENOENT,打开C:\\ WINDOWS \\的package.json


  
  

NPM ERR!的package.json这很可能不是问题与NPM本身


  
  

NPM ERR!故宫的package.json无法找到在当前目录中的package.json文件。


  
  

NPM ERR!系统Windows_NT 6.2.9200


  
  

NPM ERR!命令C:\\ Program Files文件(x86)的\\微软的Visual Studio
  14.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\外部\\\\节点\\节点C:\\ Program Files文件(x86)的\\微软的Visual
  工作室14.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\外部\\故宫\\ node_modules \\故宫\\ BIN \\ NPM-cli.js安装
  NPM ERR! CWD C:\\ WINDOWS


  
  

NPM ERR!节点-v v0.10.31


  
  

NPM ERR! NPM -v 1.4.9


  
  

NPM ERR!路径C:\\ WINDOWS \\的package.json


  
  

NPM ERR! code ENOPACKAGEJSON


  
  

NPM ERR!错误号34


  
  

DNU(0,0):错误:EPERM,打开C:\\ WINDOWS \\ NPM-的debug.log


  
  

NPM ERR! {[错误:EPERM,打开C:\\ WINDOWS \\ NPM-的debug.log']错误号:50,code:'EPERM',路径:C:\\ WINDOWS \\ NPM-的debug.log'}
  NPM ERR!


  
  

NPM ERR!请重试运行此命令,作为根/管理员。


  
  

NPM ERR!系统Windows_NT 6.2.9200


  
  

NPM ERR!命令C:\\ Program Files文件(x86)的\\微软的Visual Studio


  
  

14.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\外部\\\\节点\\节点C:\\ Program Files文件(x86)的\\微软的Visual Studio 14.0 \\ Common7 \\ IDE \\扩展\\微软\\网络工具\\外部\\故宫\\ node_modules \\故宫\\ BIN \\ NPM-cli.js安装


  
  

NPM ERR! CWD C:\\ WINDOWS


  
  

NPM ERR!节点-v v0.10.31


  
  

NPM ERR! NPM -v 1.4.9


  
  

NPM ERR!路径C:\\ WINDOWS \\ NPM-的debug.log


  
  

NPM ERR! code EPERM


  
  

NPM ERR!错误号50


  
  

DNU(0,0):错误:EPERM,打开C:\\ WINDOWS \\ NPM-的debug.log


  
  

在'prepublish脚本状态code 34失败。



解决方案

@Panich,我还没有看到该错误自己,所以这将是很难复制在我结束。

我建议如下:创建一个新的空白ASP.NET 5 Web应用程序,并将其部署到Azure上的一个试验场。添加一些东西出来,从自己的应用程序,并重新部署一对夫妇多次,看它是否加入任何特定项目后失败。

希望帮助您缩小问题。

I am trying to deploy my asp.net 5 mvc application to azure. First time I faced this error:

Deployment template validation failed: 'The provided value for the template parameter 'sku' at line '16' and column '17' is not valid.'.

Fixed it by creating web app in azure portal instead from visual studio.

Now I have this error:

Error EPERM, open 'C:\Windows\npm-debug.log' MapApp DNU 0

Cant find the solution of this problem , I tried to clean and rebuild my project, reopen visual studio. Also when I launch my app in local mode all is fine (i.e. no errors appears ).

P.S. Full error stack:

------ Publish started: Project: MapApp, Configuration: Release Any CPU ------ Environment variables: Path=\Mac\Home\Desktop\Work\DemoApps\MapApp\Server\MapApp\src\MapApp\node_modules.bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\extensions\microsoft\web tools\external;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\NativeBinaries\x86;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Users\max.dnx\bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\extensions\microsoft\web tools\external.git C:\Users\max.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta5\bin\dnu.cmd publish "\Mac\Home\Desktop\Work\DemoApps\MapApp\Server\MapApp\src\MapApp" --out "C:\Users\max\AppData\Local\Temp\PublishTemp" --configuration Release --runtime dnx-clr-win-x86.1.0.0-beta5 --wwwroot-out "wwwroot" --quiet '\Mac\Home\Desktop\Work\DemoApps\MapApp\Server\MapApp\src\MapApp' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. Microsoft .NET Development Utility CLR-x86-1.0.0-beta5-12103 Executing script 'prepublish' in project.json '\Mac\Home\Desktop\Work\DemoApps\MapApp\Server\MapApp\src\MapApp' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. npm ERR! install Couldn't read dependencies

npm ERR! package.json ENOENT, open 'C:\Windows\package.json'

npm ERR! package.json This is most likely not a problem with npm itself.

npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Windows_NT 6.2.9200

npm ERR! command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\node\node" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\bin\npm-cli.js" "install" npm ERR! cwd C:\Windows

npm ERR! node -v v0.10.31

npm ERR! npm -v 1.4.9

npm ERR! path C:\Windows\package.json

npm ERR! code ENOPACKAGEJSON

npm ERR! errno 34

DNU(0,0): Error : EPERM, open 'C:\Windows\npm-debug.log'

npm ERR! { [Error: EPERM, open 'C:\Windows\npm-debug.log'] errno: 50, code: 'EPERM', path: 'C:\Windows\npm-debug.log' } npm ERR!

npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.2.9200

npm ERR! command "C:\Program Files (x86)\Microsoft Visual Studio

14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\\node\node" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Web Tools\External\npm\node_modules\npm\bin\npm-cli.js" "install"

npm ERR! cwd C:\Windows

npm ERR! node -v v0.10.31

npm ERR! npm -v 1.4.9

npm ERR! path C:\Windows\npm-debug.log

npm ERR! code EPERM

npm ERR! errno 50

DNU(0,0): Error : EPERM, open 'C:\Windows\npm-debug.log'

The 'prepublish' script failed with status code 34.

解决方案

@Panich, I haven't seen that error myself so it will be hard to reproduce on my end.

I would suggest the following: create a new blank ASP.NET 5 web app, and deploy it to a test site on Azure. Add a few things to it, from your own application and redeploy it a couple of more times to see if it fails after adding any particular item.

Hope that helps you narrow down the issue.

这篇关于部署asp.net 5应用程序天青的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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