Hello all,
I have a medium-sized (75 aspx pages or so) ASP.NET 2.0 application which I am trying to deploy. The application's aspx pages are structured into directories under the web root. The master pages are in their own directory, all the aspx pages that use those master pages are on other directories.
In case it matters, this project is a file-based project on VS2005.
Now I am trying to deploy the web site and I am running into several problems:
1) If I try to precompile via the command line with aspnet_compiler.exe, then the master pages do not get compiled and are completely missing from the pre-compiled web site. Also, none of the referenced assemblies are included in the /bin directory.
2) If I try to precompile with the Web Deployment Project tool with the "Merge all outputs to a single assembly" options (my preferred option), then the compilation fails on the merge step. (error MSB6006: "aspnet_merge.exe" exited with code 1.). No further information is available.
3) If I try to precompile with the Web Deployment Project tool with the "Create a separate assembly..." option turned on, all appears to work well, except the master pages are not compiled or otherwise included at all (same as #1 above).
4) If I try to precompile via the Publish Web Site tool, then everything gets compiled correctly, even the master pages. Any referenced assemblies (even those references to same-solution projects properly defined/detected) are NOT copied over to the deployment folder and must be copied "by hand". Any other referenced DLLs/assemblies (ie, 3rd party references listed in the Web.config file, etc...) are not copied either, and must be copied by hand.
So is this a bug, or is there yet another deployment option I am missing that would allow me to create an installable set of files that would not need manual work to get running? I would love to use the Web Deployment Project tool to create a minimal number of files and then put those files in an installer MSI or EXE file for deployment on the server (ah the good ol' vs2003 days!), but right now I would settle for not having to determine by hand which GAC 3rd party DLLs I have to put into my deployment target machine and hope I don't get anythig wrong!
gabriel maga?a