小编hyp*_*epy的帖子

如何在Visual Studio 2010上为TFS 2008中的所有冲突"获取源分支版本"?

我看到的最接近我想要的是"AutoResolve All".我不想要AutoMerge.

在Visual Studio 2008中,我可以说我希望在所有或目标上覆盖源覆盖.

2010年这个选项在哪里?他们把它带走了吗?看起来我唯一的选择是逐个点击所有70个文件的"Take Source Branch Version".

tfs visual-studio-2010 visual-studio

13
推荐指数
2
解决办法
7717
查看次数

WCF Test Client无法添加服务,无法获取元数据

我可以告诉我为什么在尝试添加服务时出现此错误?

错误:无法从http:// myserver/myapp获取元数据.如果这是您有权访问的Windows(R)Communication Foundation服务,请检查您是否已在指定地址启用元数据发布.有关启用元数据发布的帮助,请参阅http://go.microsoft.com/fwlink/?LinkId=65455上的MSDN文档.WS-Metadata Exchange错误URI:http:// myserver/myapp元数据包含无法解析的引用:' http:// myserver/myapp '.远程服务器返回意外响应:(405)方法不允许.远程服务器返回错误:(405)方法不允许.HTTP GET错误URI:http:// myserver/myapp下载' http:// myserver/myapp '时出错.请求失败,HTTP状态为403:Forbidden.

更新:我已经有以下端点了,

<endpoint address="mex" 
          binding="mexHttpBinding"
          name="Metadata"
          contract="IMetadataExchange" />
Run Code Online (Sandbox Code Playgroud)

我也设置了服务行为:

  <serviceBehaviors>
    <behavior name="myBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>
Run Code Online (Sandbox Code Playgroud)

c# wcf metadata

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

如何让kendo datepicker对最短日期进行日期验证?

我有以下控件:

@(Html.Kendo().DatePickerFor(model => model.Attributes.DueDate)
    .HtmlAttributes(new { 
        ID = "idSurvey_DueDate", 
        @data_bind = "value: DueDate", 
        @Class = "report-label datepicker surveyAttributesData", 
        TabIndex = 3 })
    .Min(DateTime.Now)                                                            
)
Run Code Online (Sandbox Code Playgroud)

以下jquery:

$("#idSurvey_DueDate").kendoValidator({
    rules: {
        dateValidation: function (e) {
            var currentDate = kendo.parseDate($(e).val());
            // Check if date parse was successful
            if (!currentDate) {
                return false;
            }
            return true;
        }
    },
    messages: {
        dateValidation: "Invalid Date!",
        min: "Date must not be in the past!"
    }
});
Run Code Online (Sandbox Code Playgroud)

当我测试它并输入无效日期时,我得到的消息不是我所期望的.相反,它是"字段DueDate必须是日期".这个神秘信息来自哪里,为什么不使用我在验证器中放置的消息属性?我想要的是不允许无效的日期格式以及日期不是过去.因此必须执行最低要求.

validation kendo-ui kendo-asp.net-mvc kendo-datepicker

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

当ValidateRequest设置为true时,哪些字符或字符组合无效?

我已经尝试过查看微软网站和谷歌搜索这个,但似乎除了<和>之外没有人有答案.尽管如此,它还有更多.我注意到&#的HTML实体启动器无效.还有别的事吗?有没有人有完整的清单?

谢谢!

.net asp.net security xss sql-injection

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

在div中留下的浮点在IE7中不起作用,但在Firefox和IE8中起作用

当我有三个div都悬空时,我希望这些部分根据它们内部数据的长度来扩展或收缩.

例如,如果第一个地址很长,我希望第一个框展开并推动第二个框.在Firefox中它正在这样做,但在Internet Explorer中它需要一个宽度看起来正确.在IE7中,它根本不显示 - 每个div都有一个包含两列的表格,在IE7中,它显示第二列到达页面的远端而不是第一列,尽管设置了align = left第2列并在第1列设置小宽度.我有母版页中指定的文档类型,我尝试添加清除:两者都没有运气.

为什么宽度完全改变浮动部分在IE中的显示方式,我该如何解决这个问题呢?该页面必须在IE7中看起来不错.

.FloatingSection
{
    float:left;
    padding-bottom:10px;
    padding-right:10px;
}

<div id="FirstPerson" class="FloatingSection">
</div>
<div id="SecondPerson" class="FloatingSection">
</div>
<div id="ThirdPerson" class="FloatingSection">
</div>   
Run Code Online (Sandbox Code Playgroud)

我注意到在IE8中这看起来很好.

css firefox internet-explorer cross-browser css-float

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

WCF服务在使用WcfTestClient时抛出超时错误

如果我发送的参数会导致大量数据被拉出,我会收到以下错误:

在00:01:00之后等待回复时,请求通道超时.增加传递给Request的调用的超时值或增加Binding上的SendTimeout值.分配给此操作的时间可能是较长超时的一部分.

我增加了所有的超时时间.在客户端我有什么需要做的吗?我想知道这是因为我使用的是wcftestclient吗?我需要调整operationTimeout吗?

我的webconfig有以下内容:

  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="Basic" sendTimeout="12:00:00" receiveTimeout="12:00:00" openTimeout="00:10:00" closeTimeout="00:10:00"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647">
          <readerQuotas maxDepth="128" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="8192"/>          
        </binding>
      </basicHttpBinding>
    </bindings>
    <services>
      <service behaviorConfiguration="CaseStudyBehavior" name="EDTFS.ADMS.CaseStudyService">        
        <endpoint address="" 
                  binding="basicHttpBinding"
                  bindingConfiguration="Basic"                    
                  name="Basic"                    
                  contract="EDTFS.ADMS.ICaseStudyService" />
        <endpoint address="mex" 
                  binding="mexHttpBinding"
                  name="Metadata"
                  contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="CaseStudyBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceTimeouts transactionTimeout="24:00:00"/>
          <serviceThrottling maxConcurrentCalls="100" maxConcurrentInstances="100" maxConcurrentSessions="100"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
Run Code Online (Sandbox Code Playgroud)

wcf web-config wcftestclient

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