Windows Azure云服务:恢复丢失的源$ C ​​$ C [英] Windows Azure Cloud Service: recover lost source code

查看:153
本文介绍了Windows Azure云服务:恢复丢失的源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Azure上发布的云服务(WCF角色)。来源$ C ​​$ C已丢失。反正是有下载部署包从Azure的回来?或任何其他方式获得该DLL的背上。

I have a cloud service (WCF role) published on Azure. Source code has been lost. Is there anyway to download the deployment package back from Azure? Or any other way to get the DLL's back.

推荐答案

也许吧。如果您启用RDP,或至少配置,在您可以将RDP实例和检索的DLL这样的角色你的服务定义。

Perhaps. If you have RDP enabled, or at least configured, in your service definition on the role you can RDP into the instance and retrieve the DLLs that way.

如果您使用Visual Studio部署则包的副本是在存储帐户之一,因为它部署之前上传包那里。检查每个存储账户在您的BLOB存储vsDeploy容器。我想一些其他的部署机制利用这一点。如果你觉得你可以下载cspkg文件,将其重命名.zip或打开它就像一个zip文件。里面每一个角色,你会看到一个cssx文件。提取并重新命名为.zip为好。打开文件夹CSX会告诉你这是部署到您的实例的code。

If you deployed using Visual Studio then a copy of the package is in one of your Storage accounts because it uploads the package there before deploying it. Check each of your storage accounts for a vsDeploy container in your BLOB storage. I think a few other deployment mechanisms use this as well. If you find it you can download the cspkg file, rename it .zip and open it up just like a zip file. Inside for each role you'll see a cssx file. Extract that and rename it to .zip as well. Opening the csx folder will show you the code that was deployed to your instance.

不管你如何执行你的部署,我强烈建议让你发布这样您就可以回滚或知道哪里出了出cspkg文件。我也建议有RDP的服务定义至少配置,但也许当你需要解决禁用。开启和关闭它是一个配置更新,但可以有它自己的副作用。

Regardless of how you perform your deployments I highly recommend keeping the cspkg files you publish so that you can rollback or know what went out. I'd also recommend having RDP at least configured in your service definition but perhaps disabled for when you need to troubleshoot. Turning it on and off is a configuration update, though that can have it's own side effects.

如果一切都失败了,你有一个的Windows Azure的支持水平某种上面免费的,你可以把一票,看看他们是否会找回我想为你的DLL。我还没有试过。

If all else fails and you have a Windows Azure Support level of some kind above free you can put in a ticket to see if they will retrieve the DLLs for you I guess. I've not tried that.

更新:我不知道该操作以获取包拉夫表示。这应该是你的答案找回您的code。

Update: I didn't know about the operation to get package that Gaurav indicated. That should be your answer to retrieve your code.

这篇关于Windows Azure云服务:恢复丢失的源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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