Giter Club home page Giter Club logo

azure-functions's Issues

Method not found on runtime from .dll

Hi,

I have a .dll I'm working on and using on the Azure Functions. The methods from .dll worker fine untill I added some new methods to it.
When I upload the new .dll to the bin folder I created on the Azure functions and try to use the new methods I added I get

2016-10-12T15:25:02.920 Function started (Id=xxxxxxxxxxx)
2016-10-12T15:25:03.045 Function completed (Failure, Id=xxxxxxxxxxxx)
2016-10-12T15:25:03.060 Exception while executing function: Functions.Report. mscorlib: Exception has been thrown by the target of an invocation. Report: Method not found: 'Void Company.Product.Compat.Report.SomeEngine.TestMethod()'.

It says that my TestMethod(); is missing. I am sure I uploaded the correct .dll versions as I tried creating a new seperate project, included that .dll's and tried to invoke the new methods I added and it worked, so they are there.

Compilation is successful when I add the .dll;s to Azure Functions, it's just that they are missing in runtime.

Could it be that Azure Functions compiler cached the dll's that I had before and is now trying to use them every time? That's the only think I can think of.

I tried deleting the Azure Function and creating a new one but the problem persisted.

EDIT: I tried to up the version of my .dll and it worked the first time I tried it. Now my TestMethod() runs normally, however when I added TestMethod2(), upped the .dll version again and rebuilded it, put it on Azure Functions the problem is the same. now TestMethod2() is not found. Maybe I just hit the time frame that Azure cleared it's cache and cached the .dll with only TestMethod() version on it.

This is a problem since I have to change the .dll frequently to test something out.

Thanks

Add a brief overview of how bindings work in Bindings and Triggers ref topic

From Mathew Charles:
I’m answering questions often (like this one this morning http://stackoverflow.com/questions/38006649/configuring-notification-tag-for-azure-function) on parameter binding. I’m wondering if we have overview doc anywhere on how binding works in general. Another possibility would be for us to indicate in the templates/bindings somehow that binding parameters are supported for various properties, but I don’t want a bunch of duplication.

I expected to see a little overview section in https://azure.microsoft.com/en-us/documentation/articles/functions-triggers-bindings/. I think it would make sense to have something on that page that gives an overview of %% and {} binding functionality that applies to all the various bindings.

Functions best practices topic

Examples of content to include:

  • Functions should be stateless
  • Use queues between functions
  • Functions within an app share resources. If you're using something a Function App in production, don't add test functions to it.

Function app Huge I/O ~1 Million requests per day

I noticed my bill was about $20 fatter last month... upon investigation, it was from a storage account tied to a dynamic plan Function app. This app is not used in prod. However, it had a timed function that ran every five minutes or so as an experiment to help Azure resolve another issue. Azure/azure-functions-host#298 (comment)

I'm wondering if there is a bug in the Function App container, if it's writing 60k log entries every time there's a cold start, or if it's just doing that for no reason...

Anyway, it's writing about 60k files per minute. I terminated the app container.

screen shot 2016-10-24 at 8 51 09 pm

azure-functions-cli doesn't support spaces in path

First, apologies if this doesn't belong here. It is regarding the tooling here:
https://www.npmjs.com/package/azure-functions-cli

If there is a space in your path, then you cannot run the function. ("func run MyAzureFunction") For example if your local user account has a space in it, or the project you are working on itself. I couldn't find a workaround apart from creating a new local account without a space and removing the space from the project.

Thanks,
Adrian

How to use Azure Functions in Production

There is an email thread that just started on this... I will update this thread with that conversation

Added by @lindydonna:
Examples of content to include:

  • Functions should be stateless
  • Use queues between functions
  • Functions within an app share resources. If you're using something a Function App in production, don't add test functions to it.

Nir: Update Hubs output binding example

I was building a C# web hook that sends a notification out. The doc (https://azure.microsoft.com/en-us/documentation/articles/functions-triggers-bindings/#azure-notification-hub-output-binding) sample in C# uses an out parameter, however, when creating a web hook template we use async methods (which are the recommended way we want folks to write functions in C#) so the sample doesn’t compile. I suggest we refresh the doc sample to be consistent with our templates. In my case I wanted to output to other bindings so I couldn’t just copy and paste the whole sample.

Document the Supported Locales

We should make sure that we document what locales are available for the Azure Functions Portal if they differ from the standard Azure Portal listing of available locales

Plain exe or dll as a function

Hello!

I'm fairly new to azure functions but as far as I understand it's not possible to upload a exe file and run that as a function, is that something that is planned? I really do prefer not to publish plain source code and would prefer to have deployment go though a more traditional build > package > test > deploy cycle.

I've previously used webjobs for this however they don't really feel like first class citizens in azure and have a few other issues such as possibility to be deleted by accident by a web deploy to the same site, no restart functionality, some times shutting down and so on. it feel like azure functions would be able to fill this gap, if only you could use it with precompiled code.

Is this something you have any plans for?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.