NHIBERNATE – Can’t find the field: ‘nancy.bootstrapper.nancybootstrapperlocator.bootstrapper’

I have been using Nancy fx recently and I like it, but when I try to make a structure diagram ioc like the documentation page suggests I get an error

Find Field not found:’Nancy.Bootstrapper.NancyBootstrapperLocator.Bootstrapper’.

I have overwritten the getApplicationContainer function shown in the file

https://github.com/CarlosBolanos/apadrina/ blob/master/Application/Bootstrapper.cs

But still get the same error, I look at the code on rnancy repository
https://github.com/NancyFx/Nancy.Bootstrappers.StructureMap /blob/master/src/Nancy.Bootstrappers.StructureMap/StructureMapNancyBootstrapper.cs
I can’t see the bootstrap properties

There are others who have this error. I have been trying to set this for several hours,< br>If I remove the nancystructuremap in the block, the error disappears.

Or I need to set other things on the bootstrap class.

I encountered this scenario after installing Nancy.Bootstrappers.Ninject from Nuget. My Nancy project was created using the Nancy Visual Studio template and referenced Nancy 0.21.1. < p>

I found that installing the bootstrapper package caused the basic Nancy package to be upgraded from 0.21.1 to 0.23.2. This is fine, except that the Nancy.Hosting.Aspnet and Razor engine packages are not upgraded from 0.21.1 .

In order to solve this error, I had to update all Nancy-related packages that I used to match 0.23.2 packages.

I have been using Nancy fx recently and I like it, but when I try to make a structure diagram ioc like the documentation page suggests I get the error

Field not found:’Nancy.Bootstrapper.NancyBootstrapperLocator.Bootstrapper’.

I have overwritten the getApplicationContainer function shown in the file

https://github.com/CarlosBolanos/ apadrina/blob/master/Application/Bootstrapper.cs

But still get the same error, I look at the code on rnancy repository
https://github.com/NancyFx/Nancy.Bootstrappers .StructureMap/blob/master/src/Nancy.Bootstrappers.StructureMap/StructureMapNancyBootstrapper.cs
I can’t see the bootstrap properties

There are others who have this error I have been trying to set these for several hours ,
If I remove the nancystructuremap in the block, the error disappears.

Or I need to set other things on the bootstrap class.

I encountered this scenario after installing Nancy.Bootstrappers.Ninject from Nuget. My Nancy project was created using the Nancy Visual Studio template and I referenced Nancy 0.21.1.

I It was found that installing the bootstrapper package caused the basic Nancy package to be upgraded from 0.21.1 to 0.23.2. This is good, except that the Nancy.Hosting.Aspnet and Razor engine packages were not upgraded from 0.21.1.

To solve With this error, I had to update all Nancy-related packages that I used to match the 0.23.2 package.

Leave a Comment

Your email address will not be published.