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

Setting AssemblyReferences in Azure Functions

2 Answers 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 22 Jun 2018, 06:08 AM

Hi,

I'm trying to implement the Telerik reporting engine using Azure functions. When I provide an objectdatasource the ReportProcessor renders with an Exception

The assembly "MyAssembly" is not permitted to be used by an ObjectDataSource section of your application configuration file.

I assume thisis related to AssemblyReferences configuration specified here: https://docs.telerik.com/reporting/objectdatasource#configuration

Azure functions do not support web.config files. Is there any other option to set the AssemblyReferences?

Thanks
Matthias

2 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 26 Jun 2018, 02:55 PM
Hello Matthias,

Indeed Azure functions ignore web.config and app.config files. Currently there is no other way to set AssemblyReference.
You can try with the following solution provided it the Feature Request: app.config in azure functions #354 thread. I copy and paste the last paragraph of the post by user grammophone that suggests the workaround:

"I solved the problem of running my existing logic layer objects in Azure functions by delegating the work into a different AppDomain which has an App.config associated with it, and created the necessary cross-AppDomain communication."

Regards,
Todor
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Matthias
Top achievements
Rank 1
answered on 03 Jul 2018, 08:44 AM

Hi Todor,

thank you for your quick response. The workaround you linked in your answer seems way to complicated in my opinion. I converted my azure function into an azure webjob which allowed the usage of a custom config file.

Regards,
Matthias

Tags
General Discussions
Asked by
Matthias
Top achievements
Rank 1
Answers by
Todor
Telerik team
Matthias
Top achievements
Rank 1
Share this question
or