This is a migrated thread and some comments may be shown as answers.

oData Saving Changes

2 Answers 55 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ash
Top achievements
Rank 1
Ash asked on 10 Nov 2011, 03:17 AM
Hi Folks,

I can read from the OData service fine but I am having trouble writing to it.
I get a 401

401 - Unauthorized: Access is denied due to invalid credentials.
You do not 
have permission to view this directory or page using the credentials that you 
supplied.

We are currently on a trial license (15 purchased seats on the way).

Would the trial affect things??

 I get the same 401 using my code and the sample oData Code.

_oDataContext =

 

new TitanDataContext(new Uri(_serviceUrl));

 

_oDataContext.Credentials = System.Net.

 

CredentialCache.DefaultNetworkCredentials;
...

 

_oDataContext.UpdateObject(teamPulseStories[0]);

 

_oDataContext.SaveChanges();

Any Advice would be greatly appreciated,

Ashley

2 Answers, 1 is accepted

Sort by
0
Accepted
Jordan
Telerik team
answered on 10 Nov 2011, 02:07 PM
Hi Ash,

We've made changes to the authentication with the latest release. I want to confirm that you've try to access TeamPulse oData service from your application. Is it true?

If that is your case there is a problem accessing the oData service outside TeamPulse. This is fixed and will be released with our next offical version at the beggining of December.

If updating the oData from your application is a showstopper for you let me know.

Kind regards,
Jordan
the Telerik team
Idea and Feedback Portal is here!
Join us for the Portal Release Webinar and be among the first to see it.
Reserve a seat today!
0
Ash
Top achievements
Rank 1
answered on 11 Nov 2011, 11:45 PM
Hi Jordan,

Yes I have accessed Team Pulse oData service from a custom application. I am reading fine, but unable to write.
I can just implement the Reading scenarios for now and wait for the December release before implementing the update scenarios.

Thanks for the heads up.

Ashley 
Tags
General Discussions
Asked by
Ash
Top achievements
Rank 1
Answers by
Jordan
Telerik team
Ash
Top achievements
Rank 1
Share this question
or