我的网络服务无法识别 [英] My webservice don't recognize

查看:83
本文介绍了我的网络服务无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



i写一个简单的网络服务并将其上传到我的主机上。

1-我上传2个文件asmx和cs文件没有发布。是否有必要发布Web服务然后上传已发布的文件?

2-我在浏览器的URL中写入Web服务的地址。但它无法识别Web服务。为什么?





谢谢



我尝试过什么:



i不做任何事情来解决这个问题。因为我不知道应该做什么

hello

i write a simple web service and upload it in my host.
1- i upload 2 files asmx and cs files without publish. is it necessary to publish web service then upload published files?
2- i write the address of web service in url of browser. but it don't recognize web service. why?


thanks

What I have tried:

i don't do any things for solve this problems. because i dont know what should be do

推荐答案

你不需要cs文件,cs文件中的代码被编译成一个程序集(dll)而没有那个程序集代码不起作用。它还需要各种配置文件。了解项目所需文件的最简单方法是将文件发布到本地计算机上的文件夹,然后将该文件夹中的所有文件上传到服务器。
You don't need the cs file, the code in the cs file is compiled into an assembly (dll) and without that assembly the code won't work. It will also need various config files. The easiest way to know what files your project needs is to do a file publish to a folder on your local machine, then upload all of the files in that folder to your server.


引用:

是否有必要发布Web服务然后上传已发布的文件?

is it necessary to publish web service then upload published files?





是的。您需要将它们发布,以便您可以在开发环境之外访问它们。它可能位于您的本地IIS或面向公众的服务器主机中。



也许您应该开始查看本文以开始使用Web服务:在ASP.Net Web应用程序中使用Web服务 [ ^ ]


这篇关于我的网络服务无法识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆