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:



...全文
420 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
knowledge_Is_Life 2008-05-01
  • 打赏
  • 举报
回复
好像没那么简单,呵呵.

12,166

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧