IIS Express worker process has stopped working - visual-studio-2012

I am having a problem "IIS Express worker process has stopped working".
I'm developing a project using ASP.NET MVC.
This is visual studio on may be a sample project.
Windows 7 Using.
My Steps 1 open project on Visual Studio 2012
My Steps 2 Build my Project
My Steps 3 Run my project
Error Details
Faulting application name: iisexpress.exe, version: 8.0.8418.0, time stamp: 0x4fbaa9e8
Faulting module name: ApiRd.dll, version: 0.0.0.0, time stamp: 0x52f26a34
Exception code: 0xc000041d
Fault offset: 0x0000239c
Faulting process id: 0x12ec
Faulting application start time: 0x01cf2d83a6972b10
Faulting application path: C:\Program Files (x86)\IIS Express\iisexpress.exe
Faulting module path: C:\Users\Administrator\AppData\Local\Obqcics\ApiRd.dll
Report Id: e4f689ae-9976-11e3-9426-e840f2ac7e6e
Faulting package full name:
Faulting package-relative application ID:

Close out Visual Studio completely, then check your system tray and stop any instances of IIS Express that might be running. Re-start Visual Studio, create a new MVC project based on one of the standard templates. Check the properties to ensure it's set to use IIS Express, and then run it. If you don't get the same error, check any custom code your might have in the troubled project's Global.asax.cs (or .vb) file. Put debug points on the first line of every method you have code in (Application_Start, etc.). Step over each line and see where it breaks.
If you don't have any custom code in there, close out VS and clean the ASP.NET temp directories. Do a restart, and see if the problem persists.

The problem seems to have been caused by AVG antivirus.
I was able to solve by uninstalling AVG antivirus.

Right click on your ASP.NET MVC project.
Select 'Properties' option.
Go to 'Web' settings and choose option 'Use Visual Studio Development Server' in 'Servers' category.
Now try to run the application, it will execute.

Run your visual studio and your browser as Administrator

I had default chrome as a default browser and was getting the same issue while debugging. I changed the default browser in visual studio to Internet Explorer and then tried again. I was able to run my project successfully. Hope this may help.

Related

IIS 10 App Pool Keeps Stopping due to aspnetcore.dll failed to load

I have an asp.net core 2.0 hosted locally on IIS 10. For some reason DefaultAppPool keeps stopping as soon as I hit the hosted website.
And I am getting HTTP Error 503. The service is unavailable.
In event logs I see following error;
The Module DLL C:\WINDOWS\system32\inetsrv\aspnetcore.dll failed to
load. The data is the error.
When I check the path C:\WINDOWS\system32\inetsrv\ I do not see aspnetcore.dll exists. Should it be there? If yes, .net core installation exe shouldn't be copy it?
Here are some information below;
What I tried, and did not worked?
Troubleshooting IIS AppPool crashes
Uninstalled .net core and reinstalled.
Changed App Pool Identity to Network Service etc.
Any idea how I can fix this?
For hosting .Net Core applications in IIS, .Net CLR Version of application pool should be No Managed Code as shown in below screenshot. If you don't see "No Managed Code" option in in dropdown then you need to install .Net Core Hosting Bundle.
Ensure you have .NET Core Hosting Bundle installed as mentioned here:
https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-2.1&tabs=aspnetcore2x
I also had this problem in Windows server 2012 R2
I found this answer:
ASP.NET Core/.NET Core: Runtime & Hosting Bundle (latest versions) depends on Microsoft Visual C++ 2015 Redistributable
Download and install KB2919442
Run windows update, which will download and install KB2919335. Alternatively manually download and install KB2919335
Install Visual Studio 2015 C++ Redistributable
I got this issue one time. Reason was Server OS was x64 base and target run time of installer was win-x86. In the publish wizard, win-x86 is the default option for Target Run time. Theoretically x86 application should work in x64. But after deploying the win-x64 , issue resolved.

Cannot have Excel and SSDT in the same machine

Currently, I'm expressing an error when I'm trying to work in Excel as OLE Db data source. The error from the event viewer is as follows:
Faulting application name: devenv.exe, version: 14.0.25420.1, time stamp: 0x57685d85
Faulting module name: mso40uiwin32client.dll, version: 16.0.4510.1001, time stamp: 0x58aea30f
Exception code: 0xc0000005
Fault offset: 0x001665c1
Faulting process id: 0x1634
Faulting application start time: 0x01d2a4d1d4ef28d1
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\Program Files (x86)\Common Files\Microsoft Shared\Office16\mso40uiwin32client.dll
Report Id: c15c623e-10c5-11e7-81d4-782bcbacd899
What I'm trying to do: loading data from the excel file and put in sql database. When I create my package at the first time everything work ok, but when I closed and reopen my project I have VS crashing due to the error I reported from the event viewer.
From the error of the event viewer, I had the idea to uninstall office, install only ACE and try again to reopen and work in my project. The project worked again.
My understanding now, is that we cannot have office installed when we want to work with excel as OLE DB Source. Is this true?
Can any one help me to overcome this error? I want to have Excel and be able to work in my SSIS project in the same machine
Thank you
You have to ensure:
The version of the driver (Microsoft Jet /ACE) support the version of the excel you are trying to load.
You can load and preview the Excel in the dataflow in a excel component, and see the info you are looking for.
Sometimes the problem is that your driver is for 32bits and ssis runs on 64bits, you can change this from project to 32bits. I think this is the most important check and your fail could be this.
Check the security of the file, ensure that you can access it and the user you are running ssis have permission.
put here the result of the execution of the package, to read more about the error.
After a lot of install/uninstall SSDT2012.
We found that we are able to overcome the conflict issue when installing the SSDT2012 from this location:
https://msdn.microsoft.com/en-us/jj650015
I cannot explain why this version can resolve the issue, but what I understand that with this newer version of SSDT2012 we have several enhancement like creating database project in 2012, using sql server 2014 without any trouble, ...

IIS express crashes after successfully debugged and build

I am running my mvc project in visual studio 2013 no errors comes in debugging and all projects build up successfully. after it when visual studio run the project and launch IIS express process it got crashes with following error which comes in result window.
The program '[13280] iisexpress.exe' has exited with code -1073740771
(0xc000041d). The program '[13280] iisexpress.exe: Program Trace' has
exited with code 0 (0x0).
I also re install visual studio reset its all settings problem still exist.
I also check whether iis is working ok? I deployed the websites on iis and they are working fine, Only the websites which i run from visual studio did not work and gives upper mention error message.
I solved my problem myself... I make a couple of changes which solved my problem, Steps are as follows....
Uninstall IIS
1.1. Go to control panel-> Programs and features -> Turn Windows Features On or Off.
1.2 De-select Internet Information Services and Internet Information Services Hostable Web Core.
1.3 Restart the system.
1.4 Go to My Documents and delete folder "IISExpress".
Install IIS again
2.1. Go to control panel-> Programs and features -> Turn Windows Features On or Off.
2.2 select Internet Information Services and Internet Information Services Hostable Web Core.
2.3 Restart the system.
this solved the problem.

Visual Studio 2012 crashes when code file is mapped to Layer Diagram of modeling project

I have a web application that consists of both ASP Class and ASP.NET pages. This web application is under TFS source control
I created another modeling project that is currently NOT under source control.
In the modeling project, I created a Layer Diagram.
Then I added the web application as a project to this solution.
I then opened Architecture Explorer and used solution view to view the web application files.
I filter by .aspx and attempted to drag .aspx(s) to one of the layers on the diagram.
At first it looks like it works, a counter displays showing the count of items.
But then Visual Studio Crashes with the following error.
(Note: I have even tried a single file and get the same results.) Does anyone have any ideas on how to fix this?
Log Name: Application
Source: .NET Runtime
Date: 4/2/2013 8:07:31 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Description:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Reflection.TargetInvocationException

Node.js running under IIS Express Keeps Crashing

I recently resinstalled Windows 7 on my machine and went back to downloading and installing the tools to help me continue developing node.js windows azure web applications. I followed the instructions given on the node.js azure site:
http://www.windowsazure.com/en-us/develop/nodejs/
and using web installer 4.0 it says I have successfully installed these tools:
Windows Azure Powershell
Windows Azure SDK for Node.js - June 2012
Windows Azure SDK for .Net (VS 2012 RC) - June 2012
IIS Recommend Configuration
The problem I am experiencing is that when I run the site using powershell e.g:
start-azureemulator -launch
it goes ahead and runs IIS Express, and after several minutes IIS Express crashes with the following information:
Problem signature:
Problem Event Name: APPCRASH
Application Name: iisexpress.exe
Application Version: 8.0.8298.0
Application Timestamp: 4f620349
Fault Module Name: iiscore.dll
Fault Module Version: 8.0.8298.0
Fault Module Timestamp: 4f63b65c
Exception Code: c0000005
Exception Offset: 00021767
OS Version: 6.1.7601.2.1.0.256.28
Locale ID: 1033
Additional Information 1: f66d
Additional Information 2: f66d807b515d6b2dc6f28f66db769a01
Additional Information 3: 7b2f
Additional Information 4: 7b2f6797d07ebc2c23f2b227e779722e
I am running 2 instances each time, and both of them crash one after the other. Is anyone experiencing something similar and fix this issue ? Is their an upgrade I need to do ? I've run windows update but it says I've got all the latest updates etc.
Can I tell the powershell cmdlet to use IIS 7 instead of IIS Express? I'm guessing its something to do with IIS Express on my machine.
I did some hunting around and found this person here who experienced a similar problem:
https://github.com/tjanczuk/iisnode/issues/149
I've got a cron job running every 1 second, to check if any website totals need to be updated. Could this be causing IIS Express to crash?
Cheers
I believe your problem will be resolved if you install and use iisnode for IIS7 64bit (instead of iisnode for iisexpress) from the link below as I could fix a similar issue in past:
http://go.microsoft.com/?linkid=9784331

Resources