Welcome to Team System Rocks Sign in | Join | Help
in
Home Blogs Forums Photos Tutorials Files Roller
Notion Solutions Main Site

Team build is failured after deployment

Last post 06-10-2008, 1:32 AM by visit2siva. 0 replies.
Sort Posts: Previous
  •  06-10-2008, 1:32 AM

    Team build is failured after deployment

    My build has two solutions,

    1. CESA.sln ( it has 5 projects)
    2. CSA.Sln ( it has 5 projects)

    For development time, I need to compile CESA.sln and get dll's and moved to one common folder. Then, I compile CSA.Sln (web application with 5 projects) and this web application needs to deployed on IIS.

    This is the same approch needs to follow on TFS build also.

    I have created the build file pasted below. But what happen,It is not throwing any compilation error and drop are properly landed at mentioned location. When I deployed the drop at IIS (at integration machine), it was throwing following error message. But When I copied the same build from my development environment and deployed at integration machine. it is working fine and not throwing this error.(One more thing , I have noticed, it is not copied the ascx file in to drop.(this is different error). Please let me know how to resolve this error.

    ERROR START

    ----------------------------------------------------------------------------------
    Server Error in '/' Application.

    --------------------------------------------------------------------------------

    Object reference not set to an instance of an object.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error:


    Line 57:     </script>
    Line 58: </head>
    Line 59:     <%=getWarningInfo() %>
    Line 60:
    Line 61: <body scroll="no" class="framedPage" onload="handleOnload()">
     


    Source File: d:\cesaapps\CSA\CSAWeb\MainParent.Master    Line: 59

    Stack Trace:


    [NullReferenceException: Object reference not set to an instance of an object.]
       CSAWeb.MainParent.getWarningInfo() in c:\CTP_Build_Compile\PSAS\CTP_Build\Sources\CSA\CSAWeb\MainParent.Master.cs:108
       ASP.mainparent_master.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\cesaapps\CSA\CSAWeb\MainParent.Master:59
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
       System.Web.UI.Control.Render(HtmlTextWriter writer) +7
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
       System.Web.UI.Page.Render(HtmlTextWriter writer) +26
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
     

     

    --------------------------------------------------------------------------------------
    ERROR END

    Proj FILE Starts here
    -------------------------------------------------------------------------
    <?xml version="1.0" encoding="utf-8"?>
    <Project DefaultTargets="DesktopBuild" xmlns="
    http://schemas.microsoft.com/developer/msbuild/2003">
      <!-- TO EDIT BUILD TYPE DEFINITION

      To edit the build type, you will need to edit this file which was generated
      by the Create New Build Type wizard.  This file is under source control and
      needs to be checked out before making any changes.

      The file is available at -
          $/{TeamProjectName}/TeamBuildTypes/{BuildTypeName}
      where you will need to replace TeamProjectName and BuildTypeName with your
      Team Project and Build Type name that you created

      Checkout the file
        1. Open Source Control Explorer by selecting View -> Other Windows -> Source Control Explorer
        2. Ensure that your current workspace has a mapping for the $/{TeamProjectName}/TeamBuildTypes folder and
           that you have done a "Get Latest Version" on that folder
        3. Browse through the folders to {TeamProjectName}->TeamBuildTypes->{BuildTypeName} folder
        4. From the list of files available in this folder, right click on TfsBuild.Proj. Select 'Check Out For Edit...'


      Make the required changes to the file and save

      Checkin the file
        1. Right click on the TfsBuild.Proj file selected in Step 3 above and select 'Checkin Pending Changes'
        2. Use the pending checkin dialog to save your changes to the source control

      Once the file is checked in with the modifications, all future builds using
      this build type will use the modified settings
      -->
      <!-- Do not edit this -->
      <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets" />
      <ProjectExtensions>
        <!--  DESCRIPTION
         The description is associated with a build type. Edit the value for making changes.
        -->
        <Description>THIS BUILD WILL BE PERFORMED AT INTEGRATION BRANCH CODE BASE.</Description>
        <!--  BUILD MACHINE
         Name of the machine which will be used to build the solutions selected.
        -->
        <BuildMachine>ATC5BSSBLD01</BuildMachine>
      </ProjectExtensions>
      <PropertyGroup>
        <!--  TEAM PROJECT
         The team project which will be built using this build type.
        -->
        <TeamProject>PSAS</TeamProject>
        <!--  BUILD DIRECTORY
         The directory on the build machine that will be used to build the
         selected solutions. The directory must be a local path on the build
         machine (e.g. c:\build).
        -->
        <BuildDirectoryPath>C:\INTEGRATION_BUILD_COMPILE</BuildDirectoryPath>
        <!--  DROP LOCATION
          The location to drop (copy) the built binaries and the log files after
         the build is complete. This location has to be a valid UNC path of the
         form
    \\Server\Share. The build machine service account and application
         tier account need to have read write permission on this share.
        -->
        <DropLocation>\\ATC5BSSBLD01\INTEGRATION_BUILD</DropLocation>
        <!--  TESTING
         Set this flag to enable/disable running tests as a post build step.
        -->
        <RunTest>false</RunTest>
        <!--  WorkItemFieldValues
          Add/edit key value pairs to set values for fields in the work item created
          during the build process. Please make sure the field names are valid
          for the work item type being used.
        -->
        <WorkItemFieldValues>Symptom=build break;Steps To Reproduce=Start the build using Team Build</WorkItemFieldValues>
        <!--  CODE ANALYSIS
           To change CodeAnalysis behavior edit this value. Valid values for this
           can be Default,Always or Never.

         Default - To perform code analysis as per the individual project settings
         Always  - To always perform code analysis irrespective of project settings
         Never   - To never perform code analysis irrespective of project settings
         -->
        <RunCodeAnalysis>Never</RunCodeAnalysis>
        <!--  UPDATE ASSOCIATED WORK ITEMS
         Set this flag to enable/disable updating associated workitems on a successful build
        -->
        <UpdateAssociatedWorkItems>true</UpdateAssociatedWorkItems>
        <!-- Title for the work item created on build failure -->
        <WorkItemTitle>Build failure in build:</WorkItemTitle>
        <!-- Description for the work item created on build failure -->
        <DescriptionText>This work item was created by Team Build on a build failure.</DescriptionText>
        <!-- Text pointing to log file location on build failure -->
        <BuildlogText>The build log file is at:</BuildlogText>
        <!-- Text pointing to error/warnings file location on build failure -->
        <ErrorWarningLogText>The errors/warnings log file is at:</ErrorWarningLogText>
       <!-- insert in PropertyGroup -->
       <SkipGet>false</SkipGet>
       <SkipClean>true</SkipClean>
       <SkipWorkItemCreation>false</SkipWorkItemCreation>
       <SkipGetChangesetsUpdateWorkItems>false</SkipGetChangesetsUpdateWorkItems>
       <SkipLabel>false</SkipLabel>
       <!-- <SkipPostBuild>true</SkipPostBuild>-->
      </PropertyGroup>
      <ItemGroup>
        <!--  SOLUTIONS
         The path of the solutions to build. To add/delete solutions, edit this
         value. For example, to add a solution MySolution.sln, add following line -
             <SolutionToBuild Include="$(SolutionRoot)\path\MySolution.sln" />

         To change the order in which the solutions are build, modify the order in
         which the solutions appear below.
        -->
        <SolutionToBuild Include="$(SolutionRoot)\CESA\CesaBase.sln" />
        <SolutionToBuild Include="$(SolutionRoot)\CSA\CSA.sln" />
      </ItemGroup>
      <ItemGroup>
        <!--  CONFIGURATIONS
         The list of configurations to build. To add/delete configurations, edit
         this value. For example, to add a new configuration, add following lines -
             <ConfigurationToBuild Include="Debug|x86">
                 <FlavorToBuild>Debug</FlavorToBuild>
                 <PlatformToBuild>x86</PlatformToBuild>
             </ConfigurationToBuild>

         The Include attribute value should be unique for each ConfigurationToBuild node.
        -->
       <ConfigurationToBuild Include="Release|Any CPU">
        <FlavorToBuild>Release</FlavorToBuild>
        <PlatformToBuild>Any CPU</PlatformToBuild>
       </ConfigurationToBuild>
     
      </ItemGroup>
      <ItemGroup>
        <!--  TEST ARGUMENTS
         If the RunTest is set to true then the following test arguments will be
         used to run tests.

         To add/delete new testlist or to choose a metadata file (.vsmdi) file, edit this value.
         For e.g. to run BVT1 and BVT2 type tests mentioned in the Helloworld.vsmdi file, add the following -

         <MetaDataFile Include="$(SolutionRoot)\HelloWorld\HelloWorld.vsmdi">
             <TestList>BVT1;BVT2</TestList>
         </MetaDataFile>

         Where BVT1 and BVT2 are valid test types defined in the HelloWorld.vsmdi file.
         MetaDataFile - Full path to test metadata file.
         TestList - The test list in the selected metadata file to run.

         Please note that you need to specify the vsmdi file relative to $(SolutionRoot)
        -->
        <MetaDataFile Include=" ">
          <TestList> </TestList>
        </MetaDataFile>
      </ItemGroup>
      <ItemGroup>
        <!--  ADDITIONAL REFERENCE PATH
         The list of additional reference paths to use while resolving references.
         For example,
             <AdditionalReferencePath Include="C:\MyFolder\" />
             <AdditionalReferencePath Include="C:\MyFolder2\" />
        -->
      </ItemGroup>

    </Project>

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems