How can i resolve it and generate a web service?

miaomiaoga 2002-03-12 01:40:22
(sorry,i can't used chinese now)

i tried to use the service sample(all generated by .NET web service
wizard)...like the follow:

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}


but when i type the follow command to test the .NET service:
http://localhost/WebService1/Service1.asmx?WSDL

it shows error, and the error message at the follow:

Server Application Unavailable
The web application you are attempting to access on this web server is
currently unavailable. Please hit the "Refresh" button in your web browser
to retry your request.

Administrator Note: An error message detailing the cause of this specific
request failure can be found in the system event log of the web server.
Please review this log entry to discover what caused this error to occur.



and when i checked the event viewer,it shows two error message:

1->>aspnet_wp.exe could not be started. HRESULT for the failure: 80004005

2->>aspnet_wp.exe could not be launched because the username and/or password
supplied in the processModel section of the config file are invalid.



how about your suggestion? how can i resolve it?~~~hope you can help me..:)


--
Benny Ng

Benny_Wufree@hotmail.com

...全文
43 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
miaomiaoga 2002-03-20
  • 打赏
  • 举报
回复
嗯!行~~~加分!
miaomiaoga 2002-03-16
  • 打赏
  • 举报
回复
惨。。。没人来理我。。。唉。。。
qqchen79 2002-03-16
  • 打赏
  • 举报
回复
你生成过WebService的代理了吗?VS.NET里就是加Web Reference。
会有一个mywebservice1.dll之类的东西,把它和你的VB.NET程序(*.exe)放在一个目录下才行。

把username改成SYSTEM可不是什么好主意,安全上不太好。:)
但至少将就能用了。
miaomiaoga 2002-03-13
  • 打赏
  • 举报
回复
Machine.config文件如下:
userName="machine" password="AutoGenerate"

webservice的目錄已經有讀和寫的權限了~~~還是不行。。。

USERNAME是不是要改為另外一些東西?
miaomiaoga 2002-03-13
  • 打赏
  • 举报
回复
改成SYSTEM就行了。。。但我用一個VB。NET程序調用它的時候。。。出現以下信息:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in system.windows.forms.dll

Additional information: File or assembly name mywebservice1, or one of its dependencies, was not found.

是什麼意思?我無法運行下去。。
qqchen79 2002-03-12
  • 打赏
  • 举报
回复
1. 看看你的Machine.config文件(再.net framework目录下)中的processModel::username是否存在?是什么值?
2. 你的WebService目录是否有读/执行权限?

12,166

社区成员

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

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