Need emergency help with dw20.exe process? [closed] - c#

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
recently I have deployed asp.net application to production windows server 2008.
after 10-20 min, starts dw20.exe process (Microsoft.net error reporting shim), which takes almost all CPU available which cause to very slow response of my application.
No error no exception in Event Viewer.
I right clicked on the dw20.exe process and created the dump file to analyze what causing the issue.
Then I opened this file in WidDbg. run command .loadby sos mscorwks and get Unable to find module 'mscorwks'
It looks like I'm missing something or doing it wrong.
How to determine what cause an exception in application? how to analyze DMP file created?
Is it possible to stop this service?

Try adding ELMAH (http://code.google.com/p/elmah/) to the project so that you can grab the error info in an easier fashion.

When we get hit by rogue CPU, we use Sam Saffron's CPU analyzer to see what it is busy doing. Most times it turns out to be a bad regex (no, seriously; this bites too often for comfort).

The problem was that one of the method caused recursive loop.

Related

My computer lost power while working on a project, how can I recover my data? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I was working on a c# project on my computer when I accidentally removed the power cord.
When I started my computer back up I tried to load my project, but I got a error:
There is no editor available for 'c\user\documents\visualstudio 2013\projects\project_name\from1.cs
make sure the application for the file type(.cs) is installed
On the same project I have different forms and those still work, only from1 is not working. The data set only contains 0's.
What can I do to fix this?
Either something got corrupted in your Visual Studio installation, or (more likely) the file you were working on before your computer was shut down (which I assume was from1.cs).
Are you able to open from1.cs and from1.Designer.cs in something like Notepad? You may want to look for NULL terminators in your file as suggested by this answer on this (possibly duplicate) question.
If that doesn't work, either try copying the existing code from from1.cs and from1.Designer.cs into new files in your project, or repairing/reinstalling Visual Studio. Just make sure to make a backup of your project first, just in case! ;)

Cannot copy output file, it is being used by another process [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
The first solution I found was to close everything and restart my PC.
And after that the program started to execute again.
I am kind of blanked here right now, can't seem to find the reason behind this error.
The error messages below will appear any time your executable can't be written to. The most common cause is that your application is still in memory (even when you think it isn't) and as such cannot be overwritten.
Could not copy "obj\Debug\WPF.exe" to "bin\Debug\WPF.exe". Exceeded retry count of 10. Failed.
Unable to copy file "obj\Debug\WPF.exe" to "bin\Debug\WPF.exe". The process cannot access the file "bin\Debug\WPF.exe" because it is being used by another process.
Open Task Manager to see if WPF.exe is still in memory and kill it if it is. Alternatively, execute the command below to force it to be killed.
taskkill /f /im WPF.exe
If you ran the application using Ctrl+F5 you won't get the stop debugger buttons you're probably used to and might not notice that it is still running. Alternatively, you might have some code in the application that is preventing it from shutting down cleanly which results in the main window going away but the application staying in memory.

Debugging 500 Internal Server Errors [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Can someone tell me what are the best methods for debugging why a 500 error was thrown if it's not being stored in the logs? I have a website written in C# and am using SQL Server Management Studio.
The problem is that a user is sometimes getting 500 errors on logging into the site. I'm using Elmah to log errors in the database, and it usually works great, but it is not logging these errors in particular. I know this for a fact because I know what time the error occurred, and all the logs are timestamped.
Are there any other tools I could be using if error logs aren't showing these errors?
I apologize if this question is a duplicate, but I searched lots of other posts and didn't find a match.
IIS has several logs. Look for a folder called HTTPErr, probably in Windows\System32\logfiles. This can contain more data.
With a 500 error, it won't ever get to your code, most likely, so there's not a lot you can do really.

Running C# like java [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Running java in batch would look like this
#ECHO OFF
java -Xmx512m -Xms512m -jar "PROGRAM.jar"
PAUSE
that would give it 512mb of ram. How could I do that in C#?
The compiled .exe file from c# has a header, which can be executed by the windows shell, with double click, as how you would start Java in command line, but the command line it would be saved into a bat file. It is very different from a native, win32 exe. It needs a Java like virtual machine, just the runtime compilation is different.
There are many options how to give launch and runtime parameters, one of is the config file. Please take a look Here.
Use Windows Job Objects API.
Jobs can limit memory usage and process priority.
There are 2 interpretations of your question as currently written:
1 - If you need to call a C# application from the command line / batch file just
Generate an EXE (such as a Console Application)
Call it directly by its filename (for example C:\MyApp\MyApp.exe)
2 - Limiting the amount of memory a certain program may consume is a bad idea.
Make sure your application only consumes the neccesary memory by writing good code.
I'm not aware of a mechanism that will limit the amount of memory a given .Net application can consume. And if it were such a thing, it's still a bad idea. Whenever the application reached that limit it would simply crash with an OutOfMemoryException.

Server RAID 5 failed...all I have left is my compiled website [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Yesterday, 2 of the 3 drives in my dev server's RAID 5 decided to die on me (with no warning). I've come to grips with the fact that my data is most likely lost unless I shell out some major bucks for professional data-resortoration. People, don't be an idiot like me and treat your RAID as a data backup!
Luckily I published the site about 4 hours before my files went bye-bye. Is there any way to run some [magical] program to restore my compiled site to their original files?
Also: I develop on one machine with the files stored on the server...is there some visual studio 2010 web cache on my local machine (the one that didn't crash) that I may be able to use?
you can try http://www.red-gate.com/products/reflector/ on the compiled site. May work.
If you have lost 2 of 3 drives you cannot get your data back.
You can use reflector on your compiled files to get your source code back. The standard version or reflector is free.
Log in to your FTP server and see what's there. Maybe the files were copied there.
I restored my RAID 100%.
The RAID configuration and some of Windows' files became corrupted. All I had to do was reconfigure the RAID and replace the boot files for Windows.

Categories