Azure / Azure/Azure-Functions

ÅÄÖ in .NET Class names + WebJobsStartup/DI crashes the host

Open
#1,169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Use this repo to file issues in documentation or the Functions Visual Studio tooling.

If you need technical help, you'll get the fastest response on the forums (https://social.msdn.microsoft.com/Forums/azure/en-US/home?forum=AzureFunctions) or Stack Overflow: http://stackoverflow.com/questions/tagged/azure-functions. The entire engineering team monitors those forums.

- For documentation issues, please provide exactly what is wrong/missing and why it's important.
- For issues with the Functions Visual Studio tooling, provide detailed steps to reproduce, including details about your environment (OS, VS version, etc)
- For runtime issues (e.g. "my function doesn't work as intended"), use https://github.com/Azure/azure-functions-host
- For issues with the Azure Functions CLI, use https://github.com/azure/azure-functions-core-tools
- For portal issues, use https://github.com/azure/azure-functions-ux
- For template issues, use https://github.com/azure/azure-functions-templates

If you're not sure where to file your issue, feel free to file it here. Please provide detailed steps to reproduce, including code if applicable.

When running Azure Functions locally using the `func` CLI.
I don't know if this is related to the CLI or to the runtime itself, so I will post here.

If your functions project meet the following conditions:

1. There is a class name with ÅÄÖ, this does not need to be a function class name but any class
2. You use `WebJobsStartup` for dependency injection
3. The project is proper compiled C#, not csx
4. (this is on Mac and dotnet 2.1)

When you try to start the project locally using `func host start` it will start to boot but fail with :

```
[2019-03-24 16:10:23] Building host: startup suppressed:False, configuration suppressed: False
[2019-03-24 16:10:23] Reading host configuration file '/Users/rogerjohansson/Git/DotnetFunctions/bin/output/host.json'
[2019-03-24 16:10:23] Host configuration file read:
[2019-03-24 16:10:23] {
[2019-03-24 16:10:23] "version": "2.0"
[2019-03-24 16:10:23] }
[2019-03-24 16:10:23] A host error has occurred
[2019-03-24 16:10:23] System.Private.CoreLib: Exception of type 'System.OutOfMemoryException' was thrown.
Value cannot be null.
Parameter name: provider
Application is shutting down...
```

Renaming any class with ÅÄÖ to AAO makes it work fine.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.