Solved

Help with deploying a web project to a server

Posted on 2011-10-01
5
348 Views
Last Modified: 2012-05-12
Hello,

I created an ASP.NET project and now to deploy it to a web server. is the best approach is to create a webserver project? Will it automatically include all the files I need for the project, includingg third party controls? Once I create a webserver project what other information I will need to deploy it to a webserver?

Thanks,

Victor
0
Comment
Question by:vcharles
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
P1ST0LPETE earned 500 total points
ID: 36897820
To deploy an ASP.NET web project to a web server, you do not need to create any other special projects.  What you need to do is simply copy over the files of your ASP.NET project to the correct folder on your web server.

On the web server, there is a "wwwroot" folder for each website on the server.  It is inside of this folder that all files necessary for the website to function need to be copied.  Depending on how your web server is setup (for example if you're using a hosting service) you may not actually see the "wwwroot" folder.  If you do not see it, assume that the root directory that you have access to through your ftp access, is the wwwroot folder.

On the web server, inside the wwwroot folder, look for the "bin" folder.  It is inside this bin folder that you need to copy over all third party dll's and the dll's that are generated from your ASP.NET project.  When you compile your ASP.NET project in visual studio or visual web developer, there will be at least one dll created.  Look for it within the bin folder of your ASP.NET project folder on your local development machine.

Other than that, you need to copy over all .aspx, javascript and css files to the wwwroot folder.  Also make sure to maintain whatever directory structure you have, for example, if you have a folder named "scripts" with all your javascript files inside of it, make sure you have a folder on your webserver (inside the wwwroot folder) with all your javascript files inside it.

You also need to copy over your web.config file and place it in your wwwroot folder.  You do NOT need to copy over your aspx.cs or aspx.designer.cs or aspx.vb or aspx.designer.vb files, as they have been compiled and included in your dll file.
0
 

Author Comment

by:vcharles
ID: 36898000
Thank You!
0
 

Author Comment

by:vcharles
ID: 36898015
My datasource (xml files)are  in the Appdata folder of my application, I'm assuming I also need to copy the Appdata folder or will it be part of the setup project? Also since I'm using xml as my datasource, no special database server is needed right and will security of the data be an issue or as long as the web server is secured there should be no issue?.
0
 
LVL 10

Expert Comment

by:P1ST0LPETE
ID: 36898357
Yes, if you are storing data in an XML file then you will need to copy it to the server as well, and store it in the same directory structure that you have your application setup to use.  Also yes, your web server files should be secured, and most web hosting companies give you settings where you can control what files are publicly accessible or not.
0
 

Author Comment

by:vcharles
ID: 36898367
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question