locked
Cant add web reference

    Question

  • Hello, I got a webservice on a remote server, I can see it with IE, I can even see it with visual studio 2005, but the add reference button is disabled.

     

    And i have this error, what can I do?

     

     

    There was an error downloading 'http://agamenon:120/WebSetup1/Service.asmx?op=HelloWorld'.

    The request failed with HTTP status 403: Forbidden.

     

    Thanks

    Tuesday, May 08, 2007 2:10 PM

Answers

All replies

  •  

    have you checked whether the issue is same as that mentioned in the thread http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1435630&SiteID=1

    Tuesday, May 08, 2007 2:26 PM
  • I have the same problem with a webservice which I am trying to add as a web reference through VS.2005.
    The webservice is WSDL based and exists on a LAN server, thing is it has xsd:imports in it for message XSDs which are separate entities (xsd files).
    Proxies make no difference.
    I can browse (in IE and FireFox) to the WSDL and all of the imported XSDs.
    I still cannot add the wsdl as a web reference in VS.2005, the button is greyed out and the information box says there is a 403: forbidden error.
    There is no authentication or security on the WSDL (which allows the browers to see all the parts without credentials being asked for) or the XSDs. Yet the 403 error always occurs.

    This is very frustrating as I cannot see why, if I can view everything in IE7, I cannot import the web reference into a VS.2005 ASP.NET solution!

    Seems like the problem is something internal to VS.2005 rather than an XML or Web Server problem, anyone got any ideas?

    -Paul.
    Friday, May 25, 2007 4:49 AM
  • Were you ever able to resolve this?  I am having the same problem.
    Tuesday, June 05, 2007 3:35 PM
  • Hello Harry,

     

    It remains unresolved, however I do have something further to add.

    I have a colleage who IS able to add the web references as described in my previous post.

    My colleage is actually classed as a DBA, however he's got his fingers in a lot of different areas at the moment.

    His laptop is able to add web references without issue. He has Win XP Pro and VS2005, XP firewall off, and a fixed IP.

    I've tried all those settings on my desktop to no avail. Still unresolved.

    Weird thing is, if he logs on to my desktop he -cannot- add the web reference.

    If I log on to his laptop I -can- add a web reference. So the problem seems to be machine based.

    We have been unable to track down what setting is causing the problem.

    Investigation continues, but unfortunately its priority seems to vary in degrees of importance here.

    (Its pretty damn important to me though!)

     

    Sorry I couldn't be of more help.

     

    -Paul.

     

     

     

    Thursday, June 07, 2007 12:01 AM
  • Microsoft, this is major league annoying!

    I am still unable to add any PeopleSoft web references from my PC, but a freshly installed machine CAN do it.

    A VPC2007 machine running WinXPProSP2 with all current patches,

    and .NET 1.0, .Net 1.1, .Net 2.0 (but not .Net 3.0), and VS2003 and VS2005,

    was able to add references via VS2005 for PeopleSoft based web services.

    However, VS2003 on the same machine could not, receiving the 403: Forbidden error.

    So maybe VS2003 and VS2005 are duking it out for some registry key on my PC and 2003 won.

    On the fresh PC it seems to be okay for VS2005 though.

     

    So if you have VS2003 on the same machine you could be having the same problem as I am?

     

     

    Monday, July 09, 2007 6:27 AM
  • It now seems that there is some unexpected intertwining of Visual Studio components.

    A default install of both VS2005 and VS2003 (with VS2005 installed first) allows both Visual Studio's to import Web References from PeopleSoft based sources.

    When I installed VS2003 and VS2005 I chose not to install the components I didn't need or use. That seemed pretty fair to me. Thing is, there is ~something~ in there which allows Visual Studio to get around the 403 Forbidden errors when trying to import a web reference. I don't know if it is a registry setting (though that seems most likely) or an extra component, but whatever it is the issue doesn't seem to occur.

    So all I can suggest is that you either wipe out your VS installs and reinstall with the default settings/options, or alternatively just install ALL components over the top of what you've already installed and see if that works.

    I will try an overlay install of all components and see how that goes. I'll post the results here when completed.

    This seems more of a work-around than a fix though. It really shouldn't require all the other components installed (or at least all the default components) to get it to import web references successfully. Still very annoying.

     

    -Paul.

    Monday, July 16, 2007 8:08 AM
  • Installing ALL the components of Visual Studio 2005 does not solve the 403:Forbidden error when adding a web reference in VS2005.

    Unable to test VS2003 at this time. Probably not going to work either though.

    Looks like I'm forced to use a VirtualPC with just the two VSes installed to do the simple task of adding a web reference.

    Very annoying.

    Sad

     

    -Paul.

    Monday, July 16, 2007 8:43 AM
  •  

    Hello everybody,

     

    did anybody solve this problem?

    I have the same issue! My application was working till two weeks ago, then I (why??) downloaded the new windows updates and now the 403 error on web reference doesn't allow me to work anymore!

     

    Can anybody help us?

     

    THANKS A LOT

     

    Il Dima

    Wednesday, November 28, 2007 10:00 AM
  • Hello Il Dima,

     

    > did anybody solve this problem?
    Sorry, no. I am still using a Virtual PC to add my Web References.
    My PC can add .NET created WebServices as web References but not
    WSDL based ones generated by an third party vendor.

     

    > I have the same issue!
    > My application was working till two weeks ago,
    > then I (why??) downloaded the new windows updates
    > and now the 403 error on web reference doesn't
    > allow me to work anymore!
    > Can anybody help us?
    Do you remember which updates they were?
    (Can you check windowsupdate.com to see recently installed updates
    or is it WSUS based?)
    Could you check to see which services were involved?
    Perhaps something was deregistered to update/patch it and
    failed to be registered again automatically.

     

    Best wishes, Paul.

    Wednesday, November 28, 2007 11:31 PM
  • Hi Paul,

    thanks so much for your answer!
    I can explain a little better my situation: I can add web references to WSDL which address is on my local machine, I mean http://localhost[Stick out tongueORT]/...?wsdl, but if I try to add a reference to the SAME service on my machine, but using the name of my computer in the place of "localhost" I have this message:

    There was an error downloading 'http://[myPcName]/...?wsdl'.
    The request failed with HTTP status 503: Service Unavailable.

    Even if Visual Studio 2005 can see the ws and all its methods in the left pane... the add reference button is always disabled.

    While if I use a not .NET ws I receive the 403 error.

    As add-on I tried to add the web reference from 5 different computers in my company, with different Windows version: the add web reference worked on 3 of them and failed on the other two. The two of them where it failed were totally updated with the last Windows patches!
    I looked for them in "add/remove programs" under Windows control panel and there are different updates done in the last week, but none of them is uninstallable...

    It would be nice if somebody in microsoft could explain this behaviour...
    Till two weeks ago, averything was working fine!!

    Kind regards,

    Il Dima
    Thursday, November 29, 2007 9:25 AM
  • Hello Il Dima,

     

    > thanks so much for your answer!
    No problem, this little issue is a pet peeve for me.
    As such I'm always on the lookout for more information in the
    vain hope that somehow it can be resolved.

     

    > I can explain a little better my situation:
    > I can add web references to WSDL which address is on my local
    > machine, I mean
    http://localhost[: PORT]/...?wsdl, but if I
    > try to add a reference to the SAME service on my machine, but
    > using the name of my computer in the place of "localhost" I
    > have this message:
    > There was an error downloading 'http://[myPcName]/...?wsdl'.
    > The request failed with HTTP status 503: Service Unavailable.
    Not sure if this matters to your configuration, but you didn't
    mention if you specified a port on the second URL. If you don't
    specify it will default the the HTTP port (80). That could cause
    a "Service Unavailable" response in the above scenario.

     

    Glad you mentioned the ability to add the WSDL from your local
    machine though, I was also able to do that way back when I was
    attempting to debug this. Unfortunately that wasn't really a
    solution for me as the service behind the WSDL was on a
    PeopleSoft Application Server machine, and the way it constructs
    the WSDL involves multiple includes of XSDs for each type of
    message going back and forth. So although I could add the WSDL
    to my project as a Web Reference when the WSDL was on my local
    machine, I would have also had to maintain all the message XSDs
    and the overhead involved in the process was unacceptable.

     

    > Even if Visual Studio 2005 can see the ws and all its methods
    > in the left pane... the add reference button is always disabled.

    Thats what I get, left pane is a-okay, right textbox contains a
    403 error and button is disabled. I can see the WSDL-WS is there...
    but the Add Web Reference Wizard won't let me add it!
    Sad

     

    > While if I use a not .NET ws I receive the 403 error.
    Do you mean that the left pane doesn't show the WS and methods?
    You get a 403 across the board?
    I have not received that message. You may want to try to browse
    to the Web Service using IE or FireFox if that happens. Just to
    confirm that the WS should be readable by VS2005.

     

    > As add-on I tried to add the web reference from 5 different
    > computers in my company, with different Windows version: the
    > add web reference worked on 3 of them and failed on the other
    > two. The two of them where it failed were totally updated
    > with the last Windows patches!
    > I looked for them in "add/remove programs" under Windows
    > control panel and there are different updates done in the
    > last week, but none of them is uninstallable...

    Can you tell me which KBs were installed within the last two
    weeks on the machines which failed?

    The thing is, the Virtual PC I have set up to allow me to add
    WSDL Web References is also fully up-to-date with patches. It
    only has the OS (WinXP-Pro-SP2), Visual Source Safe 6.0d,
    VS2003, and VS2005 installed on it though. I tried to keep
    the installs to a minimum as I had no idea what was going to
    "break" the Add Web Reference Wizard.

     

    > It would be nice if somebody in microsoft could explain this
    > behaviour...

    Good luck with that, I've never heard a peep from them.

     

    > Till two weeks ago, averything was working fine!!
    I don't suppse you can revert to a System Restore point before
    two weeks ago and see if the problem disappears?
    I've never had it working on my development machine so that was
    never an option for me. Sad

     

    Best wishes, Paul.

    _____________________________________________________
    Paul Dickson BCIS (Computer and Information Science)
    Senior Software Developer: Student System Upgrade Project
    Information Strategy and Technology Services
    University of South Australia (CRICOS Provider no 00121B)
    A Building, Mawson Lakes Campus
    MAWSON LAKES
    South Australia, 5095

     

    Thursday, November 29, 2007 11:27 PM
  •  

    VS2005 is now allowing Web References to be added.

    VS2003 still causes a 403:Forbidden error.

     

    Recently the University began moving to Visual Studio Team Foundation Server.

    In doing so VS2005 had the following upgrades for the VSTFS Client manually performed (in the order shown).

    Somewhere along the way the problem I had been having for almost a year with adding Web References went away.

     

    1. Check to see if the Web Application Patch/Add-in is installed, if so, remove it using Add/Remove Programs,

    2. Install SP1 for VS2005,

    3. Install Team Foundation Client,

    4. Install SP1 for VS2005 (Adds extra components for VSTFS which do not normally get installed if TFS Client is absent),

    5. Install Windows SharePoint Services 3.0 Hotfix.

     

    Also required the ticking of the option in "IE7>Tools>Option>Connections>Local Area Network (LAN) Settings" for "Automatically detect settings". No automatic script used.

    Proxy server information filled in, and bypass for local addresses ticked with Exceptions listed in the advanced tab.

     

    I cannot say which step fixed the problem, and obviously if you're not licensed to use VSTFS some steps will not be possible. Just thought I'd post this since the problem finally went away!

     

    Best wishes, Paul.

    _____________________________________________________
    Paul Dickson BCIS (Computer and Information Science)
    Senior Software Developer: Student System Upgrade Project
    Information Strategy and Technology Services
    University of South Australia (CRICOS Provider no 00121B)
    A Building, Mawson Lakes Campus
    MAWSON LAKES
    South Australia, 5095

    Monday, January 14, 2008 4:27 AM
  • Though I tried this for VS2005, apparently unchecking all checkboxes on the LAN Settings pop-up in the Connections Tab in Tools> Options allows VS2003 to add WSDL based web references.

     

    Didn't work for me for VS2005, tfs install did.

     

    VS2003 is now working with the proxy stuff all disabled.

    Go figure.

     

    -Paul.

    _____________________________________________________
    Paul Dickson BCIS (Computer and Information Science)
    Senior Software Developer: Student System Upgrade Project
    Information Strategy and Technology Services
    University of South Australia (CRICOS Provider no 00121B)
    A Building, Mawson Lakes Campus
    MAWSON LAKES
    South Australia, 5095

    Tuesday, February 12, 2008 1:37 AM