WebDriver Visual Studio 2010 and ReSharper APPCRASH - c#

We use Visual Studio 2010 with ReSharper to handle and to run our webdriver (2.25.1) tests. Whenever I launch my test the browser (Firefox 12) starts but after a few second I got a window "Task runner Application has stopped working" and the details part contains this:
In this case:
Firefox: 12.0.0
NUnit: 2.5.10 (bundled with ReSharper)
Visual Studio: 2010
WebDriver: 2.25.1
Problem signature:
Problem Event Name: APPCRASH
Application Name: JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe
Application Version: 6.1.37.86
Application Timestamp: 4ef0c42d
Fault Module Name: clr.dll
Fault Module Version: 4.0.30319.269
Fault Module Timestamp: 4ee9d6e1
Exception Code: c00000fd
Exception Offset: 0000000000008daa
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: d161
Additional Information 2: d161e6195854b08ee25ee662a5207f62
Additional Information 3: ffbe
Additional Information 4: ffbe17c9618e32bb213796ac6f7261de
I already have tried to change NUnit and Webdriver version but the result is the same.
When I use different firefox (7.0.1) I got this:
Firefox: 7.0.1
NUnit: 2.5.10 (bundled with ReSharper)
Visual Studio: 2010
WebDriver: 2.25.1
Problem signature:
Problem Event Name: APPCRASH
Application Name: plugin-container.exe
Application Version: 7.0.1.4288
Application Timestamp: 4e83b8cd
Fault Module Name: NPSWF32_11_3_300_271.dll
Fault Module Version: 11.3.300.271
Fault Module Timestamp: 502701bf
Exception Code: c0000005
Exception Offset: 002fba12
OS Version: 6.1.7601.2.1.0.256.4
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\WINDOWS\system32\en-US\erofflps.txt
I also tried to change the version of ReSharper but the result is the same.
So, I assume that the root cause somwhere between webdriver and firefox but I don't have a clue what should/can I do. Does anyone have any idea how it is possible to workaround or fix it because, at the moment, I can not do my job.
Thanks in advance!

Related

c# application stopped working System.InvalidOperationException

After I publish my application in Visual Studio 2015 and put the publish files on the remote server, I keep getting the following error:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: Personeel.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 58fdcdf8
Problem Signature 04: System.Data
Problem Signature 05: 4.6.1055.0
Problem Signature 06: 563c13ab
Problem Signature 07: 2599
Problem Signature 08: 5d
Problem Signature 09: System.InvalidOperationException
OS Version: 6.3.9600.2.0.0.16.7
Locale ID: 1033
Additional Information 1: 74ac
Additional Information 2: 74acff91be3a79a847a4c136374196b5
Additional Information 3: ff07
Additional Information 4: ff07fc8188fb2691835f1a2bee1f0e1f
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
Afterwards I can only close the application and nothing is working. The strange thing is that the exact same code is working on the old remote server (older version not 2012 MS). I checked multiple times the .net framework is 4.5.2 and it is set to support any cpu (which is what is supported by other application also made by me on the server).
I've been stuck on this for a while now and some help would be appreciated!
< Update >
Application: Personeel.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.InvalidOperationException
at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(System.Data.OleDb.OleDbConnectionString, System.Data.OleDb.DataSourceWrapper ByRef)
at System.Data.OleDb.OleDbConnectionInternal..ctor(System.Data.OleDb.OleDbConnectionString, System.Data.OleDb.OleDbConnection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(System.Data.Common.DbConnectionOptions, System.Data.Common.DbConnectionPoolKey, System.Object, System.Data.ProviderBase.DbConnectionPool, System.Data.Common.DbConnection)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionPoolGroup, System.Data.Common.DbConnectionOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(System.Data.Common.DbConnection, System.Threading.Tasks.TaskCompletionSource`1<System.Data.ProviderBase.DbConnectionInternal>, System.Data.Common.DbConnectionOptions, System.Data.ProviderBase.DbConnectionInternal, System.Data.ProviderBase.DbConnectionInternal ByRef)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionFactory, System.Threading.Tasks.TaskCompletionSource`1<System.Data.ProviderBase.DbConnectionInternal>, System.Data.Common.DbConnectionOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at Lemerij.Repository.LemerijRepository.openConnections()
at Lemerij.Repository.LemerijRepository..ctor()
at Personeel.Presenter.HomePresenter.loadMedewerkers()
at Personeel.Presenter.HomePresenter..ctor(Personeel.View.Home)
at Personeel.View.Home..ctor()
at Personeel.Program.Main()
Error 2
Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: Personeel.exe
P2: 1.0.0.0
P3: 58fde3b6
P4: System.Data
P5: 4.6.1055.0
P6: 563c13ab
P7: 2599
P8: 5d
P9: System.InvalidOperationException
P10:
Attached files:
These files may be available here:
C:\Users\adminjm\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Personeel.exe_38e793e1fc55b81cf5d8dd87c6ca47643294bd9f_3b8a8d3f_20d7d235
Analysis symbol:
Rechecking for solution: 0
Report Id: d8ff9f36-28e2-11e7-8178-000c293bf429
Report Status: 2048
Hashed bucket:
Error 3:
Faulting application name: Personeel.exe, version: 1.0.0.0, time stamp: 0x58fde3b6
Faulting module name: KERNELBASE.dll, version: 6.3.9600.18202, time stamp: 0x569e7eb1
Exception code: 0xe0434352
Fault offset: 0x0000000000008a5c
Faulting process id: 0x11d4
Faulting application start time: 0x01d2bcef9b236481
Faulting application path: C:\Users\adminjm\AppData\Local\Apps\2.0\O4ONW6JV.BT5\T7KCVD16.B8Y\pers..tion_7ca3505acee249c8_0001.0000_0d30d07889d3915c\Personeel.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: d8ff9f36-28e2-11e7-8178-000c293bf429
Faulting package full name:
Faulting package-relative application ID:
As others have said in the comments, we need to see some code to know for sure...
However the last call in your stack trace;
System.Data.OleDb.OleDbServicesWrapper.GetDataSource(System.Data.OleDb.OleDbConnectionString, System.Data.OleDb.DataSourceWrapper ByRef)
Suggests that the exception is being thrown by an OLEDB call... Since you said it works on one server but not the other - I would first check the user accounts used by both servers. I would guess they are different and the one that is not working does not have proper permissions for whatever Data Source your application is using (SQL permissions for database? File permissions for Excel/CSV file it reads?)
You could at the very least post the code for your
Personeel.Presenter.HomePresenter.loadMedewerkers()
method as that seems to be the last place in your code that is calling some other things...
Did you try looking in the Event Log?? This should have the exception logged, hopefully with a more useful error message? But we really have to see some code to know what is going wrong...

Problems publishing working application to Azure

I have an MVC 5 build that is building and running locally without any problems whatsoever. I cannot however publish to Azure. I'm publishing with Intellitrace enabled and I'm seeing that an exception is being thrown attempting to activate the role.
Exception Thrown: "Requested registry access is not allowed." (System.Security.SecurityException)
I have made sure of the following:
I have the latest edition of the Microsoft Azure SDK
All the relevant project references for all of my project references are set to Copy Local: True
All the relevant libraries have the correct binding redirects in their respective app.config/web.config files
All the Azure references in my project are to the correct versions of the assemblies
The event log shows the following exceptions in chronological order:
Error 4/11/2014 3:23:57 AM SRMSVC 8228 None
File Server Resource: Manager was unable to access the following
file or volume: 'E:'. This file or volume might be locked by
another application right now, or you might need to give Local
System access to it.
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
Error 4/11/2014 3:31:44 AM .NET Runtime 1026 None
Application:
DiagnosticsAgent.exe Framework Version: v4.0.30319 Description: The
process was terminated due to an unhandled exception. Exception Info:
System.IO.FileNotFoundException Stack: at
Microsoft.WindowsAzure.Plugins.Diagnostics.DiagnosticsGuidNamedEventProvider.GetNamedEvent(System.String)
at
Microsoft.WindowsAzure.Plugins.Common.BlockingExecutionEnvironment.Execute(System.Func`1)
at
Microsoft.WindowsAzure.Plugins.Diagnostics.Program.Main(System.String[])
.
Error 4/11/2014 3:31:45 AM Application Error 1000 (100) Faulting
application name: DiagnosticsAgent.exe, version: 0.0.0.0, time stamp:
0x5243ef34 Faulting module name: KERNELBASE.dll, version:
6.2.9200.16451, time stamp: 0x50988aa6 Exception code: 0xe0434352 Fault offset: 0x000000000003811c Faulting process id: 0x9c Faulting
application start time: 0x01cf55368ce74b73 Faulting application path:
E:\plugins\Diagnostics\DiagnosticsAgent.exe Faulting module path:
D:\Windows\system32\KERNELBASE.dll Report Id:
cdd18167-c129-11e3-93f5-00155d85a04e Faulting package full name:
Faulting package-relative application ID:Server ResourceApplication:
We were getting the following error:
"File Server Resource Manager was unable to access the following file or volume: 'E:'. This file or volume might be locked by another application right now, or you might need to give Local System access to it."
We resolved the issue by updating our project references. If you are getting this error, check your Azure references, specifically these two:
Microsoft.WindowsAzure.ServiceRuntime
Microsoft.WindowsAzure.Diagnostics
Ensure that your references are the appropriate Azure SDK version to the schema/SDK you are pointing to in Azure.

APPCRASH error C# on Application Exit/Close after Deployment

I get this error every time I exit from the software installed on a Windows 7 machine.
This only happened on another computer after I deployed and installed the program there. But on the computer where I developed this, this didnt happen. What is the problem for this?
Problem signature:
Problem Event Name: APPCRASH
Application Name: Dumisoft.exe
Application Version: 1.0.0.0
Application Timestamp: 51cc3663
Fault Module Name: IMM32.DLL
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7b845
Exception Code: c0000005
Exception Offset: 000030c4
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Anyway Im using MS Access here as a Database. My application has flash and htm file.
This could have happened to me
To fix this error, it is best to make sure that you reference in the copy destination
For example: YourComponent copy local = True
good luck. :)

Application won't run/open on other computer

I created a basic toolkit in .EXE format with ADB and Fastboot commands for my phone in Visual Studio Express 2012 using C#, and it works great on my computer, but when I try and open it on another computer, nothing happens. I have made sure to build it in Release mode, the computers I have tested are all on Windows 8 and have the latest .NET Frameworks, and I have read many other topics on this with no definitive answers. I am also getting errors in Event Viewer, but I'm not exactly sure what they mean. Have a look if you can, and thanks!
.NET Runtime:
Application: HTC One X+ Toolkit.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException
Stack:
at HTC_One_X__Toolkit.Form1.InitializeComponent()
at HTC_One_X__Toolkit.Form1..ctor()
at HTC_One_X__Toolkit.Program.Main()
Application Error:
Faulting application name: HTC One X+ Toolkit.exe, version: 1.0.0.0, time stamp: 0x51bf3a29
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16451, time stamp: 0x50988950
Exception code: 0xe0434352
Fault offset: 0x00014b32
Faulting process id: 0x1a8
Faulting application start time: 0x01ce6b7ca5512761
Faulting application path: C:\Users\Dylan\Downloads\Toolkit (2)\Toolkit\HTC One X+ Toolkit.exe
Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll
Report Id: e3254e0e-d76f-11e2-be89-50465d351325
Faulting package full name:
Faulting package-relative application ID:
Windows Error Reporting:
`Fault bucket -606412384, type 5
Event Name: CLR20r3
Response: Not available
Cab Id: 0
Problem signature:
P1: htc one x+ toolkit.exe
P2: 1.0.0.0
P3: 51bf3a29
P4: 5
P5: 1.0.0.0
P6: 51bf3a29
P7: 13
P8: 6
P9: System.IO.FileNotFoundException
P10:
Attached files:
C:\Users\Dylan\AppData\Local\Temp\WERF566.tmp.WERInternalMetadata.xml
These files may be available here:
C:\Users\Dylan\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_htc one x+ toolk_e8ec446f1f71f1db9137fab138c0ad59c2ef6a1_1abaf806
Analysis symbol:
Rechecking for solution: 0
Report Id: e3254e0e-d76f-11e2-be89-50465d351325
Report Status: 16
Hashed bucket: 93c40e517fd84a9afa8e9156e3471d7b `
it's seems by the look of the stack trace that the code generated by the .net framework is trying to open a file from absolute location rather then a relative location. have you looked over the InitializeComponent method in the class Form1?
if not, please have a look. if you can't find a problem there wrep the call for InitializeComponent in try catch in order to get more information.
i would also recommend to try and debug it on other computer and go step by step. you can attach to a process using the visual studio and pause your program until the user pressed a button (using a message box for example)

How to catch an untrapped exception? Windows 7

my program is working in Windows XP, but crashes without any exception in windows 7. Try catch does not work. I also tried application.unhandledexception with no luck. Then I tried checking in windows administration and got the following log:
Level Date and Time Source Event ID Task Category
Error 7/25/2011 11:25:14 AM Application Error 1000 (100) "Faulting application name: myApp.exe, version: 1.0.0.0, time stamp: 0x4e2ce191
Faulting module name: ntdll.dll, version: 6.1.7601.17514, time stamp: 0x4ce7b96e
Exception code: 0xc0000005
Fault offset: 0x00052ca9
Faulting process id: 0x%9
Faulting application start time: 0x%10
Faulting application path: %11
Faulting module path: %12
Report Id: %13"
I'm not sure which part of the code to show as it has large collection classes, but I'll get back to editing this post.
I tried dumping files too from task manager, but I'm not sure how to use them.
Are there any particular tools I could use? I'm using VS2008. I looked into NLog, but I'm not sure what to do with it, so I skipped.
Any suggestions? tips and tricks?
Try ThreadExceptionEventHandler and see.
Application.ThreadException += new ThreadExceptionEventHandler(MyCommonExceptionHandlingMethod)
private static void MyCommonExceptionHandlingMethod(object sender, ThreadExceptionEventArgs t)
{
//Exception handling...
}
Edit : In Windows Forms applications, when an exception is thrown anywhere in the application (on the main thread or during asynchronous calls), you can catch it by registering for the ThreadException event on the Application.
EDIT 2
Try with compatibility? If it works fine, then there is something that doesn't compatible with Win7.
You can choose to run the program in Windows XP compatibility mode
Faulting module name: ntdll.dll says you're in for a lot of fun, but you should start with any P/Invokes in your code. It shouldn't be possible to cause such an error from .NET, so it's some native DLL you're calling.
P/Invoke lets you call normal, native, non-managed executables from managed code. This can be anything that isn't programmed in .NET - i.e. drawing libraries, audio libraries, etc. It is possible that you use it without knowing, for example, if you have multimedia controls. There's a pretty decent article right here.
If you're doing COM Interop with i.e. Microsoft Office, the same as above applies. Check if it's the same Office version, and even if it is, you may need the same versions of the Primary Interop Assemblies from Microsoft.
You may also try starting the application from Visual Studio, you might get a stack trace, which tells you the exact path the application took before crashing. Then you'll know what's happening.

Categories