返回首页

我想建立动态发现VY vsdisco演示。
我有变化machine.config中,但我得到follwoing错误。

The document at the url http://localhost:50834/DemoProject/DemoProject.vsdisco was not recognized as a known document type.

The error message from each known type may help you fix the problem:

- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.

- Report from 'DISCO Document' is 'Discovery document at the URL http://localhost:50834/DemoProject/DemoProject.vsdisco could not be found.'.

  - The document format is not recognized (the content type is 'application/octet-stream').

- Report from 'WSDL Document' is 'There is an error in XML document (2, 2).'.

  - <dynamicdiscovery xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17"> was not expected.

Metadata contains a reference that cannot be resolved: 'http://localhost:50834/DemoProject/DemoProject.vsdisco'.

The remote server returned an unexpected response: (405) Method Not Allowed.

The remote server returned an error: (405) Method Not Allowed.

If the service is defined in the current solution, try building the solution and adding the service reference again.

</dynamicdiscovery></schema>

如何解决这个问题。
请帮助我。

回答

评论会员:thatraja 时间:2012/02/07
之前的例子,你必须了解的概念。检查这篇文章中,解释清楚

]
评论会员:游客 时间:2012/02/07
DKNTH:这里有一些链接,可以帮助你,{A2}{A3的}希望它帮助,感谢
member60
评论会员:游客 时间:2012/02/07
看看:{A4纸}{A5的}{A6的}希望这会你
RaisKazi
评论会员:游客 时间:2012/02/07
下面是前4为"Asp.Net饼干"的链接在谷歌搜索发现{A7的}{A9的}{A10的}对于更多的参考。{A11}
srinivas vadepally
评论会员:游客 时间:2012/02/07
您好,{A12}{A13号}]
mandarapu
评论会员:游客 时间:2012/02/07
您好,请检查一些有关饼干饼干:Web应用程序可以通过使用Cookie存储在客户端的Web浏览器的数据小块。Cookie是一个小的数据量,要么在客户端上的文件系统的文本文件(如果Cookie是持久的),或存储在内存中在客户端浏览器会话(如果cookie是临时)。Cookie的最常见的用途是确定一个单一的用户,因为他或她访问多个网页。阅读和写作的饼干:Web应用程序创建一个发送到客户端作为一个在HTTP响应头中的cookie。在Web浏览器,然后提交相同的cookie到服务器,每一个新的请求。创建一个cookie-GT值添加到Response.CookiesHttpCookieCollection读取cookie的GT。读值在Request.Cookies例如://检查Cookie是否存在,并显示它,如果它(Request.Cookies["上次访问"]=NULL)//编码的cookie的情况下,Cookie包含客户端脚本Label1.Text=Server.HtmlEncode(Request.Cookies["上次访问是在"价值。){BR}其他Label1.Text="没有价值";//定义为下一次访问该cookieResponse.Cookies["上次访问"]=DateTime.Now.ToString();Response.Cookies["上次访问"]{BR=DateTime.Now.AddDays(1)到期。}如果你没有定义Expires属性,浏览器在内存中存储的cookie丢失,如果用户关闭了他或她的浏览器。要删除一个cookie,覆盖cookie,并设置在过去的到期日期。你不能直接删除,因为它们是客户端的计算机上存储的Cookie。控制Cookie的范围:默认情况下,浏览器将不会与不同的主机名发送一个cookie的网站。你可以控制Cookie的范围的范围来限制到一个特定的文件夹在Web服务器上或扩大范围中的任何一个域的服务器。到Cookie的范围限制到一个文件夹,设置Path属性,如下面的示例演示:例如:Response.Cookies["上次访问是在"路径="/Application1的"。通过这次的范围仅限于"/Application1的"文件夹,浏览器在此文件夹,而不是在其他文件夹的网页提交任何网页的文件夹,即使是在同一台服务器的cookie。我们还可以扩大范围,以一个特定的域使用下面的语句:例如:Response.Cookies["上次访问"]域="Contoso"的;在cookie中存储多个值:虽然它取决于浏览器,你通常可以不存储超过20个Cookie,每个站点,每个cookie可以是一个最大长度为4KB。要解决的20个cookie的限制,你可以在cookie中存储多个值,如下面的代码演示:例如:Response.Cookies["信息"]["访问"的价值=DateTime.Now.ToString();Response.Cookies["信息"]["名字"]="托尼"。Response.Cookies["信息"]["边界"]="蓝";Response.Cookies["信息"]=DateTime.Now.AddDays(1)到期;