[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Help with deploying a web project to a server

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
vcharles
Asked:
vcharles
  • 3
  • 2
1 Solution
 
P1ST0LPETECommented:
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
 
vcharlesAuthor Commented:
Thank You!
0
 
vcharlesAuthor Commented:
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
 
P1ST0LPETECommented:
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
 
vcharlesAuthor Commented:
Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now