Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Upload With ASP.NET

I am trying to upload my compiled web application to the Internet. I was told that all I need is the dll file which is supposed to go into the bin folder? Is this true or do I need to upload both the dll file and the bin folder?

Also, is there a better way to build so that I don't have to intermix my image, css, and so on into my project folder? Maybe a way to copy the dll file to a bin folder and all my aspx pages?

I got it to work but it seems like I keep duplicating a bunch of files and I know eventually some problem will arise.

like image 273
rbtLong Avatar asked Jan 02 '13 08:01

rbtLong


2 Answers

  • Right-Click your project and Rebuild
  • Right-Click your project and and click publish - I use "Publish to Files to Directory" to verify the right files are copied.
  • Locate the published files where you specified on your system
  • If you check the bin folder, all your references (.dll) should be inside
  • Then upload the content of the published folder onto your site.
like image 65
codingbiz Avatar answered Nov 16 '22 17:11

codingbiz


The easiest way is you use the Visual Studio menu Build -> Publish. Then you either export directly via FTP to your target server or to a local directory from where you copy the files to the web directory.

Only the required files are published.

like image 33
slfan Avatar answered Nov 16 '22 17:11

slfan