C# web service Config Error: Cannot read configuration file
hoogw 2008-01-19 03:10:34 When you use visual studio to build a C# web service,
never try to save the project in default directory
( my default is: C:\Users\Joe Hu\Documents\Visual Studio 2005\Projects\...)
You should choose another directory on c: disk other than the default one!!!!
The default directory will get you into trouble by IIS could not find config file.(see below in red)
I try a hello world C# web service, got the following error
http://localhost:89/myadd/firstservice.asmx
----------------------------------------------
Server Error
--------------------------------------------------------------------------------
HTTP Error 500.19 - Internal Server Error
Description: The requested page cannot be accessed because the related configuration data for the page is invalid.
Error Code: 0x80070005
Notification: BeginRequest
Module: IIS Web Core
Requested URL: http://localhost:89/myadd/firstservice.asmx
Physical Path: C:\Users\Joe Hu\Documents\Visual Studio 2005\Projects\WebService1\WebService1\myadd\firstservice.asmx
Logon User: Not yet determined
Logon Method: Not yet determined
Handler: Not yet determined
Config Error: Cannot read configuration file
Config File: \\?\C:\Users\Joe Hu\Documents\Visual Studio 2005\Projects\WebService1\WebService1\web.config
Config Source: -1:
0: