Solved

Help with deploying a web project to a server

Posted on 2011-10-01
5
347 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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