sweddle
January 9th, 2009, 08:26 PM
I'm trying to test a simple web service. I've copied the project folder to this folder C:\Inetpub\wwwroot. I enter this into internet explorer http://localhost/HelloWorld/Service1.asmx. HelloWorld is in the folder under C:\Inetpub\wwwroot. Service1.asmx is the web service file I'm trying to load. I'm expecting the service to be loaded and I get screen that has the button to click which represents the function inside the service which will print out "Hello World!". Instead I always get this error. I'm suprised it's so hard to test this web service. I'm thinking something is configured incorrectly, but have no idea what.
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 27: "Passport" and "None"
Line 28: -->
Line 29: <authentication mode="Windows"/>
Line 30: <!-- APPLICATION-LEVEL TRACE LOGGING
Line 31: Application-level tracing enables trace log output for every page within an application.
Source File: c:\inetpub\wwwroot\helloworld\web.config Line: 29
Show Additional Configuration Errors:
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. (c:\inetpub\wwwroot\helloworld\web.config line 43)
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Server Error in '/' Application.
--------------------------------------------------------------------------------
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 27: "Passport" and "None"
Line 28: -->
Line 29: <authentication mode="Windows"/>
Line 30: <!-- APPLICATION-LEVEL TRACE LOGGING
Line 31: Application-level tracing enables trace log output for every page within an application.
Source File: c:\inetpub\wwwroot\helloworld\web.config Line: 29
Show Additional Configuration Errors:
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. (c:\inetpub\wwwroot\helloworld\web.config line 43)
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053