1. How to detect an executable file?
In my application, users can upload files and store them in a database. I would like to prevent them from uploading executable files. The question is: How do I detect if it is an executable file? I am not asking about checking the .exe extension, which is easy, and unreliable because one can easily rename malicious.exe to prettygirl.jpg. If you have used gmail attachment, you would know. I googled, but cannot find anything helpful. Your hint is highly appreciated.
2. How to detect memory leak and detect who causes a memory leak - Windows CE
3. Error: Task executable could not be run. Executable not a valid Win32 application !?
Hallo, I just tried to compile my application, when I got following error: ------------------------------------------------------------------------- The specified task executable could not be run. The specified executable is not a valid Win32 application. ------------------------------------------------------------------------- When I click on "Show Error Help", the program searches for "MSBuild.ToolTask.CouldNotStartToolExecutable" in the documentation, but finds nothing. Does anybody know what causes this error and how I can get my application to build again? Thanks, Firona
4. Making an executable - CSharp / C#
5. VS 2005 - Problems deploying C# executable to target
I have tried everything I could find in this and other forums.
I've developed a simple application in VS 2005, but when trying to
deploy it to my device (ARM4VI based, CE6.0) I always get "Unable to
load the CLR error" Checking and unchecking the "deploy the latest
version of .NET compact framework" doesn't seem to help.
I have copied to target and executed "NETCFv2.wce5.armv4i.cab", but
got an error.
Here is the LOG file content:
01/01/2006 12:05:37: Entered Install_Init().
First Call: Yes
Previously Installed: No
Installation folder is: '\Windows'.
01/01/2006 12:05:37: Build 2.0.7045.00 created on Feb 13 2007 at
22:23:41
01/01/2006 12:05:37: Device CPU: 'ARMV4I', 05020000 (84017152)
01/01/2006 12:05:37: 6.00
01/01/2006 12:05:37: AKU string : ''
01/01/2006 12:05:37: OEM info : 'VR35'
01/01/2006 12:05:37: Our trust level is: 2
01/01/2006 12:05:37: User LCID: 1033
01/01/2006 12:05:37: System LCID: 1033
01/01/2006 12:05:37: Invoker's command line: '/noui \Windows
\NETCFV2.wce5.armv4i.cab'
01/01/2006 12:05:37: Memory status, K --------------------------
01/01/2006 12:05:37: Load : 27
01/01/2006 12:05:37: Physical : 55864
01/01/2006 12:05:37: Physical free : 41160
01/01/2006 12:05:37: Virtual : 1048576
01/01/2006 12:05:37: Virtual free : 1047936
01/01/2006 12:05:37: Storage status, K -------------------------
01/01/2006 12:05:37: Available to us: 49716
01/01/2006 12:05:37: Total storage : 55768
01/01/2006 12:05:37: Available total: 49716
01/01/2006 12:05:37: -------------------------------------------
01/01/2006 12:05:37: About to process registry.
01/01/2006 12:05:37: Created CF registry key OK.
01/01/2006 12:05:37: Looking for upgradeable installations for version
'2.0.7045.00'
01/01/2006 12:05:37: Added new CF version value '2.0.7045.00'.
01/01/2006 12:05:37: CF registry key closed.
01/01/2006 12:05:38: Entered Install_Exit().
Failed Dirs: 0
Failed Files: 0
Failed RegKeys: 0
Failed RegVals: 0
Failed Shortcuts: 0
01/01/2006 12:05:38: Memory status, K --------------------------
01/01/2006 12:05:38: Load : 27
01/01/2006 12:05:38: Physical : 55864
01/01/2006 12:05:38: Physical free : 41156
01/01/2006 12:05:38: Virtual : 1048576
01/01/2006 12:05:38: Virtual free : 1047936
01/01/2006 12:05:38: Storage status, K -------------------------
01/01/2006 12:05:38: Available to us: 49716
01/01/2006 12:05:38: Total storage : 55768
01/01/2006 12:05:38: Available total: 49716
01/01/2006 12:05:38: -------------------------------------------
01/01/2006 12:05:38: About to verify reference count.
01/01/2006 12:05:38: 6.00
01/01/2006 12:05:38: About to process alternative files.
01/01/2006 12:05:38: 6.00
01/01/2006 12:05:38: Processing alternative file: '\Windows\.NET CF
2.0\cgacutil.exe.-500~-500~ARMV4I'.
01/01/2006 12:05:38: Special file extension: '.-500~-500~ARMV4I'.
01/01/2006 12:05:38: File is intended for OS: -500 to -500, CPU:
ARMV4I
01/01/2006 12:05:38: Device CPU: 'ARMV4I', 05020000 (84017152)
01/01/2006 12:05:38: CPU matches.
01/01/2006 12:05:38: Version MIN ignored.
01/01/2006 12:05:38: Version MAX ignored.
01/01/2006 12:05:38: Querying version of file '\Windows\.NET CF
2.0\cgacutil.exe.-500~-500~ARMV4I'.
01/01/2006 12:05:38: Version determined to be: 2.0.7045.0.
01/01/2006 12:05:38: Get version completed.
01/01/2006 12:05:38: Querying version of file '\Windows
\cgacutil.exe'.
01/01/2006 12:05:38: Version determined to be: 2.0.7045.0.
01/01/2006 12:05:38: Get version completed.
01/01/2006 12:05:38: Suggestion: overwrite.
01/01/2006 12:05:38: Copy file from '\Windows\.NET CF
2.0\cgacutil.exe.-500~-500~ARMV4I' to '\Windows\cgacutil.exe': done.
01/01/2006 12:05:38: Delete file '\Windows\.NET CF
2.0\cgacutil.exe.-500~-500~ARMV4I': done.
01/01/2006 12:05:38: Processing alternative file: '\Windows\.NET CF
2.0\mscoree.dll.-500~-500~ARMV4I'.
01/01/2006 12:05:38: Special file extension: '.-500~-500~ARMV4I'.
01/01/2006 12:05:38: File is intended for OS: -500 to -500, CPU:
ARMV4I
01/01/2006 12:05:38: Device CPU: 'ARMV4I', 05020000 (84017152)
01/01/2006 12:05:38: CPU matches.
01/01/2006 12:05:38: Version MIN ignored.
01/01/2006 12:05:38: Version MAX ignored.
01/01/2006 12:05:38: Querying version of file '\Windows\.NET CF
2.0\mscoree.dll.-500~-500~ARMV4I'.
01/01/2006 12:05:38: Version determined to be: 2.0.7045.0.
01/01/2006 12:05:38: Get version completed.
01/01/2006 12:05:38: Querying version of file '\Windows\mscoree.dll'.
01/01/2006 12:05:38: Version determined to be: 2.0.7045.0.
01/01/2006 12:05:38: Get version completed.
01/01/2006 12:05:38: Suggestion: overwrite.
01/01/2006 12:05:38: Copy file from '\Windows\.NET CF
2.0\mscoree.dll.-500~-500~ARMV4I' to '\Windows\mscoree.dll': done.
01/01/2006 12:05:38: Delete file '\Windows\.NET CF
2.0\mscoree.dll.-500~-500~ARMV4I': done.
01/01/2006 12:05:38: Attempting to remove old files from GAC.
01/01/2006 12:05:38: Delete GAC list file: failure
01/01/2006 12:05:38: Run: '\Windows\cgacutil.exe /silent /refresh ',
error code: 0 (00000000), exit code: -2147483648 (80000000)
01/01/2006 12:05:38: Refreshed GAC.
01/01/2006 12:05:38: About to add files to the GAC.
01/01/2006 12:05:38: GAC list file opened.
01/01/2006 12:05:38: Writing UTF8 signature: done.
01/01/2006 12:05:38: Adding file 'mscorlib.dll': added.
01/01/2006 12:05:38: Adding file 'system.dll': added.
01/01/2006 12:05:38: Adding file 'system.drawing.dll': added.
01/01/2006 12:05:38: Adding file 'system.messaging.dll': added.
01/01/2006 12:05:38: Adding file 'system.web.services.dll': added.
01/01/2006 12:05:38: Adding file 'system.windows.forms.dll': added.
01/01/2006 12:05:38: Adding file 'system.windows.forms.datagrid.dll':
added.
01/01/2006 12:05:38: Adding file 'system.xml.dll': added.
01/01/2006 12:05:38: Adding file 'system.net.irda.dll': added.
01/01/2006 12:05:38: Adding file 'system.data.dll': added.
01/01/2006 12:05:38: Adding file 'microsoft.visualbasic.dll': added.
01/01/2006 12:05:38: Adding file 'microsoft.windowsce.forms.dll':
added.
01/01/2006 12:05:38: Adding file
'Microsoft.WindowsMobile.DirectX.dll': added.
01/01/2006 12:05:38: Adding file 'CustomMarshalers.dll': added.
01/01/2006 12:05:38: Closed list file.
01/01/2006 12:05:38: Run: '\Windows\cgacutil.exe /silent /id \Windows
\Microsoft .NET CF 2.0.GAC', error code: 0 (00000000), exit code:
-2147483648 (80000000)
01/01/2006 12:05:38: GACing: failed.
01/01/2006 12:05:38: Unable to add files to GAC. Installation aborted.
01/01/2006 12:05:38: Memory status, K --------------------------
01/01/2006 12:05:38: Load : 27
01/01/2006 12:05:38: Physical : 55864
01/01/2006 12:05:38: Physical free : 41136
01/01/2006 12:05:38: Virtual : 1048576
01/01/2006 12:05:38: Virtual free : 1047936
01/01/2006 12:05:38: Storage status, K -------------------------
01/01/2006 12:05:38: Available to us: 49792
01/01/2006 12:05:38: Total storage : 55768
01/01/2006 12:05:38: Available total: 49792
01/01/2006 12:05:38: -------------------------------------------
01/01/2006 12:05:38: Entered Uninstall_Init().
Installation folder is: '\Windows'.
......................
......................
.......................
Can anyone assist?
Thanks
6. Running executables from a c# programme
7. embedding executable as resource?
Hi, Let's say I have a project, and I add notepad.exe into it and set its property as an embedded resource. Now, when I build the project and run it, I want my code to launch notepad.exe. How can I do this? Thanks in advance, Davsi