I'm attempting to migrate an ASP.NET application from .NET 1.1 to 2.0 (and I'm also moving the development platform from VS.NET 2003 to VS.NET 2005). After some modification the application builds cleanly on the new platform but when I attempt to run in debug
mode I see the error shown below. I'm building on a new WinXP-64 machine (AMD Athlon 64 CPU).
If I change the target platform to "x86" in the solution properties, I can't build the app (hundreds of unresolved dependencies).
Can anyone point me in the right direction to solve this problem?
Many thanks
Steve F
Server Error in '/CMISWebAdminDevelopment' Application.
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
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.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
I am also having the same problem... 1.1 converting to 2.0, and 2003 converting to Vis Studio 2005. Also running 64bit Win XP. Did you find a solution?
Porting VS 2003 to VS2005 and chaging target from 32bit to x64.
I was developing on a regular 32 bit Win XP platform for a target x64 machine.
I had to change the IIS on the x64 bit machine to run 32 bit mode .Net 2.0. Lookup the microsoft article on IIS 32 vs 64 bit mode. This may not be the best solution, but it worked.
NeonSurge
Member
50 Points
10 Posts
" is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Apr 19, 2006 04:31 PM|LINK
If I change the target platform to "x86" in the solution properties, I can't build the app (hundreds of unresolved dependencies).
Can anyone point me in the right direction to solve this problem?
Many thanks
Steve F
Server Error in '/CMISWebAdminDevelopment' Application.
is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
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.BadImageFormatException: is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
Source Error:
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
david llamas
0 Points
1 Post
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Jun 26, 2007 01:52 PM|LINK
We are experiencing the same issue. Have you manage to resolve yet?
spolito
Member
4 Points
3 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Jul 20, 2007 03:35 PM|LINK
Hello
I am also having the same problem... 1.1 converting to 2.0, and 2003 converting to Vis Studio 2005. Also running 64bit Win XP. Did you find a solution?
Thanks and good luck.
forward.zhan...
Member
7 Points
2 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Sep 06, 2007 02:43 PM|LINK
i met the same problem, anyone can help us to resolve it?
spolito
Member
4 Points
3 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Sep 06, 2007 03:02 PM|LINK
I had the same problem, with a slight variation.
Porting VS 2003 to VS2005 and chaging target from 32bit to x64.
I was developing on a regular 32 bit Win XP platform for a target x64 machine.
I had to change the IIS on the x64 bit machine to run 32 bit mode .Net 2.0. Lookup the microsoft article on IIS 32 vs 64 bit mode. This may not be the best solution, but it worked.
david@davidl...
Member
147 Points
31 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
May 22, 2008 08:37 PM|LINK
1. Inside IIS (7) click on Application Pools.
2. Find the Application Pool that is configured for your web application in the list.
3. Select it, then click Advanced Settings on the right.
4. Second setting in the list: Enable 32-Bit Applications - must be set to True.
ASP.Net 32-bit IIS
David Walker, MCP, MCAD, MCSD, MVP - ASP/ASP.NET
www.davidlwalker.com
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
rchacon
Member
2 Points
1 Post
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Jan 15, 2010 09:13 PM|LINK
Excelente! Muchas gracias!
selnahwy
Member
2 Points
1 Post
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Mar 22, 2010 02:50 PM|LINK
Is there a way to enable this option via code (VBScript) or via command-line?
aperezNWO
Member
26 Points
13 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
May 25, 2010 03:30 PM|LINK
Thanks, it solved my issue.
Voldemort
Member
5 Points
7 Posts
Re: " is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)"
Oct 01, 2010 01:59 PM|LINK
Just wanted to say you saved my bacon today with that one...many thanks....