如何在ASP.NET中导入现有项目 [英] How do I import an existing project in ASP.NET

查看:703
本文介绍了如何在ASP.NET中导入现有项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



一位同事离开,现在我必须维护他们的ASP.NET项目。我现在安装了Visual Studio 2010,这是我的第一个ASP.NET项目。



我一直在尝试导入项目的最后部署版本< server_name> inetpub \ www.root的位置但到目前为止,它无法在调试模式下导入,构建和运行的地方。



我试过简单地添加一个现有的项目。我尝试通过导航到< project_name> .vbproj文件来创建解决方案并添加现有组件。我尝试使用File>>工具栏。添加>>现有项目。我已经尝试过这个URL推荐的解决方案 http:// stackoverflow .com / questions / 1325555 / visual-studio-create-a-web-application-from-existing-code [ ^ ]



唯一接近的是,创建具有相同名称的空白解决方案的方法,将相关部署的文件夹从< server_name> inetpub \ www.root复制到空白解决方案位置。在复制的文件夹中删除.sln文件。回到Visual Studio文件>>添加>>现有网站并导航到复制的文件夹。这构建项目,所有看起来都没问题但是当我点击调试时,我收到许多消息Microsoft JScript运行时错误:对象不支持此属性或方法。我该如何解决这个问题?



提前致谢



AJFarroll

Hi all,

A colleague left and now I have to maintain their ASP.NET project. I have Visual Studio 2010 installed now and this is my first ASP.NET project.

I have been tryining in vain to Import the last deployed version of the project from the location of <server_name>inetpub\wwwroot But so far nothing works where it will import, build and run in debug mode.

I have tried simply adding an existing project. I have tried creating a solution and adding existing components by navigating to the <project_name>.vbproj file. I have tried using the toolbar with File >> Add >> Existing project. I have tried the solution rcommended at this URL http://stackoverflow.com/questions/1325555/visual-studio-create-a-web-application-from-existing-code[^]

The only one that comes close is, the method of creating a blank solution with the same name, copying the relevant deployed folder from <server_name>inetpub\wwwroot to the blank solutions location. In the copied folder delete the .sln file. Back in Visual studio File >> Add >> Existing Web Site and navigate to the copied folder. This builds the project and all looks okay but when I click on debug I receive numerous messages of "Microsoft JScript runtime error: Object doesn't support this property or method". How do I fix this please??

Thanks in advance

AJFarroll

推荐答案

为什么要尝试使用已部署的站点?

通常,编译,经常混淆,然后发布 - 您需要使用源代码,这应该是你的同事正在处理它(或至少在公司备份系统中)的地方。



试图在已发布的网站上工作是刻意的困难:让窃贼更难盗取你的网站并自己使用它!
Why are you trying to work with the deployed site?
Normally, that's compiled, frequently obfuscated, and then published - you need to work from the source code, which should be where your colleague was working on it (or at least in the company backup systems).

Trying to work from a published web site is deliberately difficult: to make it harder for thieves to steal your site and use it themselves!


这篇关于如何在ASP.NET中导入现有项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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