Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

401 error connecting to sharepoint via web service

Posted on 2011-02-15
8
Medium Priority
?
465 Views
Last Modified: 2012-06-22
I've created a web app which displays sharepoint data on web pages.
This has always worked fine. We upgraded the sharepoint instance to 2010 and all was well within the sharepoint front end.
I open the visual studio web project and change the web reference to point to the new sharepoint address.
I can run the project locally on my workstation (asp.net development server) but when I copy the changes to the web server I get 401 unauthorised access errors.
The IIS settings have not changed.
Windows authentication and impersonation is used (The web.config )
I have rebooted the web server and the sharepoint server on the network admins advice as a server somewhere had been demoted fom being a domain controller and <insert networky speak>

Any ideas?
0
Comment
Question by:QPR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 2

Expert Comment

by:siteoutfitters
ID: 34901237
Do you receive this error message only if you try to browse the Web site directly on the server? If you browse the Web site from a client computer, the Web site works as expected please review this helpful link:
http://support.microsoft.com/kb/896861/en-us

If that's not helpful I will do some more checking for you.
0
 
LVL 29

Author Comment

by:QPR
ID: 34901288
If I browse to the URL from my workstation I get 401
If I RDP to the web server and then browse to the URL from there I get in fine!

This leads me to suspect that this server does not have delegation to the SP server but it did for the original. Will check this when I get back from a meeting I have to dash to. Thanks for the clue
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34901353
When looking at the event viewer, what type of authentication are you using?
If you are using Kerberos (and changed the urls of the site) did you change the SPN's with ADSIEDIT?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 29

Author Comment

by:QPR
ID: 34911024
siteoutfitters
The url http://support.microsoft.com/kb/896861/en-us doesn't apply as I have the oppsite situation.
I can browse the sire directly from the server but not from the client PC

Could the port number be something to do with it?
On the old 2007 server the SP site was found under the default port 80... on this new SP 2010 server the site lives in a site collection at port 47272
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34913974
If you want to be sure about the ports extend the web app to a hostheader on port 80 add it to your hosts file and test local on your server. But i do not think the port is the problem. The web service, is it running in the vti bin of sp?
0
 
LVL 29

Author Comment

by:QPR
ID: 34919244
I have stopped the site on port 80, changed the SP site to use port 80, changed the url and it's still the same so, I agree, we can discount ports.
Yes I am pointing to the _vti_bin folder and to the asmx file

Everything points to delegation not being set up but the network admin assures me it's been done in AD
0
 
LVL 29

Accepted Solution

by:
QPR earned 0 total points
ID: 35186940
MS are on the case and are working through this so I may as well clean up here
0
 
LVL 29

Author Closing Comment

by:QPR
ID: 35221380
see comment
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question