小编Ste*_*man的帖子

通过浏览器调用WCF服务方法

我有一个使用基本http绑定的WCF服务.如何通过浏览器调用其操作/方法?

wcf web-services

29
推荐指数
3
解决办法
7万
查看次数

WCF中服务太忙的错误

我在.Net WCF服务中间歇性地获得以下异常."位于http://MyServer/TestWCF/MyService.svc的HTTP服务太忙了."

我在这里错过了什么吗?

我使用基本的http绑定并启用了WCF限制.

<basicHttpBinding>
        <binding name="BasicHttpBinding_MyService" maxReceivedMessageSize="2147483647"
                 messageEncoding="Text" textEncoding="utf-16" sendTimeout="00:01:00" >
          <readerQuotas maxStringContentLength="2147483647" maxArrayLength="163840000"
                        maxDepth="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
        </binding>
Run Code Online (Sandbox Code Playgroud)

....

<behavior name="MyWCFServices.MyServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceThrottling
                    maxConcurrentCalls="16"
                    maxConcurrentInstances="2147483647"
                    maxConcurrentSessions="10"/>
        </behavior>
Run Code Online (Sandbox Code Playgroud)

限制有助于解决问题吗?另外,我可以知道高流量网站限制的推荐参数值吗?

wcf web-services throttling

29
推荐指数
2
解决办法
4万
查看次数

在WCF服务中使用protobuf

我的asp.net网页位于IIS Web服务器上,它使用基本HTTP绑定与WCF服务(位于Windows 2008 app服务器上)进行通信.我的wcf服务的性能似乎并不那么好,我想改进它.同样,我需要在可扩展性上保持平衡,因为我的网站将拥有非常高的流量.

HTTP压缩,限制是一些我知道但尚未尝试过的方法..我可以使用protobuf API ...请建议......

wcf web-services wcf-binding

17
推荐指数
1
解决办法
8801
查看次数

为什么我收到此WCF错误消息?

当我调用我的WCF服务时,我收到以下错误.我在这里错过了什么?

'System.String[]' with data contract name
'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays'
is not expected. Add any types not known statically to the list of known
types - for example, by using the KnownTypeAttribute attribute or by adding
them to the list of known types passed to DataContractSerializer.'.  Please
see InnerException for more details.

{"There was an error while trying to serialize parameter
http://tempuri.org/:myEntity. The InnerException message was
'Type 'System.String[]' with data contract name
'ArrayOfstring:http://schemas.microsoft.com/2003/10/Serialization/Arrays'
is not expected. Add any types not known statically to …
Run Code Online (Sandbox Code Playgroud)

wcf web-services

8
推荐指数
2
解决办法
2万
查看次数

单击后退按钮强制页面刷新

我有2个asp.net页面..页面A和页面B.在单击页面A上的链接时,用户被重定向到页面B.当在页面B上,如果用户单击浏览器的后退按钮,我需要强制调用页面刷新第A页.如何实现此功能?注意:代码需要兼容不同的浏览器...即IE,Firefox,Opera等

javascript browser asp.net ajax

7
推荐指数
1
解决办法
8555
查看次数

使用Lucene搜索API查找完全匹配

我正在使用Lucene开发公司搜索API.我的Lucene公司指数有2家公司:1.Abigail Adams National Bancorp,Inc.2.National Bancorp

如果用户输入National Bancorp,则只返回#2公司(即National Bancorp),而不是#1 ..... ie.只返回完全匹配.我如何实现此功能?

谢谢阅读.

lucene lucene.net

6
推荐指数
1
解决办法
1万
查看次数

使用Lucene的MultiSearcher类的优点和缺点

我正在使用Lucene搜索API来处理.net Web应用程序.我可以知道使用MultiSearcher的优缺点吗?我应该在什么场景下使用它?

谢谢阅读!

lucene lucene.net

5
推荐指数
1
解决办法
2563
查看次数

更新Lucene索引时出现异常

是Lucene搜索API的新手.我在更新Lucene索引时不断遇到异常...为什么我会收到此错误,我该如何避免呢?

System.IO.IOException: Lock obtain timed out: SimpleFSLock@C:\Indexes\write.lock
   at Lucene.Net.Store.Lock.Obtain(Int64 lockWaitTimeout)
   at Lucene.Net.Index.IndexWriter.Init(Directory d, Analyzer a, Boolean create, Boolean closeDir)
   at Lucene.Net.Index.IndexWriter.Init(String path, Analyzer a, Boolean create)
   at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
Run Code Online (Sandbox Code Playgroud)

谢谢阅读.

c# lucene lucene.net

4
推荐指数
1
解决办法
5249
查看次数

应用程序池错误

我的IIS 7应用程序服务器上出现此错误.

"为应用程序池'%1'提供服务的进程与Windows进程激活服务发生了致命的通信错误"

我该如何解决这个问题?

谢谢阅读.

c# asp.net wcf iis-7

4
推荐指数
1
解决办法
4541
查看次数

使用WhitespaceAnalyzer的停用词

Lucene的StandardAnalyzer在索引时会从字符串/首字母缩略词中删除点.我希望Lucene保留点数,因此我使用的是WhitespaceAnalyzer类.

我可以将我的停用词列表提供给StandardAnalyzer ......但我如何将它提供给WhitespaceAnalyzer?

谢谢阅读.

lucene lucene.net

3
推荐指数
1
解决办法
2163
查看次数

WCF Windows服务作为计划服务

我有一个在应用服务器上运行的.net WCF Windows服务,它继续监视xml文件的文件夹.如何在每天的特定时间(01.00小时)运行此服务?

谢谢.

wcf windows-services

2
推荐指数
1
解决办法
9041
查看次数

使用C#显示日期时间

我需要在我的.Net应用程序中显示如下所示的时间戳:

13/12/2007美国东部时间下午5:04

要么

13/12/2007 5:04 PM CST

取决于美国时区.

如何使用C#实现此功能?

谢谢阅读.

c# datetime

1
推荐指数
1
解决办法
927
查看次数