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

System.NullReferenceException on using uQuery.GetNodesByXPath() and uQuery.GetNodesByType() #5

Open
gcapnias opened this issue Mar 1, 2015 · 0 comments

Comments

@gcapnias
Copy link

gcapnias commented Mar 1, 2015

Whenever I try to use uQuery.GetNodesByXPath() and uQuery.GetNodesByType(), I get an System.NullReferenceException:

Object reference not set to an instance of an object.
   at umbraco.uQuery.GetNodesByXPath(String xpath)
   at Umbraco.Console.Program.Main(String[] args) in c:\Projects\dotSee\Moca\Umbraco-v.6.0.1\Umbraco.Console\Program.cs:line 49
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Although, when I use uQuery.GetNode() it works without any problem.

Any ideas why? Can uQuery be used in console?

Thanks in advance,
George J.

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

1 participant