Solved

Help with deploying a web project to a server

Posted on 2011-10-01
5
339 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
Comment Utility
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
Comment Utility
Thank You!
0
 

Author Comment

by:vcharles
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
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.…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now