Lately I’ve been getting an intermittent error when running Internet Explorer Automation using Selenium WebDriver on a virtual machine. The tests are being running on Virtual Machine through Microsoft Test Manger. I’m having a hard time figuring out what is going on.
The following is logged for the test that was trying run when this problem occured:
exception: OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:56645/session/2762cafb-d3c9-4d9a-a0a5-05463e69b7b7/moveto timed out after 60 seconds. ---> System.Net.WebException: The operation has timed out
When a test fails I write the Exception message and stack trace to a file. But in this case there really is no stack. Was expecting something deeper.
System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at OpenQA.Selenium.Remote.HttpCommandExecutor.CreateResponse(WebRequest request)
Here is detail from eventviewer when the failure occured:
Log Name: Application
Source: Application Error
Date: 8/28/2015 9:02:09 AM
Event ID: 1000
Task Category: Application Crashing Events
Level: Error
Keywords: Classic
User: N/A
Computer: xxxxxxxxxxxxxxxxxx
Description:
Faulting application name: IEDriverServer.exe, version: 2.44.0.0, time stamp: 0x5449666f
Faulting module name: IED4C2A.tmp, version: 0.0.0.0, time stamp: 0x5449666b
Exception code: 0xc0000005
Fault offset: 0x000a41e6
Faulting process id: 0xf2c
Faulting application start time: 0x01d0e191ad6d3d19
Faulting application path: C:\AutomationDrivers\IEDriverServer.exe
Faulting module path: C:\Users\SACCTO~Z\AppData\Local\Temp\IED4C2A.tmp
Report Id: fd4f5070-4d84-11e5-891b-00155d6e673e
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2015-08-28T13:02:09.000000000Z" />
<EventRecordID>14302</EventRecordID>
<Channel>Application</Channel>
<Computer>xxxxxxxxxxxxxxxxxx</Computer>
<Security />
</System>
<EventData>
<Data>IEDriverServer.exe</Data>
<Data>2.44.0.0</Data>
<Data>5449666f</Data>
<Data>IED4C2A.tmp</Data>
<Data>0.0.0.0</Data>
<Data>5449666b</Data>
<Data>c0000005</Data>
<Data>000a41e6</Data>
<Data>f2c</Data>
<Data>01d0e191ad6d3d19</Data>
<Data>C:\AutomationDrivers\IEDriverServer.exe</Data>
<Data>C:\Users\TASKBO~1\AppData\Local\Temp\IED4C2A.tmp</Data>
<Data>fd4f5070-4d84-11e5-891b-00155d6e673e</Data>
</EventData>
</Event>
I can run the same test locally using the test runner built into Visual studio without any problems. The VM has about 1.5 Gig of memory and never uses up more than half of it while the tests are running. CPU stays fairly low.
Am running out of idea on things to look at. Any thought/ideas appreciated. Thank you.
I have written two articles on how to create good crash dumps when the Windows Error Reporting dialog is shown.
The first article describes how to attach a debugger, basically:
wait for the WER dialog to be shown
attach a debugger (like windbg)
press the "Debug" button
confirm the warning that a debugger is already attached
click "No" when asked to use the selected debugger
now do whatever you like in your debugger, e.g. create a dump with .dump /ma seleniumcrash.dmp
If you're not so familiar using a debugger, try the second article, which activates LocalDumps just in time, which is:
wait for the WER dialog to be shown
create WER LocalDumps Registry entries for the application that crashed. Make sure you set DumpType to 2 and the folder is writable (check NTFS permissions).
Close the WER dialog
Once you have the good crash dumps, you can get much more information out of them, such as the call stack and .NET callstack.
The event viewer exception code is 0xc0000005, which is an access violation aka. NullReferenceException in .NET.
Related
we have a wpf application which is written with .net core 3.1 .
so for forcing wpf to run as admin we added appmanifest file and changed :
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
to
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
and below line added to project.csproj file :
<ApplicationManifest>app.manifest</ApplicationManifest>
after doing all of before step and publishing application we got an error in windows eventviewer :
Faulting application name: WpfVideoCourseApp.Presentation.exe, version: 1.0.0.0, time stamp: 0x60776cd9
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1151, time stamp: 0x891df6d3
Exception code: 0xe0434352
Fault offset: 0x0000000000034ed9
Faulting process id: 0x2ac8
Faulting application start time: 0x01d7a5852476cbd1
Faulting application path: E:\VideoCourseApp\WpfVideoCourseApp.Presentation.exe
Faulting module path: C:\Windows\System32\KERNELBASE.dll
Report Id: d9b3e20f-55dc-4dd2-b0ad-40e940dedaa6
Faulting package full name:
Faulting package-relative application ID:
but afterall i should say that : app runs without any problem when using debug files(problem is all about published version of application)
Update :
in publish when i run app , app try to write something in windows document folder and access will denied(but thats not happening when running debug code)
actualy i added manifest file for having permission to reading and writing my files in some special path's(like document folder) but it just work in debug
I am afraid you can't run a ClickOnce deployed application with administrative privileges.
As a workaround, you may consider to implement your app to start a new process as an admininstrator or choose another deployment strategy.
I have created a desktop application in visual studio and sqlserver and when I created a setup, it is working on the development machine but when the setup is installed in the client machine together with crystal reports runtime engine, the application is not starting. I have implemented event logging and managed to get the following error for crystal reports.
Application: Crystals.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.BadImageFormatException
at CrystalDecisions.Shared.SharedUtils..cctor()
Exception Info: System.TypeInitializationException
at CrystalDecisions.Shared.SharedUtils.get_CurrentControl()
at CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture()
at CrystalDecisions.Shared.LocaleManager..ctor()
at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at Crystals.Form1.InitializeComponent()
at Crystals.Form1..ctor()
Exception Info: System.InvalidOperationException
at Crystals.My.MyProject+MyForms.Create__Instance__[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon)
at Crystals.My.MyProject+MyForms.get_Form1()
at Crystals.My.MyApplication.OnCreateMainForm()
at Microsoft.VisualBasic.ApplicationServices
I have also tried Microsoft Report Viewer RDLC and it is returning the following error
Faulting Application name:ReportViewerSample.exe,version:1.0.0.0, time stamp:0x6130af2a
Faulting module name:KERNELBASE.dll,version:10.0.10240.16384, time stamp:0x559f3b2a
Exception code:0xe0434352
Fault offset:0x000b3e28
Faulting process id:0x17b4
Faulting application start time:0x01d7a059329df75d
Faulting application path: C:\Program Files(x86)\Beymo\RDLCViewer\ReportViewerSample.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report id: 57ed1ef9-6ed3-418f-952a-aea23f09618b
Faulting package full name:
Faulting package-relative application ID:
Log Name: Application
Source: Application error
Event ID: 100
When I create a project without a report, it is working fine in both development environment and client machine. How can I resolve the issue?
Hi All I am new to using CefSharp in my application. I need some help resolving an issue I am facing. I have a 32 bit winforms application and installed version 81 of cefsharp dll's. My server is a 64 bit machine. I redirect from my form to a website (ADP). Sometimes it works and sometimes it crashes with an error like below. I am not able to find what is going on and any help is really . The dll's and my application are in a folder on a server (server1). User login into a terminal server(server2) and access the application from a shortcut on the desktop. Below is the error.
Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program CefSharp.BrowserSubprocess because of this error.
Program: CefSharp.BrowserSubprocess
Faulting application name: CefSharp.BrowserSubprocess.exe, version: 81.3.100.0, time stamp: 0x5ec8803e
Faulting module name: libcef.dll, version: 0.0.0.0, time stamp: 0x5eac9798
Exception code: 0xc0000006
Fault offset: 0x005ae118
Faulting process id: 0x4a34
Faulting application start time: 0x01d674c9b69143f4
Faulting application path: \serverpath\CefSharp.BrowserSubprocess.exe
Since I updated Office 365 to Version 1908 (Build 11929.20658) I am having issues using our own developed Outlook add-in in the Outlook Desktop Client.
Outlook reports the following error:
"ADD-IN ERROR
This add-in could not be started. Close this dialog to ignore the problem or click "Restart" to try again"
The same add-in works fine in the Outlook Web in different browsers (IE, Chrome, Edge).
I followed the instructions from https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/troubleshoot-outlook-add-in-activation, but it didn't help to solve the issue.
Looking into Fiddler logs, it seems that the Outlook doesn't try to reach the server to download the add-in files.
I read about Enable Protected Mode on IE
https://learn.microsoft.com/en-us/office/troubleshoot/error-messages/apps-for-office-not-start
However, the newer Office version uses EdgeView as a web browser engine.
I also have installed on this machine the Edge Chromium version.
Is a similar configuration change need also on EdgeView?
Is there a way to troubleshoot the or collect logs when starting up the add-in inside Outlook desktop?
I rolled back Office 365 to Version 1902 (Build 11328.20492).
In this version, the add-ins work fine.
But, when updating to the latest version available Version 2002 (Build 12527.20278) the problem remains.
I've attached screenshots from Outlook Destkop (Error) and Outlook Web (OK) as additional information.
Looking into the Event Viewer / Windows Logs / Application I see the following Application Error(s) when opening the add-in inside Outlook Desktop
Event 1000, Application Error
Faulting application name: Win32WebViewHost.exe, version: 10.0.18362.329, time stamp: 0x65f1ccce Faulting module name: edgemanager.dll, version: 11.0.18362.693, time stamp: 0xb50be940
Exception code: 0xc0000409 Fault offset: 0x0000000000032baf Faulting
process id: 0x15b0 Faulting application start time: 0x01d5f97c03220670
Faulting application path:
C:\Windows\SystemApps\Microsoft.Win32WebViewHost_cw5n1h2txyewy\Win32WebViewHost.exe
Faulting module path: C:\WINDOWS\SYSTEM32\edgemanager.dll Report Id:
240488bf-a9e4-43ef-abc6-832c8b0f8a79 Faulting package full name:
Microsoft.Win32WebViewHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
Faulting package-relative application ID: DPI.PerMonitorAware
Event 1000, Application Error
Faulting application name: RuntimeBroker.exe, version: 10.0.18362.1,
time stamp: 0x4539d5a0 Faulting module name: EdgeManager.dll, version:
11.0.18362.693, time stamp: 0xb50be940 Exception code: 0xc0000409 Fault offset: 0x0000000000022f44 Faulting process id: 0x18d8 Faulting
application start time: 0x01d5f97c035dfbc5 Faulting application path:
C:\Windows\System32\RuntimeBroker.exe Faulting module path:
C:\Windows\System32\EdgeManager.dll Report Id:
9add408f-632f-4b25-8786-eced0492536d Faulting package full name:
Microsoft.Win32WebViewHost_10.0.18362.449_neutral_neutral_cw5n1h2txyewy
Faulting package-relative application ID:
runtimebroker07f4358a809ac99a64a67c1
We had the same issue in our VDI environment and we found out that WebView2 was missing. After installing it issue is resolved. Hope that will help.
I have the same issue with VDI.
To solve this issue I try :
Reinstall M365
Delete Microsoft folder into the user's profile :
c:\users\username\appdata\local\microsoft
c:\users\username\appdata\locallow\microsoft
c:\users\username\appdata\roaming\microsoft*
It seems to be a profile issue because when I delete the user's profile, everything works perfectly.
I perform some test on a user profile to find the correct file
I am getting a crash immediately at startup with an exe4j executable on Windows Server 2012 R2.
Turned on redirect of stderr and stdout to try to get any message at all, but failed.
Tried 'run as administrator', failed.
Rebuilt the executable, failed.
At this point I cannot think of anything new to try. Can someone offer a suggestion?
Below are the problem details from the windows dialog. Any idea what could be causing this?
Problem signature:
Problem Event Name: BEX64
Application Name: DCoreX64.exe
Application Version: 9.1.0.0
Application Timestamp: 54d098c4
Fault Module Name: DCoreX64.exe
Fault Module Version: 9.1.0.0
Fault Module Timestamp: 54d098c4
Exception Offset: 00000000000049d0
Exception Code: c0000409
Exception Data: 0000000000000000
OS Version: 6.3.9600.2.0.0.400.8
Locale ID: 1033
Additional Information 1: 1678
Additional Information 2: 16789cf0f420663251ee660bfee7765e
Additional Information 3: 415a
Additional Information 4: 415aeefa71c8c47ed34c12722ba51457
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=280262
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
My issue turned out to be that the classpath was too long. Exe4j put out a new release to address it.