WebService: Error adding reference or calling the service in browser

Posted on 2007-07-30
Last Modified: 2008-10-21
Hi Experts,

I've created the simple hello world webservice.
when I want to call it in the browser or when I want to add the reference to a aspx-site the following error occurs:

Server Error in '/' Application.

The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.

VisualStudio adding reference:
The proxy settings on this computer are not configured correctly for web discovery

But the webservice and the aspx site are on the same server. I'm still testing. It's my first webservice.

Thanks a lot for help!
Question by:arthrex
    LVL 1

    Accepted Solution

    Hello arthrex,
    The error you have mentioned can be incurred
    1. Each web service is called with its port number so if you want to reference a webservice you have to use http://localhost:8080/testapplication/service.asmx.
    also make sure that your service is running on that port(if VS2005).
    2. The other solution could be
    go to IIS...
    Navigate to your virtual directory .
    right click your virtual directory ..
    On the Directory tab Click on Remove button and then click on Create
    and press OK  button for the changes to happen
    now browse your asmx file from the IIS

    I think the above solutions should work..



    Author Comment

    Thanks a lot for your answer.
    The Number 2 really helped me.
    But in fact, tha main problem war the sharepoint server on which the service was running.
    You have to delete the Webservice-extension out of a list of prohibited extensions in the sharepoint administration.

    Thanks again!

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
    It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now