我在服务器上的第一个WCF服务主机 [英] My first WCF services Host on the server

查看:92
本文介绍了我在服务器上的第一个WCF服务主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS 2008中创建一个简单的WCF项目,

档案>新建>专案> WcF服务申请(WCFTset)
建立和将其上传到服务器(通过Filezilla)

我在http://xyz.com/service1.svc上遇到错误:

Create a simple WCF project in VS 2008,

File >New >project > WcF Sevice Application (WCFTset)
Build & upload it to Server (via Filezilla)

I''m getting error on http://xyz.com/service1.svc as :

Server Error in '/' Application.

Runtime Error

Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 



我在服务器上的安装程序中错过了什么?



What I missed in setup on the server???

推荐答案

该错误只是指出存在问题.但是,为了查看原因,您可以在本地使用浏览器在服务器上尝试该服务,也可以修改web.config以允许显示错误.为此,将以下内容添加到web.config中:
The error simply states that there is a problem. But in order to see the reason you should either try the service on the server using browser locally or you can modify the web.config to allow to show the error. In order to do that add the following to the web.config:
<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>


这篇关于我在服务器上的第一个WCF服务主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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