LVJ
June 22nd, 2009, 11:23 AM
Greetings & Salutations,
Hello. I am a quality assurance analyist who also does automation and performance testing using HP testing tools. While I would never consider myself to be a developer there are times where I'm creating an automated script that I have to do some basic programming. So, I really only have basic skills when it comes to programming.
I have encountered an issue in my code that really doesn't make sense to me. The code was generated in a program I use called VuGen which is part of the HP Loadrunner suite of tools. The script was generated in vb.net and it will not compile. I am receiving the following error:
'System.Data.SqlServerCe.SqlCeChangeTracking' is not accessible in this context because it is 'Private'.
Now, in my globals.vb it looks like the following:
Option Strict Off
Option Explicit On
Imports LoadRunner
Imports Mercury.LoadRunner.DotNetProtocol.Replay
Imports Microsoft.Synchronization.Data
Imports SyncUtility.WindowsSyncServiceReference
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlServerCe
Imports System.Globalization
Namespace Script
'Partial Public Class VuserClass
Private SqlCeChangeTracking_1 As System.Data.SqlServerCe.SqlCeChangeTracking
Please keep in mind this is not the entire code but I figured I'd condense it because the generated code in globals.vb is over 18,000 lines long. Now, based on the error message I figured I would change the Private to Public and voila, the script should compile but it did not.
I also tried changing "Partial Public Class VuserClass" to "Public Class VuserClass" but that did not correct the problem. Can anyone give me an idea as to what I need to do here or what I am doing wrong? A point in the right direction would be so helpful. Thank you in advance.
Hello. I am a quality assurance analyist who also does automation and performance testing using HP testing tools. While I would never consider myself to be a developer there are times where I'm creating an automated script that I have to do some basic programming. So, I really only have basic skills when it comes to programming.
I have encountered an issue in my code that really doesn't make sense to me. The code was generated in a program I use called VuGen which is part of the HP Loadrunner suite of tools. The script was generated in vb.net and it will not compile. I am receiving the following error:
'System.Data.SqlServerCe.SqlCeChangeTracking' is not accessible in this context because it is 'Private'.
Now, in my globals.vb it looks like the following:
Option Strict Off
Option Explicit On
Imports LoadRunner
Imports Mercury.LoadRunner.DotNetProtocol.Replay
Imports Microsoft.Synchronization.Data
Imports SyncUtility.WindowsSyncServiceReference
Imports System
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.SqlServerCe
Imports System.Globalization
Namespace Script
'Partial Public Class VuserClass
Private SqlCeChangeTracking_1 As System.Data.SqlServerCe.SqlCeChangeTracking
Please keep in mind this is not the entire code but I figured I'd condense it because the generated code in globals.vb is over 18,000 lines long. Now, based on the error message I figured I would change the Private to Public and voila, the script should compile but it did not.
I also tried changing "Partial Public Class VuserClass" to "Public Class VuserClass" but that did not correct the problem. Can anyone give me an idea as to what I need to do here or what I am doing wrong? A point in the right direction would be so helpful. Thank you in advance.