将asmx项目部署到Elastic Beanstalk时出错

时间:2014-05-20 14:43:40

标签: c# visual-studio amazon-web-services asmx elastic-beanstalk

我已经使用VS2013创建了一个asmx webservice,并希望将其部署在Elastic Beanstalk中,但我收到了下一个错误:

Deployment of the web site failed due to errors during build of the deployment archive.
Check Visual Studio's Output window 'Build' and/or 'Amazon Web Services' panes for more detail.

这是我的AWSToolkit日志:

2014-05-20 16:39:24,816 [49] DEBUG Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Output to AWS output window pane: Commencing deployment for project WS/MyWS
2014-05-20 16:39:24,816 [49] INFO  Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Commencing deployment for project WS/MyWS
2014-05-20 16:39:25,405 [5] DEBUG Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Output to AWS output window pane: ...building deployment package C:\Users\Me\AppData\Local\Temp\AWSDeploy.2dddeee5
2014-05-20 16:39:25,405 [5] INFO  Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - ...building deployment package C:\Users\Me\AppData\Local\Temp\AWSDeploy.2dddeee5
2014-05-20 16:39:25,405 [5] INFO  Amazon.AWSToolkit.VisualStudio.Shared.VSWebProjectInfo - EnvDTEProject.FullName lookup yielded 'http://localhost:60047/MyWS'
2014-05-20 16:39:25,405 [5] INFO  Amazon.AWSToolkit.VisualStudio.Shared.VSWebProjectInfo - Detected VS2012 HTTP-based path for website project, 'FullPath' properties lookup yielded 'D:\dev\WS\MyWS'
2014-05-20 16:39:25,405 [5] INFO  Amazon.AWSToolkit.VisualStudio.Shared.VSWebProjectInfo - Website project location lookup final yield is D:\dev\WS\MyWS\
2014-05-20 16:39:25,405 [5] DEBUG Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Output to AWS output window pane: ...caught exception during deployment package creation -
2014-05-20 16:39:25,421 [5] DEBUG Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Output to AWS output window pane: Object reference not set to an instance of an object.g:

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

我的应用程序是一个网站,而不是一个Web应用程序。 切换到Web应用程序后,我可以在Beanstalk中部署。