Setting AssemblyReferences in Azure Functions

3 posts, 0 answers
  1. Matthias
    Matthias avatar
    9 posts
    Member since:
    Jan 2016

    Posted 22 Jun 2018 Link to this post

    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. Todor
    Admin
    Todor avatar
    384 posts

    Posted 26 Jun 2018 Link to this post

    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
  3. Matthias
    Matthias avatar
    9 posts
    Member since:
    Jan 2016

    Posted 03 Jul 2018 in reply to Todor Link to this post

    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

Back to Top