小编Rob*_*man的帖子

SSIS SQL任务 - "参数名称无法识别"

我有一个SQL任务需要运行一个简单的更新来更新单行.

我已将SQLStatement设置为:

update agency set AgencyLastBatchSeqNo = ? where agencyID = ?
Run Code Online (Sandbox Code Playgroud)

在参数映射页面上,我将参数0和参数1设置为我知道包含正确值的变量.我还正确设置了参数名称值.

在数据库中,AgencyLastBatchSeqNo列是一个int,AgencyID是一个大int.有没有人参考找到SSIS中数据类型映射到的内容?我已经猜到了SHORT的int和LONG for big int.

当我运行任务时,我收到以下错误:

[执行SQL任务]错误:执行查询"更新代理商设置AgencyLastBatchSeqNo =?其中AgencyID =?" 失败并出现以下错误:"参数名称无法识别.".可能的故障原因:查询问题,"ResultSet"属性设置不正确,参数设置不正确或连接未正确建立.

任何人都可以建议可能出错的地方?

谢谢

抢.

ssis

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

WCF应该是endpointConfigurationName?

我有我的WCF服务的以下配置:

<system.serviceModel>
<services>
  <service behaviorConfiguration="After.BehaviourConfig" name="ServiceInstancingDemo.Service1">
    <endpoint address="" binding="wsHttpBinding" bindingConfiguration="After.BindingConfig"
      name="After.ConfigName" contract="ServiceInstancingDemo.IService1">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    <host>
      <baseAddresses>
        <add baseAddress="http://rb-t510/NGCInstancing/Service1.svc" />
      </baseAddresses>
    </host>
  </service>
</services>
<bindings>
  <wsHttpBinding>
    <binding name="After.BindingConfig" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" maxBufferPoolSize="524288111" maxReceivedMessageSize="524288111" allowCookies="false">
      <security mode="None" />
    </binding>
  </wsHttpBinding>
</bindings>
<behaviors>
  <serviceBehaviors>
    <behavior name="After.BehaviourConfig">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
      <serviceThrottling maxConcurrentCalls="30" maxConcurrentInstances="2147483647" maxConcurrentSessions="30" />
    </behavior>
  </serviceBehaviors>
</behaviors>
Run Code Online (Sandbox Code Playgroud)

我可以使用以下客户端代码调用该服务:

NGC.Service1Client ngc = new NGC.Service1Client();

        var taskA = Task<string>.Factory.StartNew(() => ngc.WaitThenReturnString(5));

        this.listBox1.Items.Add(taskA.Result); …
Run Code Online (Sandbox Code Playgroud)

wcf

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

HTTP错误404.15 - 未找到...因为查询字符串太长

我查了很多关于这个错误的帖子,但还没能解决问题.

我有一个在Windows 8 pro上运行的VS2013内置的简单MVC5网站.创建站点后,将选择单个帐户的选项.我现在需要启用Windows身份验证,以便只有AD帐户用户可以使用网站和授权,以便我可以限制对特定AD组的某些视图/控制器的访问.

在VS中选择了Web项目后,我更新了属性窗口(F4),以便将匿名身份验证设置为禁用,并将Windows身份验证设置为已启用.

该项目的web.config现在包含以下部分:

<system.web>
    <authentication mode="Windows" />
    <compilation debug="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5" />
    <authorization>
      <deny users="?" />
    </authorization>
  </system.web>
  <system.webServer>
    <modules>
      <remove name="FormsAuthenticationModule" />
    </modules>
  </system.webServer>
Run Code Online (Sandbox Code Playgroud)

我从IIS或F5访问该站点我收到错误:HTTP错误404.15 - 未找到请求筛选模块配置为拒绝查询字符串太长的请求.我注意到有些东西已经循环以提供一个ReturnUrl,它是查询字符串中的重复长连接.

在IIS\Authentication部分中,我已设置为禁用"匿名身份验证,ASP.Net模拟和表单身份验证".在IIS.Net授权规则部分中,我设置为拒绝"匿名用户"并允许"所有用户"

我哪里错了?

iis asp.net-mvc windows-authentication

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

上传MVC模型中包含的图像

我有以下型号:

public class Photo
{
    public int PhotoId { get; set; }
    public byte[] ImageData { get; set; }
    public DateTime DateUploaded { get; set; }
    public string Description { get; set; }
    public bool IsActive { get; set; }

}
Run Code Online (Sandbox Code Playgroud)

我希望用户能够输入照片的详细信息,然后将模型发布到控制器.我的控制器动作如下:

[HttpPost]
    public ActionResult Create(WilhanWebsite.DomainClasses.Photo photo)
    {
        if (ModelState.IsValid)
        {
            photo.DateUploaded = DateTime.Now;
            _context.Photos.Add(photo);
            _context.SaveChanges();

            return RedirectToAction("Index");
        }
        //we only get here if there was a problem
        return View(photo);
    }
Run Code Online (Sandbox Code Playgroud)

我的观点如下:

@using (Html.BeginForm()) 
{
@Html.AntiForgeryToken()

<div class="form-horizontal">
    <h4>Photo</h4>
    <hr …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc post image bytearray

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

WCF Max Instances似乎限制为10

我有一个在IIS7.5中托管的简单WCF服务,使用消息安全性和InstanceContextMode.PerCall通过wsHttp绑定公开

我有一个简单的UI,可以旋转可配置数量的线程,每个线程都调用该服务.

我添加了perfmon计数器ServiceModel4.Instances.无论创建的线程数和调用服务的数量如何,perfmon都会显示该服务最多可创建10个实例.

我的客户端配置如下:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>

  <bindings>
    <wsHttpBinding>

      <binding name="WSHttpBinding_IService3">
        <security mode="Message">
          <transport clientCredentialType="Windows" proxyCredentialType="None"
            realm="" />
          <message clientCredentialType="Windows" negotiateServiceCredential="true"
            algorithmSuite="Default" establishSecurityContext="false" />
        </security>
      </binding>

    </wsHttpBinding>
  </bindings>
  <client>

    <endpoint address="http://localhost/NGCInstancing/Service3.svc/~/Service3.svc"
      binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IService3"
      contract="NGCSecPerCall.IService3" name="WSHttpBinding_IService3">
      <identity>
        <servicePrincipalName value="host/RB-T510" />
      </identity>
    </endpoint>

  </client>
</system.serviceModel>
</configuration>
Run Code Online (Sandbox Code Playgroud)

我的服务配置如下:

<?xml version="1.0"?>
<system.serviceModel>
    <configuration>
        <behaviors>
            <serviceBehaviors>
                <behavior name="SecPerCallBehaviour">
                    <serviceThrottling maxConcurrentCalls="30" maxConcurrentSessions="1000"
                    maxConcurrentInstances="30" />
                    <serviceMetadata httpGetEnabled="true" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
                </behavior>
                <behavior name="">
                    <serviceMetadata httpGetEnabled="true" />
                    <serviceDebug includeExceptionDetailInFaults="false" />
                </behavior>
            </serviceBehaviors>
        </behaviors>
    <bindings>
        <wsHttpBinding> …
Run Code Online (Sandbox Code Playgroud)

wcf iis-7.5

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

Azure通知中心与Amazon SNS的成本

我一直在评估发送移动推送通知的选项,并研究了微软与亚马逊中心产品的定价.我认为我必须错过计算,因为微软的报价是成本的20倍!有人可以指出我哪里出错了吗?

微软定价基于12个月的计划,每天的单位成本为3.29英镑.每个单元可以发送166,667条消息,我需要每天发送1.8米(每月大约54米).

在此输入图像描述

azure amazon-web-services amazon-sns azure-notificationhub

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

WCF呼叫未在Fiddler2中显示

我有一个简单的WCF服务与basicHttp绑定.该服务在IIS7中本地托管(Win7笔记本电脑).我可以在以下位置浏览该服务:http://localhost/musicstore/musicstore.svc (端口80)

我开发了一个简单的Windows窗体客户端应用程序来调用该服务.它工作正常,但我真的希望通过Fiddler2看到消息调用/响应.当我浏览网页时,Fiddler2会愉快地报告流量,所以我无法理解为什么它没有接收这个WCF呼叫?

是否有另一种方法来查看WCF调用的数据.也许有微软工具?

客户端配置是:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>

    <client>
      <endpoint address="http://localhost/musicstore/musicstore.svc"
        binding="basicHttpBinding" bindingConfiguration="" contract="MusicStore.IMusicStore"
        name="BasicHttp" />
    </client>
  </system.serviceModel>
</configuration>
Run Code Online (Sandbox Code Playgroud)

服务配置是:

<services>
   <service behaviorConfiguration="MusicStoreBehavior" name="MusicStore">
    <endpoint address="" binding="basicHttpBinding" contract="IMusicStore">
     <identity>
      <dns value="localhost" />
     </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
   </service>
  </services>
Run Code Online (Sandbox Code Playgroud)

wcf fiddler

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

在Azure虚拟机上托管网站

昨天我使用简单的Win2008r2 + SQL2008r2映像创建了一个Azure虚拟机.

我已经通过RDP会话将网站部署到VM.

我可以使用本地(通过RDP)浏览网站

"http://localhost"
Run Code Online (Sandbox Code Playgroud)

我知道我需要为端口80添加Azure端点,以便我可以从外部计算机浏览到该站点.

在此输入图像描述

我已在Azure VM上配置了Windows防火墙,以允许端口80入站和出站的流量.

谁能告诉我我错过了什么或者我可以做些什么来排除故障?

---更新-----

今天早上我学到了更多.我尝试在VM上托管的网站是Interwoven Teamsite v7.3.x的安装.当我查看IIS时,我可以看到"默认网站"已停止.另一个名为"TeamSiteSitePubPreview"的网站已经创建,但仅限于81端口.

那么,当我浏览时,我能看到的网站是什么

http://localhost locally?
Run Code Online (Sandbox Code Playgroud)

我运行了netstat -ano,这向我展示了PID 1604在端口80上侦听的内容.然后我运行了Process Explorer,它告诉我PID 1604被分配给"Appache HTTP Server".

我对关于Appache一无所知,有人能告诉我是否有一些Apache配置阻止来自本地服务器之外的连接?

apache azure azure-virtual-machine

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

未捕获的TypeError:grid.sortedData.peek(...).filter不是函数

我正在尝试使用KnockoutJs KOGrid进行分页工作.我一直在关注这个:http://knockout-contrib.github.io/KoGrid/#paging

我传入我的视图模型(vm param)的数据包含以下内容:

在此输入图像描述

我的淘汰视图模型如下:

function ViewModel(vm) {
    var self = this;
    this.myData = ko.observableArray([]);

    this.rows = ko.observableArray(vm.Rows);

    this.deleteInvisibleColumns = function () {
        for (var i = 0; i < vm.Rows.length; i++) {
            var row = vm.Rows[i];

            var keys = Object.keys(row);
            for (var k = 0; k < keys.length; k++) {
                if (vm.VisibleColumns.indexOf(keys[k]) === (-1)) {
                    delete row[keys[k]];
                };
            };
        };
    };  

    self.deleteInvisibleColumns();

    this.filterOptions = {
        filterText: ko.observable(""),
        useExternalFilter: true
    };

    this.pagingOptions = {
        pageSizes: ko.observableArray([2, 500, …
Run Code Online (Sandbox Code Playgroud)

javascript knockout.js kogrid

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

无法加载文件或程序集 Microsoft.Extensions.Logging.Abstractions

我使用的是 VS2019 Pro v16.3.5

我有一个包含 Azure 函数项目的解决方案,该项目引用了多个类库项目。

顶级项目编译失败,错误如下:

System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.Extensions.Logging.Abstractions,版本=2.2.0.0,Culture=neutral,PublicKeyToken=adb9793829ddae60”。该系统找不到指定的文件。

该项目确实有一个包引用:PackageReference Include="Microsoft.AspNetCore.App"并且这个框架包含缺少的dll,所以我不知道为什么会遇到问题。

我的想法可能是引用的项目之一取决于不同的版本,但我没有看到。

我确实尝试在顶级项目中明确引用包,但这没有区别:

<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0.0" />
Run Code Online (Sandbox Code Playgroud)

这是顶级 csproj 文件的当前副本:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp2.2</TargetFramework>
    <AzureFunctionsVersion>v2</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.App" />
    <PackageReference Include="Base.Core.SharedKernel" Version="1.0.0.23885" />
    <PackageReference Include="FluentValidation" Version="8.4.0" />
    <PackageReference Include="FluentValidation.AspNetCore" Version="8.4.0" />
    <PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="3.0.2" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="1.8.2" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="3.0.5" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="1.0.27" />
    <PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\Interfaces.Avaloq.Application\Interfaces.Avaloq.Application.csproj" />
    <ProjectReference Include="..\Interfaces.Avaloq.Common\Interfaces.Avaloq.Common.csproj" />
    <ProjectReference Include="..\Interfaces.Avaloq.Infrastructure\Interfaces.Avaloq.Infrastructure.csproj" />
    <ProjectReference …
Run Code Online (Sandbox Code Playgroud)

msbuild nuget .net-core azure-functions visual-studio-2019

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