如何在线托管c#Web服务 [英] How to host a c# web service online

查看:68
本文介绍了如何在线托管c#Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下午好,

我正在使用asp.net应用程序,它附带了ac #web服务,它在我的开发机器上工作正常(即我可以查看和访问关于服务的网络方法)但是我不知道如何将它部署到我的网络托管空间以便它可以工作。



我试过在我的系统上使用IIS管理器但它无法与服务器连接。我还尝试使用文件管理器将一些文件(即.asmx,web.config和.asmx.cs文件)从应用程序复制到服务器,但是当我尝试从Web访问.asmx文件时它会抛出错误消息浏览器。我非常感谢您提出的任何可以使应用程序正常工作的建议。谢谢。

Good afternoon,
I'm working on an asp.net application and it has a c# web service attached with it, it works fine on my development machine (i.e I can view and access the web methods on the service) but I don't know how to go about deploying it to my web hosting space in order for it to work.

I've tried using IIS manager on my system but it can't connect with the server. I also tried copying some of the files(i.e the .asmx, web.config and .asmx.cs files) from the application to the server using file manager, but it throws error messages when i try accessing the .asmx file from a web browser. I'd really appreciate any advice from you that would make the application to work. Thank you.

推荐答案

你可以在IIS上托管你的web服务。

确保你有权从IIS访问这些文件您正在使用正确的应用程序池。

还确保您的IIS设置正确



这里有一些关于如何托管Web服务的链接



http://stackoverflow.com/questions/5818983/how-to-publish-a-web-service-from-visual-studio-into-iis [ ^ ]



http://forums.iis.net /t/1186896.aspx/1 [ ^ ]
you can host your webservice on IIS.
make sure that you have permission to access the files from IIS and that you are using the correct Application Pool.
also ensure that your IIS is setup correctly

here are some links on how to host web services

http://stackoverflow.com/questions/5818983/how-to-publish-a-web-service-from-visual-studio-into-iis[^]

http://forums.iis.net/t/1186896.aspx/1[^]


上面的问题有已经解决了。感谢大家的贡献。
The above problem has been solved. thanks everyone for your contributions.


这篇关于如何在线托管c#Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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