mccalltd / AttributeRouting

Define your routes using attributes on actions in ASP.NET MVC and Web API.
http://mccalltd.github.io/AttributeRouting/
MIT License
416 stars 89 forks source link

Got System.NullReferenceException on routes.MapHttpAttributeRoutes(); #299

Open Pragmatik225 opened 3 years ago

Pragmatik225 commented 3 years ago

Hello,

I just installed this package with Nuget and when I run my web api I got a runtime exception triggered by this statement:

image

Someone can help me please ?

skybluethis commented 2 years ago

Hi , I meet that problem too then I download the source code and merge to my project and try to find anything is going wrong , and the conclusion is just ignore that exception from AttributeRouting.dll then the program should work fine