我的问题是,当我跑我的解决方案,我没有问题问题形成
这里是劳务输出看起来像
当我做在我的链接喜欢这个
而且它是正确的
但是当我部署的解决方案,使用安装程序,我创建
我仍然可以访问,但输出是这样的
安装程序安装它,我尝试导航,它像这样因为它没有输出
如何解决它,它是不正确的?我认为它已经可以,因为当我在Visual Studio中运行它时,它会给我预期的输出,但是当我部署它时不会。
服务App.Config中
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="WcfServiceLibrary.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true"/>
</system.web>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="NewBehavior0">
<webHttp defaultOutgoingResponseFormat="Json" />
</behavior>
</endpointBehaviors>
</behaviors>
<services>
<service name="WcfServiceLibrary.Service">
<endpoint address="" behaviorConfiguration="NewBehavior0" binding="webHttpBinding"
bindingConfiguration="" name="Basic" contract="WcfServiceLibrary.IService" />
<host>
<baseAddresses>
<add baseAddress="http://PHWS13:8080/service" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
</configuration>
您可以请分享您的web.config这项服务? Becausse根据您需要在服务行为标记中添加的消息。 –
2013-05-03 06:45:05
@SandeepKumar,更新的先生。 – SHINHAN 2013-05-03 06:48:26
也许你应该尝试以管理员模式执行你的winforms应用程序? (右键单击并以管理员身份运行) – 2013-05-03 06:54:22