Highlighted
Absent Member.
Absent Member.
1221 views

Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net exception

Hi

I am opening this post as it was suggested in 

/t5/LoadRunner-Practitioners-Forum/The-browser-throws-an-error-message-when-trying-to-record-a/m-p/6742464/highlight/false#M13009

where I initially asked my question.

The issue I am experiencing is:

Recording and replaying script for .Net web application in VuGen (LR 12.02) protocol  Web-Http/Html causes .Net exception - System.Runtime.InteropServices.SEHException.

Recording with browser IE11.

The error message (pasted below) appears when 

1. After recording script is completed and also 'Correlation' window apparas

2. When we replaying recorded scripts. - also below additional error message that appears after that.

My recorded sctipt contains downloading PDF documents by clicking on links but I am not sure whether this is the reason for the error.

I Was trying with .Net framework 4.6.1 initially but also downgraded to 4.5.1 and 4.0 and it did not help.

See also attached screenshot of installes items (Ms Visual C++ components has been installes along with VuGen installation process). Ms Script Debugger I installed separately as the installer has not done it.

Could you please help with that?

 

Thanks,

Ewelina

 

 

 

 

 

Thanks,

Ewelina

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.AxHost.WndProc(Message& m)
   at HP.LR.VuGen.Common.CustomControls.ActiveXViewers.AxSnapshotViewer.WndProc(Message& m) in e:\LT\LT-LR\win32_release\12.02.2739.0_clean\app\LRStudioAPI\Current\API\CustomControls\ActiveXViewers\AxSnapshotViewer.cs:line 342
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
VuGen
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2739.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/VuGen.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
HP.LR.VuGen.ImageResources
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2739.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.LR.VuGen.ImageResources.DLL
----------------------------------------
HP.Utt.Common
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.Common.DLL
----------------------------------------
HP.LR.VuGen.AddinsCommon
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2739.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.LR.VuGen.AddinsCommon.DLL
----------------------------------------
HP.Utt.QcConnection
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.QcConnection.DLL
----------------------------------------
ICSharpCode.Core
    Assembly Version: 4.1.0.0
    Win32 Version: 4.1.3.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/ICSharpCode.Core.DLL
----------------------------------------
HP.Utt.Logger
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.Logger.DLL
----------------------------------------
HP.Utt.Application
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.Application.DLL
----------------------------------------
HP.LR.VuGen.StringResources
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2739.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.LR.VuGen.StringResources.DLL
----------------------------------------
HP.LR.VuGen.Common
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.2739.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.LR.VuGen.Common.DLL
----------------------------------------
HP.Utt.PlatformInvoke
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.PlatformInvoke.DLL
----------------------------------------
HP.Utt.Resources
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.Resources.DLL
----------------------------------------
HP.Utt.Dialog
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.Dialog.DLL
----------------------------------------
PresentationFramework
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
WindowsBase
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
PresentationCore
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/log4net/1.2.10.0__1b44e1d426115821/log4net.dll
----------------------------------------
HP.Utt.ProjectSystem
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1995.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/HP.Utt.ProjectSystem.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.6.1087.0 built by: NETFXREL4STAGE
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Interop.RegistryUtil
    Assembly Version: 12.2.0.0
    Win32 Version: 12.2.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HP/Virtual%20User%20Generator/bin/Interop.RegistryUtil.DLL

(... I can provide rest of this error if needed...)
---------------------------
Critical error (cannot use ExceptionDialog)
---------------------------
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.

   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

   at System.Windows.Application.RunDispatcher(Object ignore)

   at System.Windows.Application.RunInternal(Window window)

   at System.Windows.Application.Run(Window window)

   at ICSharpCode.SharpDevelop.Commands.WorkbenchStartup.Run(IList`1 fileList)

   at HP.Utt.Application.CallHelper.RunWorkbenchInternal(Object settings) in e:\LT\UTT\win32_release\12.02.1995.0\src\Infra\app\HP.UttApplication\CallHelper.cs:line 199
---------------------------
OK   
---------------------------
 
0 Likes
7 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Hello

Could you comment out the operations of download .pdf and see if replay succeeded ? 

Thanks

Oren

 

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Hi,

Can you please replay the script from command line using mdrv.exe? It can be done as follows

<LR_HOMNE>\bin\mdrv.exe -usr <SCRIPT_FOLDER>\<SCRIPT_USR_FILE_NAME>.usr

I would like to see if the issue is related to VuGen only or to the script replay in general. The exception is related to VuGen for sure but it is unclear why yet

Regards,

Shlomi

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Thanks for your answer.

I have run this from Command Line as administrator (screen attached) but looks like nothing happened - no error so I am guessing needed files are present under the locations. Has the script been replayed in the background? 

 

Thanks,

Ewelina

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Hi Oren,

Yes, the replay status is passed (however the .net exception appears during replaying - I can click to continue then). 

Regarding PDFs: For this particular example mentioned .net error appears when my script includes clicking on link that returns PDF file, when I recorded new script without this step this error did not appear while recording nor replaying. Commenting out mentioned code also fixes the problem for this script. 

Thanks,

Ewelina

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Hi Guys,

 

Seems I more or less resolved this issue 😉

I commented out lines with snapshots for a while (like: "Snapshot=t94.inf") and then run the script successfully. After that I uncommented the lines and this still works :)))

Cheers,

Ewelina

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

Sorry - uncommenting the lines coused that issue appeared again. But anyway good to know what happened 🙂

E.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Recording/replaying scripts for protocol Web-Http/Html with VuGen (LR 12.02) causes .Net except

We have a limitation when need to download a  .pdf  from  snapshot .

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.