Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullReferenceException in ProxyApi.PathUtility.GetVirtualPath #4

Open
bzbetty opened this issue Nov 9, 2013 · 1 comment
Open

NullReferenceException in ProxyApi.PathUtility.GetVirtualPath #4

bzbetty opened this issue Nov 9, 2013 · 1 comment

Comments

@bzbetty
Copy link

bzbetty commented Nov 9, 2013

Not entirely sure what is going wrong, I'm assuming it's because I'm trying to use it with very recent versions of webapi with attributerouting and it hasn't been updated to work with it yet.

[NullReferenceException: Object reference not set to an instance of an object.]
ProxyApi.PathUtility.GetVirtualPath(RouteValueDictionary routeValues) +92
ProxyApi.Factories.ActionMethodDefinitionFactory.GetUrl(IControllerDefinition controller, String action) +151
ProxyApi.Factories.ActionMethodDefinitionFactory.Create(IControllerDefinition controllerDefinition, MethodInfo method) +165
ProxyApi.Factories.ControllerDefinitionFactory.Create(Type controllerType) +231
System.Linq.WhereSelectEnumerableIterator2.MoveNext() +145 System.Collections.Generic.List1..ctor(IEnumerable1 collection) +381 System.Linq.Enumerable.ToList(IEnumerable1 source) +58
ProxyApi.ProxyGenerator.GenerateProxyScript() +118
ProxyApi.ProxyHttpHandler.GetProxyJs(HttpContext context) +102
ProxyApi.ProxyHttpHandler.ProcessRequest(HttpContext context) +54
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

@stevegreatrex
Copy link
Owner

Yup, haven't added support for webapi2 yet. Will get round to it eventually!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants