如何取消部署asp.net 2.0网站 [英] How to undeploy an asp.net 2.0 website

查看:118
本文介绍了如何取消部署asp.net 2.0网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由visual studio 2005开发的asp.net 2.0网站的部署版本...但不幸的是,源代码已被删除...



我想从已部署的版本获取网站的源代码版本



有一些工具可以将代码从DLL提取到类库但我试图搜索很多我没有找到任何工具来提取DLL到asp.net代码隐藏



我该怎么办?



提前谢谢

I have a deployed version of an asp.net 2.0 website developed by visual studio 2005... But unfortunately, the source code has been deleted...

I want to get the source code version of the website from the deployed version

There are tools to extract code from DLL to class libraries but I tried to search a lot I don't find any tools to extract DLL to asp.net code-behind

What can I do?

Thanks in advance

推荐答案

差不多?没有。这不应该定期发生 - 你不会希望它运作良好,因为其他人可以偷你的工作。



你可以试试一些DLL反编译工具在那里(谷歌将帮助你那里)但我不认为你有机会从它获得良好,可读的代码。从头开始重新生成整个项目可能会更快。



检查你的备份 - 如果你没有,那么请考虑这一课你的原因应该总是有一个好的备份系统!
Pretty much? Nothing. It's not something that should happen on a regular basis - and you wouldn't want it to work well because others could steal your work if it did.

You can try some of the DLL decompilation tools out there (google will help you there) but I don't fancy your chances much of getting good, readable code from it. It will probably be quicker to regenerate the whole project from scratch.

Check your backups - and if you don't have any, then consider this a lesson in why you should always have a good backup system!


看,asp.net网站部署如下:

Look, the asp.net site is deployed as the following:


  1. 'bin'文件夹:包含一个或多个代码隐藏类的程序集(.dll文件)。
  2. 内容文件:.js和.css文件分布在文件夹中,就像项目一样。
  3. .master,.aspx和.ascx文件:在@Master @Page和@Control透视图中(在文件顶部),属性inherits确定'bin'文件夹中的哪个程序集包含代码隐藏类(以程序集名称的形式)。

  1. The 'bin' folder: contains one or more assemblies(.dll files) of code-behind classes.
  2. The content files: .js and .css files distributed in folders just as your project.
  3. The .master, .aspx and .ascx files: in the @Master @Page and @Control perspectives(in the top of the file) the attribute inherits determines which assembly in 'bin' folder contains the code-behind class(in the form of "class, assembly name").





您应该执行以下操作:





you should do the following:



  1. 反汇编代码隐藏类。 vb或.cs文件并将其保存在与页面相同的文件夹中。
  2. 从inherits属性中删除程序集名称。
  3. 使用代码隐藏文件的名称添加'codeBehind'属性。





要反汇编类,可以使用 Reflector.Net [< a href =http://www.red-gate.com/products/dotnet-development/reflector/target =_ blanktitle =新窗口> ^ ]



祝你好运。



To disassemble the classes you can use Reflector.Net[^]

wish you luck.


这篇关于如何取消部署asp.net 2.0网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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