How to download using ASP.NET

I am trying to upload a compiled web application to the Internet. I was told that I only need a DLL file, which should go to the bin folder? Is this true or do I need to download both the dll file and the bin folder?

Also, is there a better way to build, so I don't need to mix my image, css, etc. in my project folder? Maybe a way to copy the dll file to the bin folder and all my aspx pages?

I got it to work, but it looks like I'm duplicating a bunch of files, and I know that in the end there will be some kind of problem.

+6
source share
2 answers
  • Right click on your project and rebuild
  • Right-click your project and click Publish. I use Publish to Files to check if the files are copied correctly.
  • Find the published files specified on your system.
  • If you check the bin folder, all your links (.dll) should be inside
  • Then upload the contents of the published folder to your website.
+7
source

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

Only the necessary files are published.

+5
source

All Articles