调试 asmx Web 服务
如何调试在 IIS 上运行的 asmx Web 服务?我读到我必须附加到名为 aspnet_wp 或 w3wp 的进程。但我找不到这些进程...我选中了复选框“显示所有用户的进程”,但仍然没有任何结果。有什么问题吗?
问候
How can I debug asmx webservices running on IIS? I read that I must Attach to process called aspnet_wp or w3wp. But I can not find these processes... I selected checkbox show processes from all users but still nothing. What can be wrong?
regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您的服务未运行,则可能没有工作进程在运行。通过从浏览器访问服务来启动您的服务,或者使用 Visual Studio 内部的“在浏览器中查看”。
If your service is not running, then there might not be a worker process running. Start your service by accessing it from the browser, of use "View In Browser" from inside of Visual Studio.
它可能不是您正在寻找的,但是您不能先从 Visual Studio 运行您的项目吗?我通常在访问 IIS 之前这样做。
或者您的项目在 VS 上运行良好,而在 IIS 上运行良好吗?我个人从来没有自己做过,因为我在本地调试所有代码。
至于远程和本地IIS调试,我想你可以在这个网站上查看 CodeProjectI< /a> 和 CodeProjectII。作者自称是ASP.NET中的前MVP,应该有用。
It may not be what you are looking for, but can't you run your project from visual studio first? I usually do it that way before going to IIS.
Or does your project run fine on VS and an other way with IIS? I personnaly never done it myself since I debug all my code in local.
As far as remote and local IIS debugging are concerned, I think you can check on this site CodeProjectI and CodeProjectII. The author claims to be a former MVP in ASP.NET, should be useful.
您必须登录到运行 Web 服务的计算机。您需要在该机器上安装调试器。
如果不可能,您可以在服务器上安装 VS 的远程调试器。要安装远程调试器,您只需从 VS 安装 CD 或已安装 VS 的计算机复制 msvsmon.exe 并启动它。
然后,当您从计算机附加到进程时,您可以输入远程服务器的名称并单击“浏览”。您应该能够看到远程服务器上运行的所有进程。您需要该服务器的管理或调试器权限。
You have to be logged onto the machine that runs web service. You would need a debugger installed on that machine.
If that is not possible, you can install remote debugger for VS on the server. To install remote debugger you just need to copy msvsmon.exe from your VS installation CD or from machine where VS is already installed and start it.
Then when you attach to proccess from your machine you can type in the name of your remote server and click Browse. You should be able to see all proccess that are running on remote server. You would need administrative or Debugger rights on that server.