WCF 服务在一段时间后自行终止

2024-03-03

我面临一个与托管 WCF 服务(.NET Framework 4、IIS 7、Windows 2008 Standard SP2)相关的特殊问题。

在我部署该服务后,它可以正常工作一段时间,然后通过抛出文件未找到异常而自行终止。下面给出了例外的详细信息。

该应用程序托管在 IIS7 中,具有指向 .NET Framework 4 版本的特定应用程序池。我已经使用 FusionLog 来查找有关丢失的程序集的更多信息,但没有运气。但是,如果我从托管服务器中删除所有程序集并从构建文件夹中再次复制它,它就会再次开始工作,绝对没有问题。我无法解释这种行为,并进行了很多搜索/尝试来找到答案。为了提供更多信息,该服务是本地程序集,我使用企业库进行异常处理和日志记录。我们使用 httpBinding 的 WCF 服务。程序集是调试版本。请帮忙。

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    ------    
  <!-- Begin .......Exception Handling Configuration-->
  <!-- End .........Exception Handling configuration-->

  <!-- Start .............Logging Configuration-->
  <!--End............ Logging Configuration-->

  <system.web>
    <compilation debug="true" targetFramework="4.0" />
        <identity impersonate="true" />
  </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <defaultDocument>
            <files>
                <add value="Service.svc" />
            </files>
        </defaultDocument>
    </system.webServer>

    <!-- Start WCF ................Settings-->
  <system.serviceModel>
    <diagnostics>
      <messageLogging logEntireMessage="true" logMessagesAtServiceLevel="true" />
      <endToEndTracing propagateActivity="true" activityTracing="true" messageFlowTracing="true" />
    </diagnostics>
    <!-- Begin..Included for Switching off Security-->
    <bindings>
      <basicHttpBinding>
        <binding name="httpBindingConfig" closeTimeout="24.01:00:00" openTimeout="24.01:00:00" receiveTimeout="24.10:00:00" sendTimeout="24.01:00:00" />
      </basicHttpBinding>
    </bindings>
    <!-- End ..Included for Switching off Security-->
    <services>
      <service name="Service">
        <endpoint binding="mexTcpBinding" bindingConfiguration="" name="EndPointMex" contract="ICommunicatorService" />
        <endpoint address="http://<>/Service.svc" binding="basicHttpBinding" bindingConfiguration="" name="EndPointHttp" contract="Reflections.IService" />
        <host>
          <timeouts closeTimeout="24.00:10:00" openTimeout="24.01:00:00" />
        </host>
      </service>
    </services>
    <behaviors>
    <serviceBehaviors>
      <behavior>
        <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
        <serviceMetadata httpGetEnabled="true" />
        <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
        <serviceDebug includeExceptionDetailInFaults="true" />
      </behavior>
    </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <!-- End WCF ................Settings-->  
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
  </system.webServer>
 </configuration>

事件日志 - - - - - - - - - - -

 Log Name:      Application
    Source:        System.ServiceModel 4.0.0.0
    Date:          7/5/2011 10:39:47 AM
    Event ID:      3
    Task Category: WebHost
    Level:         Error
    Keywords:      Classic
    User:          NETWORK SERVICE
    Computer:      <Masked for Security Reasons>
    Description:
    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/12036987
     Exception: System.ServiceModel.ServiceActivationException: The service '/Service.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified.. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       --- End of inner exception stack trace ---
       at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
       at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath)
     Process Name: w3wp
     Process ID: 3480

ASP.NET 页面中显示错误-----------------

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' could not be loaded.


Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e
 (Fully-specified)
LOG: Appbase = file://path/
LOG: Initial PrivatePath = \\path\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: \\path\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e
LOG: The same bind was seen before, and was failed with hr = 0x80070002.



Stack Trace: 


[FileNotFoundException: Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +132
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +210
   System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440
   System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
   System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615

[ServiceActivationException: The service '/Service.svc' cannot be activated due to an exception during compilation.  The exception message is: Could not load file or assembly 'Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e' or one of its dependencies. The system cannot find the file specified..]
   System.Runtime.AsyncResult.End(IAsyncResult result) +687598
   System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
   System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +301390
   System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +8898292
-------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 

融合日志错误

*** Assembly Binder Log Entry  (7/22/2011 @ 10:34:51 AM) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e
 (Fully-specified)
LOG: Appbase = file://path/
LOG: Initial PrivatePath = \\path\bin
LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b44c783a
LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\b44c783a
LOG: AppName = 34485861
Calling assembly : (Unknown).
===
LOG: Start binding of native image Reflections.Service, Version=1.0.0.0, Culture=en-US, PublicKeyToken=fb2997440781f12e.
WRN: No matching native image found.

这里讨论了类似的问题,但找不到答案更改 web.config 会导致 WCF 服务关闭吗? https://stackoverflow.com/questions/6386320/changing-the-web-config-takes-the-wcf-service-down


是否有可能文件未找到是转移注意力并且您刚刚遇到不活动超时?我记得当我编写第一个 WCF 服务时,我没有意识到超时设置默认为相当短的时间(例如几分钟)。我认为你可以将它们设置得很长(比如 24 天)。

在我的应用程序配置中,紧接在 部分之后的 部分中,我有:

    <system.serviceModel>
    <bindings>
        <netTcpBinding>
            <binding name="tcp_unsecured" receiveTimeout="infinite" sendTimeout="00:00:30">
                <security mode="None">
                </security>
            </binding>
        </netTcpBinding>
    </bindings>

This is followed by my service and behaviors sections. Here's a png of the dialog when I right click and select Edit WCF Configuration on my app.config. I typed "infinite in the app.config xml file but the dialog turns that into the relevant large value. enter image description here

更新:在我的中介类中,这里是设置 NetTcpBinding 的构造函数。我之所以将其包括在内,是因为我似乎需要在代码中设置超时。

    public DspServiceMediator( String serviceAddress)
    {
        EndpointAddress end_point = new EndpointAddress(serviceAddress);
        NetTcpBinding new_tcp = new NetTcpBinding(SecurityMode.None)
                                {ReceiveTimeout = TimeSpan.MaxValue,
                                 SendTimeout = new TimeSpan(0, 0, 30)
                                };

        _dspClient = new DspServiceClient(new_tcp, end_point);
    }
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

WCF 服务在一段时间后自行终止 的相关文章

  • WCF maxBytesPerRead 限制为 4096

    我在流模式下使用基本的 WCF Web 服务从服务器下载文件 我已将服务器端的绑定指定为
  • WCF 服务限制

    我在控制台应用程序中部署了一个 WCF 服务 并启用了 BasicHTTPBinding 和 SSL 还设置了以下属性 AspNetCompatibilityRequirements RequirementsMode AspNetCompa
  • 为什么我使用的 KnownType 属性是错误的?

    我正在尝试反序列化来自 google api 的 json 响应 所以我想我应该定义几个类来帮助它 DataContract public class DetectionResult ResponseData DataMember Name
  • 无法引用 AppFabric 上托管的 WCF Web 服务的 WSDL

    我开发了一个 WCF 服务 并且在 Visual Studio 2010 中 我可以毫无问题地导入 WSDL 将其部署到 AppFabric 后 我获得了 WSDL 但由于某种原因无法找到 WSDL 内部引用的几个架构文件 不知道是配置问题
  • SQL CLR 内的 WCF 客户端

    我知道它不受支持 而且我知道这甚至不是一个好主意 但是 我希望在 SQL 表值函数中拥有一个 WCF 客户端 我 看似 注册了正确的程序集 但在运行我的客户端时 我收到 WCF 错误 Msg 6522 Level 16 State 1 Li
  • WCF 中枚举的 DataContract

    我有一个通过 Net 项目中的 WCF 服务使用的枚举 现在我想添加另一个枚举 其指定方式与第一个枚举相同 但第二个没有在 Reference cs 中注册 因此无法被使用 WCF 服务的项目识别 当我读到如果复制粘贴枚举成员时 会有一个自
  • 当 URL 可在浏览器中访问时,SSH Curl 不起作用

    This post is linked with another post of mine still unsolved Laravel 作曲家更新 连接被拒绝 https stackoverflow com questions 52404
  • 具有服务器端挂钩的托管 Git 解决方案?

    已经有一个类似的 版本控制托管解决方案 带有预提交挂钩 关于SO的问题 然而 提出这个问题的用户只需要客户端钩子 我正在寻找一个允许您配置的 Git 主机服务器端 hooks 我寻找这个的原因是为了防止开发人员能够在特定分支上 push f
  • 在 RESTful WCF 中混合 XML 和 JSON,无需单独的方法

    我有一个 RESTful WCF 服务 可以返回 XML JSON 或 JSONP 具体取决于参数 例如 service svc stuff format xml or service svc stuff format json callb
  • WCF 数据契约/序列化

    我创建了一个简单的 WCF 应用程序 它公开一个操作 此操作采用复合数据类型作为参数 我没有用 DataContract 属性修饰这个复合数据类型 但这是有效的 我可以在 WSDL 中看到它的架构 现在我的理解是 这个新的自定义类型应该用
  • P2P网络游戏/应用程序:类似“战网”匹配服务器的不错选择

    我正在制作一个网络游戏 1v1 游戏中是 p2p 不需要游戏服务器 然而 为了让玩家能够 找到彼此 而不需要在另一种媒介中协调并输入IP地址 类似于网络游戏的现代时代 我需要有一个协调 匹配服务器 我无法使用常规网络托管 因为 客户端将使用
  • 带有 WCF BadContextToken 的 PHP Soap 客户端

    经过几天的谷歌 in 尝试 脱发 我仍然找不到解决方案 所以请帮助 简短信息 我需要使用 PHP SOAP 客户端 的 WCF 服务 它使用 wsHttpBinding ws security 并且无法设置 basicHttpBinding
  • WCF - IsOneway 的行为不像 Oneway 操作

    我已在服务的某些方法上定义了 OneWay 属性 但它们的行为并不像 Oneway 调用 我的客户等待呼叫完成并从服务返回 我假设单向操作是非阻塞操作 并且客户端不关心被调用函数会发生什么 它只是调用并忘记它 这是对的吗 问题 调用 Ope
  • 用于开发 iPhone 推送通知服务的 Google App Engine 的 Java 替代方案是什么?

    我是一名 Java 程序员 正在开发 iPhone 应用程序 我希望它使用推送通知服务 我原本以为我可以使用 Google App Engine 向 Apple 提供有效负载 但现在我发现这是不可能的 因为 App Engine 不支持与
  • 如何使用 MVVM-Light 和 WCF RIA 服务创建可混合项目

    我想使用 MVVM 模式构建我的业务应用程序 我选择 MVVM Light 因为它符合我的需求 在我见过的有关 MVVM Light 的每个示例中 没有人使用 WCF RIA 经典的 MIX10 示例在同一项目中使用服务 而 WCF RIA
  • 手动将 ClientBase 集合类型从 Array[] 更改为 List<>

    我将自己的 WCF 代理与 Client Base 一起使用 我想做一些类似于 svc util 中的 ct 属性的操作 并告诉代理返回 List 集合类型 我不能使用 List 因为实体由 nhibernate 管理 所以我必须使用 IL
  • 如何添加重试以调用 Web 服务?

    我有一个应用程序调用使用 wsHttpBinding 的 Web 服务 我需要在连接超时等情况下对 Web 服务调用实现某种重试功能 执行此操作的最佳方法是什么 我已经阅读过有关 WS ReliableMessaging 的内容 但这不是
  • 如何从 Azure webjob 到 Azure webapp 进行通信?

    我正在运行 Azure Web 作业和 Azure Web 应用程序 该作业定期运行 并且 Web 应用程序需要作业的结果 我如何在那里得到结果 我尝试过使用 WCFnetNamedPipeBinding但由于 Azure webapps
  • 我希望能够使用 lambda 表达式来指定要通过 wcf 服务返回的值范围

    我不知道这是否可能 但这会很酷 问题是这是否可能 但如果可能的话 举一个例子 我不确定您将使用什么方法签名来将 lambda 表达式传递到其中 例如方法IList
  • 测试项目和配置文件

    我的 Visual Studio 2008 解决方案中有这种设置 一个使用库 Lib1 需要 app config 文件中的一些配置条目 的 WCF 服务项目 WCFService 我有一个单元测试项目 MSTest 其中包含与 Lib1

随机推荐

  • 如何在 Remix.run 开发模式下使用内存缓存?

    我需要从一个非常慢且很少变化的 API 获取数据 所以我想我应该使用内存缓存 我首先尝试了一种非常简单的方法 只需将其保存到路径中加载器函数范围之外的变量中 let cache export const loader async gt if
  • 将两个集合与范围条件组合起来

    我有一个集合 产品 其中包含如下文档 id 142347106 name product 1 id 135377126 name product 2 我还有另一个系列 价格 id ObjectId 59310a6bad6e99863c2a6
  • MySQL 与实体框架 6

    我一直在尝试为我的 MySQL 服务器添加 EF 模型 但没有机会 因为它要么在为我的项目选择实体框架版本之前关闭 要么给出 您的项目引用了最新版本的实体框架 但是 无法为您的数据连接找到与此版本兼容的实体数据库提供程序 错误 并且我无法为
  • 针对 Python Web 开发的 TDD 资源 [关闭]

    Closed 此问题正在寻求书籍 工具 软件库等的推荐 不满足堆栈溢出指南 help closed questions 目前不接受答案 我不是一名黑客 也不是一名全职程序员 但我希望开始我自己的完整应用程序开发实验 如果我在这里错过了一些简
  • 从 io.Reader 到 Go 中的字符串

    我有一个io ReadCloser对象 来自http Response目的 将整个流转换为最有效的方法是什么string object EDIT 从 1 10 开始 strings Builder 就存在了 例子 buf new strin
  • 如何在测试 FastAPI 应用程序时触发生命周期启动和关闭?

    作为 FastAPI 的新手 我正在努力测试比我在教程中看到的稍微困难的代码 我用fastapi cache模块和Redis是这样的 from fastapi import Depends FastAPI Query Request fro
  • 如何仅在Android移动设备中而不是在数据库中获取macid和手机号码

    如何仅在Android移动设备中而不是在数据库中获取macid和手机号码 try this WifiManager manager WifiManager getSystemService Context WIFI SERVICE Wifi
  • queryselectorAll - 查找具有多个匹配类的元素

    使用 JS queryselectorall 方法可以选择具有 2 个匹配类的特定标记名称的元素 例如 我有一个元素 a class classOne classTwo a 使用 queryselectorall 我可以选择一个类名 doc
  • Java 9 中的 require 和 require 传递语句有什么区别?

    有什么区别requires and 需要传递性模块声明中的模块语句 例如 module foo requires java base requires transitive java compiler 可读性回顾 如果模块bar requi
  • GitHub 页面未更新

    我在 GitHub 页面上遇到了一个奇怪的问题 我将新提交推送到我的个人页面maltzj github io http maltzj github io 但新文章没有出现在那里 当我在本地执行服务器时 帖子位于localhost 4000
  • 用于查找字符串中 URL 的正则表达式

    有谁知道我可以使用正则表达式来查找字符串中的 URL 我在 Google 上找到了很多用于确定整个字符串是否是 URL 的正则表达式 但我需要能够在整个字符串中搜索 URL 例如 我希望能够找到www google com and http
  • 想要将唯一值转换为第一/第二/第三变量

    我有一个数据集样本 需要转换为宽格式 但我有一个特定问题 尚未在 StackOveflow 上看到解决 我想用来制作长数据集的列对于每一行都有唯一的值 但我想创建一个新的数据集 以便每个 idvar 的 n 个属性有 n 个变量 我需要转换
  • 为什么删除( DictionaryInstance[ key ] );失败?

    我的应用程序使用字典 protected categoryToValueDict Dictionary new Dictionary 将某物映射到另一物 现在 在应用程序的某个时刻 我需要从Dictionary 我实现了这个简单的方法 pu
  • 从 id 列表中删除单引号

    我需要使用 API 调用的 id 列表附加 格式化 URL 但是 当我将列表放在 API 末尾时 https api twitter com 1 1 users lookup json user id s a 我只是得到一个空字符串作为响应
  • 具有身份 monad 的 Monad 转换器

    将 Monad 变压器与 Identity monad 一起使用而不是仅仅使用 标准 版本的变压器有什么意义 是不是更灵活 Back in mtl1 0 我们两者都有 newtype State s a State runState s g
  • 如何从 Windows Azure Active Directory 身份验证的 oauth2.0 身份验证中注销

    我们使用 oauth 2 0 进行 Windows Azure Active Directory 身份验证 其中执行身份验证 身份验证成功后 我们将重定向到我们的网站 为了注销网站 我们删除了网站上生成的所有 cookie 并再次重定向到
  • 如何让您拥有的现有域指向 Azure 的服务器?

    默认情况下 Azure 网站 Web 应用程序的命名约定是somesubdomain cloudapp net and somesubdomain azurewebsites net 如果我有一个目前通过 GoDaddy 托管的现有网站 并
  • 计算长数中设置的位数

    这个问题已得到解答here https stackoverflow com questions 34116205 count number of set bits in a long number 我的疑问是 以下方法 1 有效 但它的变体
  • 在 azure devops 中创建模板 git-repo

    我在 Azure DevOps 中有一个 git repo 我想将其用作启动新存储库的模板 但没有原始存储库的提交历史记录 GitHub 有这个不错的功能 https help github com en github creating c
  • WCF 服务在一段时间后自行终止

    我面临一个与托管 WCF 服务 NET Framework 4 IIS 7 Windows 2008 Standard SP2 相关的特殊问题 在我部署该服务后 它可以正常工作一段时间 然后通过抛出文件未找到异常而自行终止 下面给出了例外的