部署asp.net项目 [英] deployment of asp.net project

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

问题描述

大家好,我现在负责一个asp.net项目:asp.net siteweb,它包含2个部分:网站和类库,它已经被某人部署到服务器,现在我修改了siteweb和类库中的一些代码(在c#中),以及如何部署它,因为我以前从不这样做..它是:

1,aspx部分:复制修改后的aspx文件及其的.cs(隐藏文件的代码)到服务器

2,classlibrary部分:在我的本地PC,我重新生成类库和复制再生的BIN文件到服务器的siteweb /箱???



i想确保:我在asp.net siteweb中有2个文件夹。第一个是我的aspx文件,其代码隐藏在文件后面;第二个是类库,很多调用数据库的ado.net。

所以对于第一个文件夹,我从我的本地第一个文件夹复制文件并粘贴到服务器的第一个文件夹?并且在我的服务器没有第二个文件夹(classlibrary),这是否意味着,在我的服务器classlibrary仅仅是斌文件,该文件在第1个BIN文件夹?



(ps的,我有Crystal报表在我siteweb,有什么不同呢?)

解决方案
希望这将帮助你......

如果您的项目是网站,那么

1.备份已发布的服务器站点项目

2.构建项目,如果构建成功则

3.发布项目并从此发布的文件中删除web.config文件

4.所有这些文件上传到服务器


我刚刚修改了一小块aspx和classlibrary文件中的代码,那么如何才能更换服务器的existe文件? aspx我可以复制粘贴,但是bin ..我应该怎么办?


hi guys, i am now in charge of a asp.net project: asp.net siteweb, which contains 2 parts:"website" and "class library", and it's already deployed to server by someone, and now i modified some code in both siteweb and class library(in c#), and how to deploy that, cause i never do that before..is it to:
1, aspx part : copy modified aspx file and their .cs (code behind file) to server.
2, classlibrary part : in my local pc, i regenerate the class library and copy the regenerated BIN file into server's siteweb/bin ???

i wanna make sure that: i have 2 folder in the asp.net siteweb. 1st is my aspx file with their code behind files; 2nd is the classlibrary, lots of ado.net which call the database.
so for the 1st folder, i copy file from my local 1st folder and paste to server's 1st folder? and there is no 2nd folder(classlibrary) in my server, does that mean that the classlibrary in my server is just the "Bin" file which in the 1st BIN folder?

(ps,i have Crystal report in my siteweb, is there anything different to do?)

解决方案

Hope this will help you...
If your project is website then
1. Take backup of ur published server site project
2. Build your project and if Build successfully then
3. Publish project and from this Published files remove web.config file
4. All these files upload to server


i just modified little piece of codes in "aspx" and "classlibrary" files, so how can i do to just raplace the server's existe files? the aspx i can copy paste, but bin..how should i do ?


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

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