Consuming ASP.NET Web Service

From: Thom Little (thom_at_tlanet.net)
Date: 03/27/05

  • Next message: Bernard: "Re: AES 256-bit Certificate"
    Date: Sun, 27 Mar 2005 05:33:42 -0500
    
    

    I am trying to access the HelloWorld method compiled in one project using a
    consuming C# code-behind method compiled in a separate project.

    Both run on localhost. The test drivers provided in Visual Studio .NET 2003
    can invoke the method.

    When I attempt to add a web reference in the consuming project for the
    webservice I get the error message ...

    Configuration Error
    Description: An error occurred during the processing of a configuration file
    required to service this request. Please review the specific error details
    below and modify your configuration file appropriately.

    Parser Error Message: It is an error to use a section registered as
    allowDefinition='MachineToApplication' beyond application level. This error
    can be caused by a virtual directory not being configured as an application
    in IIS.

    Source Error:

    Line 43: by Microsoft that offers a single logon and core profile
    services for member sites.
    Line 44: -->
    Line 45: <authentication mode="Windows" />
    Line 46:
    Line 47: <!-- AUTHORIZATION

    Can you give me some guidance on how to correct this condition to permit me
    to establish the reference to the webservice?

    After I see this simple (first) case, I will be able to attack the "real"
    project.

    If there is a better newsgroup for my question, please let me know.

    (Yes I do have administrator on privileges on this machine and access to IIS
    configuration.)

    -- 
    --  Thom Little  --  www.tlanet.net  --  Thom Little Associates, Ltd.
    --
     
    

  • Next message: Bernard: "Re: AES 256-bit Certificate"

    Relevant Pages

    • Re: Going nuts - Configuration Error
      ... I've turnded off indexing in the IIS. ... An error occurred during the processing of a configuration file ... partial, or location-based assembly bind). ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: VS.NET 2005 and the "allowDefinition=MachineToApplication" error
      ... allowDefinition='MachineToApplication' in its configuration file. ... No, it's not, but the same rules apply for the internal web server as for IIS. ... If you need to use 'MachineToApplication' sections, you must create a virtual directory. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Logon using client certificate
      ... Right click on the virtual directory in the IIS MMC and check the ... An error occurred during the processing of a configuration file ... >below and modify your configuration file appropriately. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Windows authentication setting in web.config
      ... Anonymous access in IIS, and add ASPNET user in it. ... An error occurred during the processing of a configuration file ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Problem with application settings file
      ... you're asking where to put the configuration ... There is no config file for a .dll - you put all the .dll's ... configuration information in the consuming application's config file. ... There are some gotcha's, though, and the referenced post details how ...
      (microsoft.public.dotnet.languages.vb)