|
-
Mar 11th, 2010, 03:33 PM
#1
Thread Starter
PowerPoster
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?
Last edited by Techno; Mar 11th, 2010 at 03:51 PM.
-
Mar 12th, 2010, 03:03 AM
#2
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
-
Mar 12th, 2010, 04:43 AM
#3
Thread Starter
PowerPoster
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.
-
Mar 12th, 2010, 04:53 AM
#4
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
-
Mar 12th, 2010, 05:00 AM
#5
Thread Starter
PowerPoster
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
-
Mar 12th, 2010, 05:29 AM
#6
Re: Deployment stumped
That's true
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|