构建windows azure服务时路径太长错误 [英] Path too long error when building a windows azure service

查看:23
本文介绍了构建windows azure服务时路径太长错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试将我的服务发布到 windows azure.该服务由单个 webRole 组成,但是我添加了远程登录功能,发布并构建了几次,现在突然无法构建.它给出的原因是

I have been trying to publish my service to windows azure. The service consists of a single webRole, however I have added remote login functionality published it and built it a few times, and now all the sudden it will not build. The reason it gives is that

详情如下:
错误 56 指定的路径、文件名或两者都太长.完全限定的文件名必须少于 260 个字符,目录名必须少于 248 个字符.C:Program Files (x86)MSBuildMicrosoftCloud Service1.0Visual Studio 10.0Microsoft.CloudService.targets 202 5 FileSystemCreator"

我访问了所有论坛,我使用 CSPack 命令行来打包服务,这很好,但我很难为远程桌面连接配置证书,我想利用此功能因为我正在 onStart 事件中创建一些网站,所以我想查看 IIS.一些微软员工确实同意这是一个错误,并已承诺修复此问题,请参阅 发布.我正在使用 VS2010,但我不知道如何修复此错误.

I have gone on all the forums, I have used CSPack command line for packaging the service which is fine but I'm having a really hard time configuring the certificate for remote desktop connect and I would like to take advantage of this feature as I am creating some websites in the onStart event and I would like to peek into IIS. Some microsoft employees do agree that this is a bug and the have promised a fix this issue, refer to post . I am using VS2010 and I do not know how to fix this bug.

任何人都可以帮忙吗,或者指点我可以得到任何帮助的地方.

Can anyone please help, or point me to a place where I can get any help.

推荐答案

我在使用新解决方案时遇到了同样的问题.

I ran into the same problem with a new solution.

请注意,与 Eugenio Pace 的回应所暗示的不同,错误仅在部署到 Azure 时发生(而不是在 Azure 计算模拟器中运行项目时).

Note that, unlike Eugenio Pace's response suggests, the error occurs only when deploying to Azure (and not when running the project in the Azure Compute Emulator).

尝试将以下行添加到 Windows Azure Visual Studio 项目文件 (*.ccproj) 的第一个属性组:

Try adding the following line to the first property group of your Windows Azure Visual Studio Project file (*.ccproj):

<ServiceOutputDirectory>C:Azure</ServiceOutputDirectory>

结尾斜杠(对于您选择的任何路径)似乎是必需的.每次创建包时都会删除此文件夹(如果存在).

The trailing slash (for whatever path you select) appears to be required. This folder will be deleted each time you create a package if it exists.

此设置似乎将包的工作文件夹重定向到较短的基本路径,防止路径过长错误.

This setting seems to redirect the working folder for the package to a shorter base path, preventing the path too long error.

来源:http://govada.blogspot.com/2011/12/windows-azure-package-build-error.html

这篇关于构建windows azure服务时路径太长错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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