IIS7 on 64 bit Windows

Server Error in '/' Application.

is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)

 

It seems to be a good week to get caught out with technical jiggery pokery! Earlier on in the week I was trying to get one of our ASP.NET projects to load up into IIS 7 and was greeted by the above error message. Win32 Application? It's meant to be a .NET application! It shouldn't care about what kind of processor I've got. I happen to be running 64 bit Vista (until the next re-install, when I'll be going back to 32 bit without any questions asked :P) so all of my .NET applications get JIT compiled to 64 bit. This is also true with ASP.NET applications, which meant IIS complaining about a Win32 application was probably something to do with that.

I had a look around the internet, and found that IIS can be configured to host applications as 32 bit apps rather than 64 bit. This can be found in the screenshot below.

The cause of this error in the first place though was an unmanaged DLL that our application links to. As it's a 32 bit dll, it cannot be called from 64 bit software.

Published 04 February 2008 12:12 by Mat Steeples

Comments

# re: IIS7 on 64 bit Windows@ 11 June 2008 23:39

Thanks Mat, I've been searching Microsoft and everything was pointing to isapi.dll is the wrong directory.  Nothing from Microsoft mentioned application pooling.

I now have the web running on this machine.

Again thanks,

Bruce

Bruce

# re: IIS7 on 64 bit Windows@ 12 June 2008 11:55

Were you able to figure this out?

PB

Leave a Comment

(required) 
(required) 
(optional)
(required)