演练:在Visual Web Developer中创建和使用ASP.NET Web服务 [英] Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer
问题描述
我正在尝试运行 http://localhost/TemperatureWebService/Convert.asmx
我得到以下消息,有人可以帮忙吗?
无法显示XML页面
无法查看XML输入XSL样式表。请更正错误,然后单击刷新按钮,或稍后再试。
I am trying to run http://localhost/TemperatureWebService/Convert.asmx
I get th emessage below, Can anyone help please?
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
<%@ WebService Language="VB" CodeBehind="~/App_Code/Convert.vb" Class="Convert" %>
-^
推荐答案
请告诉我们您是如何创建Web服务的。它是否可以从Visual Web Developer内部工作?当你说你是"试图跑"时服务,你的意思是从浏览器?您是否将IIS配置为指向您的服务?虚拟目录是否设置为应用程序?
Please tell us how you created the web service. Does it work from inside of Visual Web Developer? When you say you are "trying to run" the service, do you mean from a browser? Did you configure IIS to point to your service? Is the virtual directory set up as an application?
这篇关于演练:在Visual Web Developer中创建和使用ASP.NET Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!