[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Help with deploying a web project to a server

Posted on 2011-10-01
5
Medium Priority
?
352 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
P1ST0LPETE earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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