Just a day ago, one of my friend sent me email requesting help with following error:
is not a valid Win32 application. (Exception from HRESULT: 0×800700C1)
In fact this is not SQL Server error but it is of .NET application. The solution of this error is just changing configuration of IIS7.
Fix/Solution/Workaround:
Go to IIS.
Click on Application Pool.
Look for your web application in application pool.
Go to Advanced Settings by right clicking on previously selected application pool.
Enable 32-Bit Applications by checking it.
Reference : Pinal Dave (http://blog.SQLAuthority.com)




This is cool for the information. I have iis 5.0 installed. Can you let me know any solution with this. Probably I think (not sure) that this error is from IIS. Instead this is from .NET framework’s Dr. Watson’s debugger. And this is a link from microsoft website for the above error.
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&query=not+a+valid+win32+application.&mode=r
Last but not least. I am not an expert in english grammer. Can you please check the grammer mistake on the first line Pival. I noticed this issue in one of my grammer books that I read these days.