This is a migrated thread and some comments may be shown as answers.

Problem configure ObjectDatasource

9 Answers 155 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 28 Apr 2020, 02:21 PM

Hi,

I can not configure the ObjectDatasource anymore.

And when I click OK Visual Studio 2017 restarts.

Please see the attached file.

Best Regards

 

Simon

 

 

9 Answers, 1 is accepted

Sort by
0
Simon
Top achievements
Rank 1
answered on 29 Apr 2020, 02:37 PM

UPDATE:

MyData is the class in the ReportLibrary Project that constains all the methods to get data for the report.

See the other error messages in the attached files.

I think it's related with my problem.

Something is going wrong and I don not know what .

 

 

0
Todor
Telerik team
answered on 01 May 2020, 10:01 AM

Hello Simon,

Did you build the project after adding the data class? The Reporting engine uses System.Reflection to access the ObjectDataSource types from the assembly and the project should be built when changed so that the new types to be added in the dll file.

If the above is not causing the problem, consider sending us the ReportLibrary project for local investigation.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Simon
Top achievements
Rank 1
answered on 04 May 2020, 08:08 AM

Hello Todor,

I have built the project after adding MyData class.

I have attached that project as zip file.

Payroll is the report I'm working on.

Hope you  can open it.

Update:

Please see the errormessage.

How can I upload zip files?

 

 

 

0
Simon
Top achievements
Rank 1
answered on 04 May 2020, 08:45 AM

UPDATE:

Can you delete something by mistake so System.Reflection doesn't work anymore?

We are working with Git.

Could it destroy the configuration file during a merge?

0
Simon
Top achievements
Rank 1
answered on 06 May 2020, 07:11 AM

UPDATE:

Hello Todor,

The error message is gone.

I don't understand why.

The error was in the area Report Violation.

This method in the MyData class returns the data for the Violation-Report:

public List<DriverViolationReport> GetViolationData(DateTime date1, DateTime date2, object[] drivers)
   {...

     

0
Simon
Top achievements
Rank 1
answered on 06 May 2020, 07:16 AM

and this method,which was called in the other method, cause the error message describe above:

public static DriverViolationReport GetDriverViolationReport(aio.Lewin.Fleet.DomainModel.DtcoMessage dtcoitem, DateTime currentViolationStartDate, TimeSpan planned,
         TimeSpan current, TimeSpan difference, List<aio.Lewin.DomainModel.Vehicle> vehicles, String drivername, String violationType,
        aio.Lewin.Fleet.DomainModel.Employee currentEmployee, List<aio.Lewin.Ops.DomainModel.OperationalTour> tours)
     {...

 

I have outsourced them in it's own class.

0
Todor
Telerik team
answered on 07 May 2020, 06:57 AM

Hi Simon,

We need the report and a compilable project with the user functions to try to reproduce the error.

Note that the Reporting engine needs to have access to all external dependencies of the user functions.

You may open a Support ticket to attach an archive. You may also use alternative ways for file-sharing like Dropbox, Google Drive, etc. In a Forum post, you may attach only images - GIF, JPG, JPEG, PNG. 

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Simon
Top achievements
Rank 1
answered on 08 May 2020, 11:23 AM

I have access to all external dependencies but I think it takes some seconds to load this dependencies.

Perhaps it loads not fast enough .

This could be the reason why I get the error message.

Can I define a receive timeout or enlarge it?

Regards

Simon

 

0
Todor
Telerik team
answered on 13 May 2020, 09:33 AM

Hello Simon,

Our relevant code executes synchronously, so I don't think it may be a delay in loading assemblies. You may use Fuslogvw to check for failures while loading dlls.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Simon
Top achievements
Rank 1
Todor
Telerik team
Share this question
or