Missing Assembly reference

1 Answer 5 Views
Coded Steps Coded Tests General Discussions Test Execution
Mark
Top achievements
Rank 1
Iron
Mark asked on 12 May 2025, 09:59 AM

Hi

 

I am trying to run a SQL Stored Procedure using a Coded Step in Test Studio and when do so getting following error

The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)

Can anyone advise on how i can fix this at all?

I have the following set in the Coded Step

using System.Data;

using System.Data.SqlClient;

Many Thanks

 

 

Elena
Telerik team
commented on 12 May 2025, 12:06 PM

Hi Mark, 

What references you have added in the project? Can you share a screenshot of these? 

Regards,
Elena

Mark
Top achievements
Rank 1
Iron
commented on 12 May 2025, 12:10 PM

Hi Elena

Have attached some screenshots for you

 

 

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 12 May 2025, 02:07 PM

Hello Mark,

Based on the additional details shared it seems that you don't have added a reference in the project to the System.Data.dll. This is what the compilation error message states. The requirement is also listed in the coded example on how to connect to SQL DB listed in Test Studio documentation. 

So, in order to compile the code you will need the external reference to the System.Data.dll inserted within the project settings.

Regards,
Elena
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Mark
Top achievements
Rank 1
Iron
commented on 12 May 2025, 03:03 PM

Hi Elena

Thanks for this. Have added this now from

C:\Windows\Microsoft.NET\assembly\GAC_64\System.Data\v4.0_4.0.0.0__b77a5c561934e089

Tags
Coded Steps Coded Tests General Discussions Test Execution
Asked by
Mark
Top achievements
Rank 1
Iron
Answers by
Elena
Telerik team
Share this question
or