Link to home
Start Free TrialLog in
Avatar of WSIFB Support
WSIFB Support

asked on

"Object reference not set to an instance of an object." error when trying to access an OData api.

I keep getting a "Object reference not set to an instance of an object." error when trying to access an OData api. Code can be found at http://apps.wsifb.com/TestApp2.zip
Avatar of p_davis
p_davis

i don't see the code attached.
Avatar of WSIFB Support

ASKER

Sorry, the file wasn't attached. The code can be found at http://apps.wsifb.com/TestApp2.zip
new Uri(@"http://apps.wsifb.com/Inventory/odata/");

try the @ in front of the string so it takes it as a literal
That doesn't fix it.
is that a valid address?
Yes. I am trying to get the data found at http://apps.wsifb.com/Inventory/odata/Stores into the program.
Links to code returns, 404 - File or directory not found., Has it been removed?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.