关于WCF服务的问题

l350045245 2010-07-12 03:34:20

<!--QuotationPrinterService-->
<service behaviorConfiguration="ERPServer.QuotationPrinterServiceBehavior"
name="ERPServer.QuotationPrinterService">
<endpoint address="" binding="wsHttpBinding" contract="ERPServer.IQuotationPrinterService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:9003/ERPServer/QuotationPrinterService/" />
</baseAddresses>
</host>
</service>




<behavior name="ERPServer.QuotationPrinterServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>




求助:为什么发布的时候总是提示“无法启动该服务。该服务没有定义终结点。请在配置文件中为该服务至少添加一个终接点,然后重试。”
...全文
442 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
passingtraverller 2011-11-22
  • 打赏
  • 举报
回复
我现在也遇到这个问题了 能告诉一下你是怎么解决的吗 谢了
l350045245 2010-07-14
  • 打赏
  • 举报
回复
silverlight+MVC+wcf
这只是我的一个想法!
因为我感觉使用MVC的话,可以让各个层的调用更加的整洁,规范!更加清晰一些!
因为之前我用的是WCF的面向服务做了一个ERP程序的几个模块!当时用了很多重载,重写,虚方法!虽然功能实现了。不过个人感觉看着比较凌乱!所一我打算尝试假如MVC的设计模式,使用接口去实现。
可能我说的很多都很模糊,甚至错误!大家别介意!
大家就随便的说说思路,让我也学习下。
其实我接触软件行业不到两年时间,而且学的很杂!搞过java,ASP.NET,C#.NET,以前用的设计模式主要是MVC,现在又接触了WCF,silverlight,VB.NET.可能还要去研究delphi。我个人感觉很杂。迫切需要高人来指点一下!
l350045245 2010-07-14
  • 打赏
  • 举报
回复
大家有没有在C#.net平台下
用silverlight+MVC+wcf开发过。
可以说下思想吗
我现在正准备这样去开发一个ERP。
还有一个问题,大家有用过FilterControl控件吗!
l350045245 2010-07-14
  • 打赏
  • 举报
回复
服务器的配置都很正确!问题找出来了。
不过现在保存数据之后又出现了新的问题。
远程服务器返回了意外响应: (400) Bad Request。
网上搜索了一下,说是要
<binding name="WSHttpBinding_IQuotationPaperService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
把红色的地方改大一些!我就改成了maxReceivedMessageSize="655360000",不过还是有错误
继续提示远程服务器返回了意外响应: (400) Bad Request。
这又该怎么办
dolphin0714 2010-07-14
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 sunpire 的回复:]
service.name
endpoint.contract
中所指定的名称,要和 .svc 中的 class 全名称 和所要实现的 interface 全名称 完全一致。
[/Quote]

我用这个方法解决了大数据量的问题!谢谢!
Sunpire 2010-07-13
  • 打赏
  • 举报
回复
service.name
endpoint.contract
中所指定的名称,要和 .svc 中的 class 全名称 和所要实现的 interface 全名称 完全一致。
老Key 2010-07-12
  • 打赏
  • 举报
回复
服务配置不正确。。。
http://bbs.cnw.com.cn/thread-178115-1-1.html

8,756

社区成员

发帖
与我相关
我的任务
社区描述
WPF/Silverlight相关讨论
社区管理员
  • WPF/Silverlight社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧