-
Deployment stumped
I seem to be running into a problem creating a web setup project and making a deployment. never had this before!
I have 4 Project files:
Common
BLL
DAL
MainSite
MainSite has a reference to common and BLL
BLL has a reference to DAL and common
DAL has a reference to Common
when trying to add the source/content/primary output files into the Web Application Folder, and build the project I get this error:
Error 1 An error occurred while validating. HRESULT = '80004005'
Funny thing is, if I take out the Primary project output files and just leave the content and source files for the MainSite, the error goes away, builds but DOES NOT copy the DLL's into the bin directory.....
This ONLY happens when adding "primary output from XXXX" (dll/exe) for ANY project
I know its to do with the circular type dependencies I guess, but what workaround is there?
any thoughts?
-
Re: Deployment stumped
Hey,
Can't say that I have seen that particular error before.
One thing to check, although I am sure you already have done, take a look at the build order, and make sure that the projects are getting built in the correct order, to satisfy the dependencies. Have you explicitly set the dependencies on each project? Also, take a look at the Build Configuration Manager, I have had times when a deployment project hasn't actually made it onto the active build, i.e. needed to manually check the checkbox.
One other thing, do any of your project's include any third party files? Have you set the "Build Action" on those to include them into the output directory?
Gary
-
Re: Deployment stumped
Thanks gep.
no 3rd party tools in the project. the build order is also fine.
its to do with circular dependencies and how the deployment project behaves.
The work around is as follows:
split the solution in 2.
solution1: just the website project and the setup/deployment project.
solution2: just the class libraries (common, DAL, BLL)
then in solution one, just add the BLL/DAL/Common assemblies into the project
job done.
-
Re: Deployment stumped
Hey,
That's interesting!!
Glad you found a solution, but it's a shame that you had to go to this extent.
Gary
-
Re: Deployment stumped
it is a bit of a pain unfortunately but it works..... at least you dont have to do it ALL the time on a frequent basis but only when rolling out the solution :)
-
Re: Deployment stumped