Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 792891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:03:53+00:00 2026-05-14T22:03:53+00:00

Could not load file or assembly ‘System.Data’ or one of its dependencies. An attempt

  • 0

Could not load file or assembly
‘System.Data’ or one of its
dependencies. An attempt was made to
load a program with an incorrect
format

We have just upgraded one of our projects to .Net 4.0 and have re-configured our build server (Cruise Control .Net). Anyone help with the above error? I have included more trace below.

>     debug:
>     
>          [copy] Copying 1 file to 'C:\Builds\SilverChip\Working\sc.website\web.config'.
>          [copy] Copying 1 file to 'C:\Builds\SilverChip\Working\sc.admin\web.config'.
>          [copy] Copying 1 file to 'C:\Builds\SilverChip\Working\sc.website\bin\Intelligencia.UrlRewriter.dll'.
>          [copy] Copying 1 file to 'C:\Builds\SilverChip\Working\sc.website\bin\UrlRewritingNet.UrlRewriter.dll'.
>          [exec] Microsoft (R) Build Engine Version 4.0.30319.1
>          [exec] [Microsoft .NET Framework, Version 4.0.30319.1]
>          [exec] Copyright (C) Microsoft Corporation 2007. All rights
> reserved.
>          [exec] 
>          [exec] Build started 11/05/2010 12:02:16.
>          [exec] Project "C:\Builds\SilverChip\Working\Silverchip.sln"
> on node 1 (default targets).
>          [exec] ValidateSolutionConfiguration:
>          [exec]   Building solution configuration "Debug|Any CPU".
>          [exec] Project "C:\Builds\SilverChip\Working\Silverchip.sln"
> (1) is building
> "C:\Builds\SilverChip\Working\sc.lib\sc.lib.csproj"
> (2) on node 1 (default targets).
>          [exec] CoreCompile:
>          [exec] Skipping target "CoreCompile" because all output files
> are up-to-date with respect to the
> input files.
>          [exec] _CopyAppConfigFile:
>          [exec] Skipping target "_CopyAppConfigFile" because all
> output files are up-to-date with
> respect to the input files.
>          [exec] CopyFilesToOutputDirectory:
>          [exec]   sc.lib -> C:\Builds\SilverChip\Working\sc.lib\bin\Debug\sc.lib.dll
>          [exec] Done Building Project "C:\Builds\SilverChip\Working\sc.lib\sc.lib.csproj"
> (default targets).
>          [exec] Project "C:\Builds\SilverChip\Working\Silverchip.sln"
> (1) is building
> "C:\Builds\SilverChip\Working\sc_admin.metaproj"
> (3) on node 1 (default targets).
>          [exec] Build:
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\sc.lib.dll"
> to "sc.admin\\Bin\sc.lib.dll".
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\SubSonic.Core.dll"
> to "sc.admin\\Bin\SubSonic.Core.dll".
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\sc.lib.pdb"
> to "sc.admin\\Bin\sc.lib.pdb".
>          [exec]   C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
> -v /sc.admin -p sc.admin\ -u -f -d PrecompiledWeb\sc.admin\ 
>          [exec] ASPNETCOMPILER : error ASPCONFIG: Could not load file or
> assembly 'System.Data' or one of its
> dependencies. An attempt was made to
> load a program with an incorrect
> format.
> [C:\Builds\SilverChip\Working\sc_admin.metaproj]
>          [exec] Done Building Project "C:\Builds\SilverChip\Working\sc_admin.metaproj"
> (default targets) -- FAILED.
>          [exec] Project "C:\Builds\SilverChip\Working\Silverchip.sln"
> (1) is building
> "C:\Builds\SilverChip\Working\sc_website.metaproj"
> (4) on node 1 (default targets).
>          [exec] Build:
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\sc.lib.dll"
> to "sc.website\\Bin\sc.lib.dll".
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\SubSonic.Core.dll"
> to
> "sc.website\\Bin\SubSonic.Core.dll".
>          [exec]   Copying file from "C:\Builds\SilverChip\Working\sc.lib\bin\Debug\sc.lib.pdb"
> to "sc.website\\Bin\sc.lib.pdb".
>          [exec]   C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe
> -v /sc.website -p sc.website\ -u -f -d PrecompiledWeb\sc.website\ 
>          [exec] ASPNETCOMPILER : error ASPCONFIG: Could not load file or
> assembly 'System.Data' or one of its
> dependencies. An attempt was made to
> load a program with an incorrect
> format.
> [C:\Builds\SilverChip\Working\sc_website.metaproj]
>          [exec] Done Building Project "C:\Builds\SilverChip\Working\sc_website.metaproj"
> (default targets) -- FAILED.
>          [exec] Done Building Project "C:\Builds\SilverChip\Working\Silverchip.sln"
> (default targets) -- FAILED.
>          [exec] 
>          [exec] Build FAILED.
>          [exec] 
>          [exec] "C:\Builds\SilverChip\Working\Silverchip.sln"
> (default target) (1) ->
>          [exec] "C:\Builds\SilverChip\Working\sc_admin.metaproj"
> (default target) (3) ->
>          [exec] (Build target) -> 
>          [exec]   ASPNETCOMPILER : error ASPCONFIG: Could not load file
> or assembly 'System.Data' or one of
> its dependencies. An attempt was made
> to load a program with an incorrect
> format.
> [C:\Builds\SilverChip\Working\sc_admin.metaproj]
>          [exec] 
>          [exec] 
>          [exec] "C:\Builds\SilverChip\Working\Silverchip.sln"
> (default target) (1) ->
>          [exec] "C:\Builds\SilverChip\Working\sc_website.metaproj"
> (default target) (4) ->
>          [exec]   ASPNETCOMPILER : error ASPCONFIG: Could not load file
> or assembly 'System.Data' or one of
> its dependencies. An attempt was made
> to load a program with an incorrect
> format.
> [C:\Builds\SilverChip\Working\sc_website.metaproj]
>          [exec] 
>          [exec]     0 Warning(s)
>          [exec]     2 Error(s)
>          [exec]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:03:53+00:00Added an answer on May 14, 2026 at 10:03 pm

    I fixed this by removing all the DLL’s in the BIN folder and allowing the build to re-load the new .net 4.0 DLL’s

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could not load file or assembly 'CrystalDecisions.ReportAppServer.ClientDoc, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its
I receive Could not load file or assembly 'DeployLX.Licensing.v3, Version=3.1.2000.0, Culture=neutral, PublicKeyToken=798276055709c98a' or one
This is my Errormessage: Could not load file or assembly 'file:///C:\Windows\system32\Rule.dll'. The system cannot
I am getting the following error: Could not load file or assembly 'System.Web.DynamicData, Version=3.5.0.0,
The exact error is as follows Could not load file or assembly 'Microsoft.SqlServer.Replication, Version=9.0.242.0,
Add service reference to Amazon service fails, saying Could not load file or assembly
I got the following error when executing an unmanaged assembly: Could not load file
This has been bothering me for a while now: Could not load file or
I'm getting an error like this in an application, Could not load file or
Just could not get this one and googling did not help much either.. First

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.