Results 1 to 6 of 6

Thread: Deployment stumped

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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.

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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.

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Aug 2003
    Location
    Edinburgh, UK
    Posts
    2,773

    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

    MVP 2007-2010 any chance of a regain?
    Professional Software Developer and Infrastructure Engineer.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width