Followers

Thursday, August 26, 2004

Error while running web service

I get this Error while running the application that was created in VS.NET
2003 converted to VS.NET 2002. I have put this application in wwwRoot. there
are 2 errors that I get and need some help
1. Error while trying to run project:Unable to start debugger on the webs
server. The project is not configured to be debugged and and a bunch of
lines....

2. If I run this project without debugging then I get this error.

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 38: by Microsoft that offers a single logon and core profile
services for member sites.
Line 39: -->
Line 40:
Line 41:
Line 42:



Source File: c:\inetpub\wwwroot\LMWebService\web.config Line: 40

Solution


It sounds like you need to make your directory a virtual root under the default web. You can't just copy a directory with a web service application into wwwroot without then configuring the directory as a virtual directory in IIS admin.

Try this:
-Open IIS Manager
-Under the default web find the folder LMWebService
-Right click on that folder and select properties
-On the 'Directory' tab, click the Create button next to the Application Name text box which will make the directory a virtual root of the default web.
-Now try hitting your service again.

No comments: