My Dotnet 4.0 application recieving messages from IBM MQ and putting into database. It is using Distributed transactions. In windows 2012 server sometimes MSDTC is throwing below error.
An MS DTC component has generated an exception. Error Specifics: The process '"D:\test\sampleApp.exe" "D:\test\sampleApp.exe.config"' hit an exception in a MSDTC related component.
The following exception (0xc0000005) was generated at 0x 4DFA7E9F, Pid:8788.
The process is being terminated.
Additional information useful in a debugger:
You can do '.exr 0x0585E680' to display the exception record.
You can do '.cxr 0x0585E6D0' to display the context at the time of the exception.
0
I found the answer to my question. we installed IBM MQ v7.0 version and this version of MQ is not certified with windows 2012 server.
Related
I updated and migrated my local project to start using ASP CORE 2.1.0 from 1.0. I followed the ASP CORE migration guideline from Microsoft here:
https://learn.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/?view=aspnetcore-2.1
Then 2.0 to 2.1 here:
https://learn.microsoft.com/en-us/aspnet/core/migration/20_21?view=aspnetcore-2.1
And everything works just fine on my local machine.
After pushing the code, it builds and runs just fine. So no error occurred when running the website. But when I hit the website on my browser, Azure is throwing 500 internal error messages. I checked the logs, and this is what I find:
2018-08-01 07:05:25.682 +00:00 [Error] Microsoft.AspNetCore.Server.Kestrel:
Connection id "0HLFNDIE4UDCG", Request id "0HLFNDIE4UDCG:00000003": An
unhandled exception was thrown by the application.
System.InvalidOperationException: Cannot find compilation library location for package 'System.Data.SqlClient'
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths(ICompilationAssemblyResolver resolver, List`1 assemblies)
at Microsoft.Extensions.DependencyModel.CompilationLibrary.ResolveReferencePaths()
...
I tried adding System.Data.SqlClient to my local code using Nuget, and pushed to Azure, and still I get the same problem.
Can someone please explain what's happening here? And why Azure needs this package when it's not part of my project?
This is a reference path issue.
Check for System.Data.SqlClient in the references and verify the location form which the package is referred. It looks like the path is there in your local machine and not available after deployment.
I figured out what I could do.
I went into the azure console, and typed this in:
nuget install System.Data.SqlClient
And it added the package into the system. The error now stopped.
I host my ASP.NET .NET Core 2.1 project in Azure Web App service. I recently upgraded to 2.1 (From 2.0) and I started getting these errors:
The specified CGI application encountered an error and the server
terminated the process.
The application typically runs just fine for an hour or so and then suddenly it crashes and all responses return this error. I have to restart it to make the error go away. It was working fine with .NET Core 2.0.
I saw similar issues posted on SO that turned out to be related to earlier Kestrel versions. It shouldn't be the case for me. My project references Microsoft.AspNetCore.App 2.1.1 which has the latest Kestrel version.
This is my production environment, please help.
So finally, I saw there were few extensions added to my azure app service and post deleting the extensions under "Custom" my service is running as expected.
My team's Asp.net 5 web app (1.0.0-rc1-update1) is getting w3wp.exe crashes on IIS 7.5 (Windows Server 2008 R2) both when restarting IIS and intermittently during normal operation of two load balanced instances.
It seems to be the same error as in the following github issue. The error and fault info are nearly identical:
https://github.com/aspnet/IISIntegration/issues/35
'w3wp.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'. Symbols loaded.
The thread 0x6f54 has exited with code 0 (0x0).
Unhandled exception at 0x000000007717298A (ntdll.dll) in w3wp.exe: 0xC000070A: Status 0x (parameters: 0xFFFFFFFFC0000008, 0x00000000000002F8, 0x00000000003E59F0, 0x000000000038A280, 0x000007FEF4CF88F4).
Exception thrown at 0x000007FEF4CF88F4 in w3wp.exe: 0xC0000005: Access violation executing location 0x000007FEF4CF88F4.
Unhandled exception at 0x000007FEF4CF88F4 in w3wp.exe: 0xC0000005: Access violation executing location 0x000007FEF4CF88F4.
The program '[4540] w3wp.exe' has exited with code 0 (0x0).
This issue does not appear for us on IIS 8 with Windows 2012 R2. It seems to be an underlying HttpPlatformHandler or DNX stability issue with IIS 7.5 vs 8.
Are others seeing this problem? Has anyone seen an easier workaround for this issue than upgrading the windows/iis version? It does not seem to be deterministically triggered by our application code. The github issue has not been updated for some time and unfortunately we may not be equipped to do crash dump analysis or process debugging.
Re: HttpPlatform Log
I turned on the HttpPlatform log using the webconfig setting:
<httpPlatform processPath="..\approot\web.cmd" arguments="" stdoutLogEnabled="true" stdoutLogFile="..\logs\stdout.log" startupTimeLimit="3600"></httpPlatform>
The startup is logged as usual on initialization, but doesn't log an error when the crash is reproduced:
Hosting environment: XXXXXX
Now listening on: http://localhost:XXXX
Application started. Press Ctrl+C to shut down.
I had the same issue and it's coming from a bug in aspnetcore.dll (https://github.com/aspnet/AspNetCoreModule) occuring on a few given combination of Windows (7 for instance) & IIS (7.5 for instance). You can find this module somewhere in your c:\windows\systemXXX.
When I get the lastest from GitHub dev branch, it's fixed for me.
I believe the fix lies in the changelist: https://github.com/aspnet/AspNetCoreModule/pull/59
This version is not officially delivered yet and is not packaged in the 7.1.1971 version of the DLL which is the latest as of now.
My application starts fine on my Windows 8 laptop.
However I can not start it on Windows Server 2008 R2. Following error occured:
The exception unknown software exception (0xe0434352) occured in the application at location 0xfd5ecaed.
The following is printed in the command line:
Unhandled Exception: Cannot print exception string because Exception.ToString() failed.
My solution contains one c++-cli project which i'm trying to use, and if I do not use it then everything works fine, so commenting just this line helps:
// private static CliAdapterMain cliAdapter = new CliAdapterMain();
I've tried:
repair .NET Framework 4.5 on target machine
repair/reinstall VS 2012 Update 1 Redistributable (both x86 and x64, version 11.0.51106.1)
updated my VS2012 to Update 1 recompiled project
no Windows pending updates, tried to reboot system several times
Dependency Walker claims that following DLL's are missing: GPSVC.DLL IESHIMS.DLL MF.DLL MFPLAT.DLL MFREADWRITE.DLL WLANAPI.DLL However they exist on target computer, for example here
c:\Windows\winsxs\amd64_microsoft-windows-grouppolicy-base_31bf3856ad364e35_6.1.7601.17514_none_8649674dfda23046\gpsvc.dll
Probably I can try manually reregister missing dll's, but i don't think this is really a problem. Looking at an exception it seems that something is broken, not something is missing.
upd: From Windows logs:
Va.MBClient.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.TypeInitializationException
Stack:
at Va.MBClient.Program.Main(System.String[])
So I guess that private static CliAdapterMain cliAdapter = new CliAdapterMain(); is failed but i don't know why.
upd played with my application a little. Finally i've found just one line of code that causes a failure. This is #include <boost/thread.hpp>. Why this doesn't work? I'm using latest version of boost (1.52), but i did built it on my Windows 8 machine. Should I rebuilt everything for Windows Server 2008 R2? Should I built entire project on Windows Server 2008 R2?
It is due to in the Windows Sever, some features is not enabled by default, you need to add the Windows Media Services and Wireless LAN Service by yourself to get the Dll back.
You can reference to MSDN
I have just installed windows 7 (IIS7.5) on my development system. I was trying to run my .NET1.1 web applications on it. I have registered .NET1.1, which created an application pool for ASP.NET1.1. The problem I am facing is, when I try to run my 1.1 website using localhost URL, it gives me error "An unhandled win32 exception occured in w3wp.exe, the just-in-time debugger was launched without necessary security permissions. To debug this process, the just-in-time debugger must be run as an Administrator."
Process Details, "Process Name: w3wp.exe, UserName: IIS APPPOOL\ASP.NET1.1[Elevated]"
Can someone help me resolving this error?
Thanks
I have resolved the problem. Following URL gives step by step instructions for installing and enabling the .NET1.1 on IIS7. Things are little bit different on windows7 but almost similar.
http://learn.iis.net/page.aspx/472/how-to-install-aspnet-11-with-iis7-on-vista-and-windows-2008/
The main part is installation of .NET Framework Version 1.1 Service Pack 1
and then installation of ASP.NET Security Update for .NET Framework 1.1 SP1
It resolved my problem as defined in the question of this thread.
Thanks everyone