Re: EXE compiles but 'Not a valid Win32 Application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Regarding what I just posted: for now, I've decided to delay a post on error
ASP 0177 (0x800AEA5F). Others claim it is 'not recognised' by Microsoft or
that it is officially named 'unexplained', and depending on how I tweaked
things earlier, I sometimes got Security messages. So my first step will be
to consult with more security-knowledgeable friends about making sure I have
security configured correctly. Two things you might be able to answer for me
though, since I suspect they cannot:

1. What 'user' is running it? That is, for what user 'group' or role should
I be fixing the security?

2. How do you register an object in Component Services. That is evidently
one way to get at its security. For no reason I know of, I find the object in
question in Component Services on one of the two computers but not on the
other.

--
Peyton Todd


"Ken Halter" wrote:

"Peyton Todd" <PeytonTodd@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:AF907E8C-4432-4576-B35F-5A05F0CF9A64@xxxxxxxxxxxxxxxx

Thanks for whatever help you can provide!


Which, in this case, may not be much... I've never touched a web app... but,
if the exact same exe, copied from the exact same source, reports that it's
"Not a valid Win32 Application" on one PC and not the other, there's
definitely corruption somewhere (pretty obvious, eh? <g>) Have you tried
building and running a simple "Hello_World.exe" on both PCs? Are you
creating a setup package that includes the basic VB runtimes, etc?

As a last resort, maybe you can try renaming the "problem" exe and copying
the "good" exe again. In theory, since the old file was renamed instead of
deleted, the new file will occupy a different location on the hard-drive. If
that works, you might want to start shopping for a new hard drive <g>... Are
both PCs running the same file system? Both NTFS or both Fat32?

If you have a usable hex editor/viewer, you can look at the first few
(hundred) bytes while it's installed on both PCs.

The various EXE file format specifications are available here.... you'd want
the "Portable Executable Format" (someone will pop in if I'm mistaken)
http://www.wotsit.org/list.asp?fc=5

Using a decent hex editor/viewer, it shouldn't take long to see if the file
is hosed.... finding out how it got that way's another story.

Check for mouse hair in your CPU fan. That will surely cause your PC to
overheat.... happened to a friend of mine (true story!)... and gave me
another reason to re-install my "slot covers" on the back of the PC case <g>

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm



.



Relevant Pages

  • Re: Cant Open or Save Attachments - Another case
    ... To be able to open those type of files, you need to lower your security ... Open Internet Explorer, click Tools/Internet Options/Security tab ... >> There is no file association for .exe, ... > attachments save fine, and be "blocked" from running until I explicitly ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • RE: strange ftp site
    ... Here are some quick prelim results of running strings against the exe file. ... A security error of unknown cause has been detected which has ... Network with over 10,000 of the brightest minds in information security ... most highly-anticipated industry event of the year. ...
    (Incidents)
  • Re: .NET Security
    ... You should be able to start a .NET exe file from a file share just like any other executable, provided that you have the latest updates. ... I'm catching up to .NET development and I'll reached a point where the security aspects are raising a barrier to usefulness and productivity. ... As long as the local intranet zone is at its default level and the EXE/DLL is on a remote drive, ... Dim ms As MEMORYSTATUSEX ...
    (microsoft.public.dotnet.security)
  • Re: Required permission settings to allow exe to modify text files
    ... Jason, thank you for your suggestion but I don't have the security ... properties tab available to me. ... >> longer update text files (stored in the same directory as the exe). ...
    (microsoft.public.inetserver.iis.security)
  • Re: ASP.NET Security
    ... the extension - that's it - you can also add .exe references - Visual Studio does not allow this but csc.exe does. ... i can simply turn CAS off if i want to bypass a lot of stuff - i could use reflector to decompile the assembly - i could even patch the CLR to turn off all security checks... ... The easiest quickest simplest solution is to not use a .dll - just ...
    (microsoft.public.dotnet.framework.aspnet.security)