Solved

Application error when running cmd (dos prompt) in Windows 8

Posted on 2013-11-21
12
752 Views
Last Modified: 2013-11-22
We were trying to make an old dos apps to work in Windows 8 and after a while, the dos prompt (cmd.exe)  stopped working;  is gives the following error:

---------------------------
cmd.exe - Application Error
---------------------------
The application was unable to start correctly (0xc0000135). Click OK to close the application.
---------------------------
OK  
---------------------------


Please advice how to fix.
0
Comment
Question by:rayluvs
12 Comments
 
LVL 24

Expert Comment

by:aadih
ID: 39666779
Try:

(1) Repairing .NET Framework.

(2) Scan for malware.
0
 

Author Comment

by:rayluvs
ID: 39666821
how do i repair .NET?
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 39666831
probably incompatibility with the application; have you tried any compatibility options?

i honestly can't see how broken .net installation can affect the windows command prompt that's been in existence for some 20 years
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 24

Accepted Solution

by:
aadih earned 500 total points
ID: 39666838
Please use Microsoft .NET Framework Repair Tool:

http://www.microsoft.com/en-us/download/details.aspx?id=30135 >
0
 

Author Comment

by:rayluvs
ID: 39667062
FYI, the application in question is Windows 8 own "cmd.exe", the DOS command prompt.  This error has not occurred in no other apps.  This was working fine until a couple hours ago.

Like my question says:  we were working with an old dos 32 bit apps that run in the cmd.exe or dos environment.  We wanted to run the apps in our Windows 8 PC.  In order to run the apps we have to open a command prompt instance.  For some strange reason, we open a command prompt to just do a ping of a web domain and instead of a command prompt windows we got the error we posted.

This being said, should we direct the attention to .NET framework?  (nevertheless, we will download the tool)
0
 
LVL 24

Expert Comment

by:aadih
ID: 39667086
If the problem is only hours old. Boot up your PC in safe mode with command prompt and type rstrui.exe to restore to an earlier time (e.g., yesterday). This may be the easiest and the quickest fix.
0
 
LVL 54

Expert Comment

by:McKnife
ID: 39667112
You mean, now you can't start the command prompt and execute anything, like ping, anymore? If so start the system filechecker with the offline option from a win8 recovery environment/win8 setup dvd or second win8-system where you can hook the drive to: http://www.winhelponline.com/blog/run-sfc-offline-windows-7-vista/
0
 

Author Comment

by:rayluvs
ID: 39667153
That is correct, cannot open a command prompt.  Ran the tool and in the last screen is asking to re-install framework (see pic below):



Click Next and it displayed a series of logs files to sen MS:



As for the file checker, we had horrible experience with this because it would replace some files with older version thus, making matters worse.

FYI:
Googles also on this topic and it points to framework.  Even though no links talk about command prompt and the error, it does say could be framework.  So here is the version we have installed:

 ->C:\Windows\Microsoft.NET\Framework64\v2.0.50727
4.0.30319.34003
  ->C:\Windows\Microsoft.NET\Framework64\v4.0.30319

< Installed .NET Frameworks >
.NET FW 2.0 SP 2
.NET FW 3.0 SP 2
.NET FW 3.5 SP 1
.NET FW 4.5
.NET FW 4.5.1
0
 

Author Comment

by:rayluvs
ID: 39667740
Kept googling and found suggestions which proceeded to execute:

test if command prompt works in "Safe-Mode" (it works perfectlywith no problem)
run antivirus and antispyware
run a disk cleanup
delete manually system “temp” folder contents
Turned off "Microsoft .NET framework" from "Turn Windows features on or off"

Recently also found a suggestion to "run NET Framework cleanup Utility" but can't seem to locate it.

If you guys knows where it is please advice.

question:
All my apps that uses framework has not shown any problem, it is only command prompt that shows this problem.  Do we have to really do all this work to framework  if is only cmd.exe with the problem?
0
 

Author Comment

by:rayluvs
ID: 39670039
It working... couldn't pin point what really solved it, but did the repair, cleanups.  It didn't really work (and i restarted the PC).  But this morning, seems to be ok.

Will proceed close question.
0
 

Author Closing Comment

by:rayluvs
ID: 39670045
Chose this answer since it was one of the things i did though not sure it soved (maybe a combination with cleanups).
0
 
LVL 24

Expert Comment

by:aadih
ID: 39670071
Recently also found a suggestion to "run NET Framework cleanup Utility" but can't seem to locate it.

Download dotnetfx_cleanup_tool.zip from at:

http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx >

Have used in the past (XP days).

Or do you mean the one you can download from here:

http://www.majorgeeks.com/files/details/microsoft_net_framework_cleanup_tool.html >
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With the recent demise of Windows XP support, you may be a new convert to Windows 7 or Windows 8. Or perhaps you've been on W7 or W8 for a while, but just recently acquired your first scanner for the new OS. In either case, you are likely to be very…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now