Click here to Skip to main content
14,603,049 members
Rate this:
Please Sign up or sign in to vote.
See more:
Task "AspNetCompiler"
3> Task Parameter:PhysicalPath=C:\TFS2012\InSite Applications\InSiteWebAPI\Development\Source\InSiteWebAPI\obj\x64\Release\AspnetCompileMerge\Source
3> Task Parameter:TargetPath=C:\TFS2012\InSite Applications\InSiteWebAPI\Development\Source\InSiteWebAPI\obj\x64\Release\AspnetCompileMerge\TempBuildDir
3> Task Parameter:VirtualPath=/
3> Task Parameter:Debug=False
3> Task Parameter:Updateable=True
3> Task Parameter:ToolPath=C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319
3> AspNetCompiler: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v / -p "C:\TFS2012\InSite Applications\InSiteWebAPI\Development\Source\InSiteWebAPI\obj\x64\Release\AspnetCompileMerge\Source" -u "C:\TFS2012\InSite Applications\InSiteWebAPI\Development\Source\InSiteWebAPI\obj\x64\Release\AspnetCompileMerge\TempBuildDir"
3> AspNetCompiler: Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929
3> AspNetCompiler: Utility to precompile an ASP.NET application
3> AspNetCompiler: Copyright (C) Microsoft Corporation. All rights reserved.
3> AspNetCompiler:
3>ASPNETCOMPILER(0,0): Error ASPCONFIG: Could not load file or assembly 'ClassAdi.Net' or one of its dependencies. An attempt was made to load a program with an incorrect format.
3> AspNetCompiler: The command exited with code 1.
3> Done executing task "AspNetCompiler" -- FAILED.
3> Done building target "AspNetPreCompile" in project "InSiteWebAPI.csproj" -- FAILED.
3>Done building project "InSiteWebAPI.csproj"
Posted
Comments
PIEBALDconsult 4-Mar-14 23:44pm
   
I see that when I try to load an x86 assembly from an AnyCPU assembly. Check the target type of your project and see whether or not changing it to x64 solves it.
MukeshSinha 4-Mar-14 23:53pm
   
Thanks,
My assembly is x64 bit and i have already set target type of project x64 i got same issue..

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

I think it is just the other way round to what PIEBALDConsult told you: your program is a 64bit program. And then you try to load a dll ('ClassAdi.Net') which is a 32bit dll, or a bit-ness agnostic dll which depends on a 32bit dll. Hence I'd suggest to set the target platform to x86.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100