当前位置: 代码迷 >> Web Service >> 新建了WebService.asmx项,但添加引用时提示“从此地址下载元地出错,请确认办您输入了有效地。”请前辈指导,应该怎么解决!先感谢了
  详细解决方案

新建了WebService.asmx项,但添加引用时提示“从此地址下载元地出错,请确认办您输入了有效地。”请前辈指导,应该怎么解决!先感谢了

热度:372   发布时间:2016-05-02 02:40:04.0
新建了WebService.asmx项,但添加引用时提示“从此地址下载元地出错,请确认办您输入了有效地。”请前辈指导,应该如何解决!先感谢了!
本帖最后由 salecn 于 2012-08-14 10:35:00 编辑
在vs2010+asp.net中,新建了WebService.asmx项,但添加引用时提示“从此地址下载元地出错,请确认办您输入了有效地。”请前辈指导,应该如何解决?小弟先感谢了!




(如果图片显示不全,请点击这个图片:/img/2012/12/23/121001406.jpg)

详细提示错误如下:

 

 

下载“http://localhost:39495/WebService.asmx”时出错。
请求失败,错误信息为:
--
<html>
    <head>
        <title>分析器错误</title>
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} 
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Lucida Console";font-size: .9em}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>“/”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>

            <h2> <i>分析器错误</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> 说明: </b>在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件
            <br><br>

            <b> 分析器错误消息: </b>未能创建类型“Viewer.WebService”。<br><br>

            <b>源错误:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

<font color=red>行 1:  <%@ WebService Language="C#" CodeBehind="WebService.asmx.cs" Class="Viewer.WebService" %>
  相关解决方案