小编Joe*_*ung的帖子

MSDeploy在MSDeployPublish上"挂起"

尝试使MSDeploy正常工作,并且它"挂起"在MSDeployPublish任务上.它说

"启动Web部署将应用程序/包发布到 https://myserver:8172/msdeloy.axd?site=mysite...从源:archiveDir(存档路径)到目标:auto()启动Web部署任务."

它就停止了.在我杀死这个过程之前,它会像这样坐30分钟,或者更多.

在它正在部署的服务器上,在这种情况下是myserver,MSDeploy的错误是:

ERROR_SERIALIZER_ALREADY_DISPOSED - 回调线程发生错误.这些错误通常是良性的并且是自动处理的.详细信息如下:System.Web.HttpException:远程主机关闭了连接.错误代码是0x800704CD.在System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result,Boolean throwOnDisconnect)中的System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()处于System.Web.HttpResponse.Flush(Boolean finalFlush),位于System.IO.BufferedStream.FlushWrite( )在System.IO.BufferedStream.Flush()at System.Xml.XmlTextWriter.Flush()at Microsoft.Web.Deployment.TraceEventStreamSerializer.WriteKeepAliveEvent()

没有其他错误日志或消息,我可以找到.我可以将网址命名为msdeploy,例如,如果我https://myserver:8172/msdeloy.axd在浏览器中访问,我会收到自签名证书警告,然后会收到提示输入凭据,因此服务器上的MSDeploy似乎已启动并正在运行.

服务器(myserver)是带有IIS7的Windows 2008R2.

真正糟糕的是,如果我重新启动我正在部署的服务器(myserver)IT WORKS!

关于这里发生了什么的任何想法?

iis-7 msdeploy

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

让TeamCity识别Powershell消息

如何让TeamCity使用Powershell在构建日志中输出消息?

我正在使用TeamCity 7.1.

这是我的Powershell构建步骤:在此输入图像描述

该脚本是:

write-host "##teamcity[message 'Getting production info']"

if ($LASTEXITCODE -ne 0) {
    write-host "##teamcity[message 'Production Remote Not Found: Creating Remote']"

    write-host "##teamcity[message 'Pushing to Remote']"
    #git push production

} else {
    write-host "##teamcity[message 'write-output: Production Remote Found: Pushing to Remote']"
    #git push production
}
Run Code Online (Sandbox Code Playgroud)

我在构建日志中唯一得到的是:

[17:02:58]Skip checking for changes - changes are already collected
[17:02:59]Publishing internal artifacts (1s)
[17:03:00][Publishing internal artifacts] Sending build.start.properties.gz file
[17:02:59]Clearing temporary directory: C:\BuildAgent2\temp\buildTmp
[17:02:59]Checkout directory: C:\BuildAgent2\work\7669b6a04f96908d
[17:02:59]Updating sources: agent side checkout
[17:02:59][Updating …
Run Code Online (Sandbox Code Playgroud)

powershell teamcity-7.0

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

使用AppHarbor和CloudAMQP在云端进行MT

有没有人成功让MassTransit与AppHarbor和CloudAMQP合作?

我正在忍受它的一段时间.

我让发布者(网站)发送消息,但服务器(后台工作者)似乎没有接收它们.

我担心的一件事是MT需要rabbitmq方案,而CloudAMQP将方案设置为amqp.

我在配置总线时交换了方案(从amqp到rabbitmq)并注意到消息地址中的方案是rabbitmq,这很有意义,因为我更换了它们.但我想知道他们是否必须是服务器的amqp来接他们?

这是一个简单的消息,我已发送,它到达RabbitMQ但服务器没有提取它.

message_id: 08cf2cbc-5b4f-14dd-1231-381f8b520000
delivery_mode:  2
headers:    
Content-Type:   application/vnd.masstransit+json
Payload
614 bytes
Encoding: string
{

  "destinationAddress": "rabbitmq://98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com:*********@lemur.cloudamqp.com/98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com/Messages.Product:ProductCreatedEvent",

  "headers": {},

  "message": {

    "id": "dd6ecfaa-60d2-4cd4-8cd6-a08a00e872fb"

  },

  "messageType": [

    "urn:message:Messages.Product:ProductCreatedEvent"

  ],

  "retryCount": 0,

  "sourceAddress": "rabbitmq://98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com:**********@lemur.cloudamqp.com/98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com/enterprise_web"

}
Run Code Online (Sandbox Code Playgroud)

谢谢,乔

编辑:感谢Carl指出网址中的密码

masstransit appharbor cloudamqp

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

将SQL转换为QueryOver以获取具有group bys的行计数

我有以下NHibernate QueryOver查询:

var query = session.QueryOver<IssuanceReportLogEntity>()
                        .Where(i => i.CustomerId == customer.Id && i.RollbackIssuanceId == null);

if (Parms.StartDate != null) query.Where(i => i.IssuanceDateCreated >= Parms.StartDate);
if (Parms.EndDate != null) query.Where(i => i.IssuanceDateCreated <= Parms.EndDate);
if (Parms.GroupId != null) query.Where(i => i.RecipientGroupId == Parms.GroupId);
if (Parms.ProgramId != null) query.Where(i => i.ProgramId == Parms.ProgramId);

query.Select(
    Projections.Group<IssuanceReportLogEntity>(x => x.RecipientGroupId).WithAlias(() => receiver.RecipientGroupId),
    Projections.Group<IssuanceReportLogEntity>(x => x.RecipientId).WithAlias(() => receiver.RecipientId),
    Projections.Group<IssuanceReportLogEntity>(x => x.RecipientFullName).WithAlias(() => receiver.RecipientFullName),
    Projections.Group<IssuanceReportLogEntity>(x => x.RecipientEmployeeNumber).WithAlias(() => receiver.RecipientEmployeeNumber),
    Projections.Group<IssuanceReportLogEntity>(x => x.RecipientTitle).WithAlias(() => receiver.RecipientTitle),
    Projections.Count<IssuanceReportLogEntity>(x=>x.RecipientGroupId).WithAlias(()=>receiver.RecognitionTotalReceived),
    Projections.Sum<IssuanceReportLogEntity>(x=>x.Points).WithAlias(()=>receiver.TotalPoints));

if …
Run Code Online (Sandbox Code Playgroud)

c# sql sql-server nhibernate

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

未找到或无法读取要导入的 Angular CLI SCSS 文件

尝试导入 variables.scss 文件并不断收到构建失败错误:

ERROR in ./src/styles.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js
!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/lib/loader.js??ref--14-3!./src/styles.scss)
Module build failed (from ./node_modules/sass-loader/lib/loader.js):

undefined
^
      File to import not found or unreadable: ~styles-variables.scss.
      in C:\Users\JRYoung\Projects\ods\webclient\src\styles.scss (line 3, column 1)
Run Code Online (Sandbox Code Playgroud)

在 src/styles 我有

/* You can add global styles to this file, and also import other style files */

@import 'styles-variables.scss';
@import '~bootstrap/scss/bootstrap.scss';

$fa-font-path: "~font-awesome/fonts";
@import '~font-awesome/scss/font-awesome.scss';
Run Code Online (Sandbox Code Playgroud)

在 src/styles-variables.scss 我有

$grid-breakpoints: (
  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1200px
);

$accent-color: #006a55;
Run Code Online (Sandbox Code Playgroud)

@import '~styles-variables.scss' 发出构建错误,而 @import 'styles-variables.scss'不会。 …

sass angular

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