System.MissingMethodException when running Nancy with Mono #2064
Comments
I'm not sure what's happening here. Nancy is built against .NET 4.0, which doesn't have |
Hi, The short version is; this is not a bug in Nancy, it's a run-time framework / compiler issue. The This is what I think you're doing.
The way to work around this is to not target .NET 4.6, but instead target .NET 4.5.x |
This might actually be a compiler optimization. I guess when you call a |
What certain of Nancy are you using.
…On Fri, Apr 6, 2018, 6:20 AM MahendranShanmugam ***@***.***> wrote:
Hi ,
I am getting below error when calling the nancy framework api can you
please any one help me.
[image: image]
<https://user-images.githubusercontent.com/36536483/38420867-e20e45ac-39c2-11e8-88af-f5c14a2b1f7f.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2064 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEEilhYi95qMYOSrwL_HRGFBfJP3hKdgks5tl12IgaJpZM4GEANk>
.
|
Sorry. What version of Nancy are you using?
…On Fri, Apr 6, 2018, 8:12 AM Jonathon Koyle ***@***.***> wrote:
What certain of Nancy are you using.
On Fri, Apr 6, 2018, 6:20 AM MahendranShanmugam ***@***.***>
wrote:
> Hi ,
> I am getting below error when calling the nancy framework api can you
> please any one help me.
> [image: image]
> <https://user-images.githubusercontent.com/36536483/38420867-e20e45ac-39c2-11e8-88af-f5c14a2b1f7f.png>
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2064 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AEEilhYi95qMYOSrwL_HRGFBfJP3hKdgks5tl12IgaJpZM4GEANk>
> .
>
|
Hi, I am Nancy 1.4.4 version and also where we get the Nancy 2.0.0-clinteastwood can you please suggest me. Thanks, |
Hi, We have report application so we like to rendering our report using Nancy web API how to do. Can you please explain. Regards, |
Hello guys.
I have a small problem when running Nancy with Mono under Windows & Linux.
The application fails to start due to MissingMethodException. This happens when you are trying to define the conventions in the bootstrapper.
This is how it looks:
In anyway, simple repro project is here.
P.S. Google said that the problem might be in IoC container, more specifically -
Array.Empty
is passed as default parameter inExpression.Call
method, butArray.Empty
isn't implemented in Mono, so we get an exception.P.S.S. Reproducible under Windows or Linux with latest Nancy (1.3) and Mono (4.0.4). Not reproducible with .NET Framework 4.6.
The text was updated successfully, but these errors were encountered: