Question

I am trying to upload an asp.net website project with multiple solution within, for example one solution is for Data Access Layer and others are Business Logic Layer, UI, commonUtilities..

Locally it is working fine but when I upload file in the remote server it shows nothing expect if I only upload User Interface separately where there are aspx files stored. It also does not show publish option when I right click on the main solution.

Was it helpful?

Solution

One Correction, This is wrong : You have multiple Solutions under a WebSite project.

You have a Visual Studio Solution with multiple projects under it including the UI project, Data Access project, class libraries etc...

You should be publishing the UI project only( where you have the ASPX files). Right click on that specific project and you will see the publish option in the context menu. Your other projects will be compiled to an assembly (DLL file) and will be available in a folder called bin when you publish it (Assuming you have proper references added to these projects in your UI projects references section) . Move those files (the ASPX files, bin folder, Any folders where you have the Scripts/CSS) to your server and you will be good.

OTHER TIPS

If your web application is referencing the other projects, Visual Studio will deploy their DLLs along with the web application/user interface.

HTH

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top