小编bun*_*eeb的帖子

无法上传到azure Blob存储:远程服务器返回错误:(400)错误请求

我正在尝试创建一个实用程序来从Internet下载文件并将其再次上载到Azure blob存储.Blob容器已经很好了; 但由于某种原因,当我试图将文件上传到存储时,我收到"Bad Request 400"异常...容器名称已创建,小写字母,所以特殊字符.但我仍然不知道为什么我会得到例外!

请帮忙.

注意:

  • 我没有使用任何模拟器......直接在云上测试.
  • 我的所有容器都有"公共容器"访问选项.

这是一个例外:

An exception of type 'Microsoft.WindowsAzure.Storage.StorageException' 
occurred in Microsoft.WindowsAzure.Storage.dll but was not handled in user code
Additional information: The remote server returned an error: (400) Bad Request.
Run Code Online (Sandbox Code Playgroud)

以下是代码:

foreach (var obj in objectsList)
{
     var containerName = obj.id.Replace("\"", "").Replace("_", "").Trim();
     CloudBlobContainer blobContainer = blobClient.GetContainerReference(containerName);

     if (blobContainer.Exists())
     {
         var fileNamesArr = obj.fileNames.Split(new char[] { '#' }, StringSplitOptions.RemoveEmptyEntries);

         foreach (var sora in fileNamesArr)
         {
             int soraInt = int.Parse(sora.Replace("\"", ""));
             String fileName = …
Run Code Online (Sandbox Code Playgroud)

c# azure azure-storage azure-storage-blobs

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

Design View未在Blend 2013中打开

我看到一组人有同样的问题,我尝试了一些,但我不知道为什么我仍然看不到设计视图!

  1. 输出类型是Windows应用程序.
  2. 设计视图在VS 2013中正常运行.
  3. 我使用MVVM Light Templates创建了这个项目; 所以我不知道项目文件中是否有遗漏的东西.

在此输入图像描述

wpf blend mvvm mvvm-light

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

无法导入外部 proto 文件 - 在命令行中有效,但在 .net core 3 RC1 中无效

我正在将我的 gRPC 应用程序从 .net 框架转移到 .net 核心

我有两个主要proto文件如下

/Proto/common/common.proto
/Proto/my-service.proto
Run Code Online (Sandbox Code Playgroud)

my-service.proto导入common.proto就这么简单:

通用协议

syntax="proto3";
package common;
option csharp_namespace = "Koko.Wawa";

message ValidationFailure {
    string property_name = 1;
    string error_message = 2;
}
message ValidationResult {
    bool is_valid = 1;
    repeated ValidationFailure errors = 2;
}
Run Code Online (Sandbox Code Playgroud)

我的服务.proto

syntax="proto3";
package google.protobuf;
option csharp_namespace = "Koko.Wawa";

import "common/common.proto"; // << in gRPC .net Core Template it gives error 

message CreateDraftPackageRequest {
  string package_type = 1;
  repeated int32 client_ids = …
Run Code Online (Sandbox Code Playgroud)

c# proto .net-core grpc asp.net-core

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

如何通过保持'templateurl'原样来编译angular 2 webpack

Webpack通过在dist文件夹中生成'js'来编译'typescript'文件.我发现webpack正在将所有'templateurl'更改为'template',如下所示:

我的打字稿组件:

@Component({
selector: 'app',
encapsulation: ViewEncapsulation.None,
templateUrl: 'app.html', // <----------------------
directives: [HeaderComponent, SideBar],
})
Run Code Online (Sandbox Code Playgroud)

这里自动生成编译的JS Component

App = __decorate([
        core_1.Component({
            selector: 'app',
            encapsulation: core_1.ViewEncapsulation.None,
            template: __webpack_require__(718),// <----------
            directives: [header_component_1.HeaderComponent, sidebar_component_1.SideBar],
        }), 
        __metadata('design:paramtypes', [(typeof (_a = typeof app_service_1.AppState !== 'undefined' && app_service_1.AppState) === 'function' && _a) || Object])
    ], App);
Run Code Online (Sandbox Code Playgroud)

我想做的就是在生成的文件中继续使用'templateUrl'.

我正在使用asp.net mvc,我有很多CSHTML文件,我想继续使用它.我想改变webpack如何编译'ts'并忽略'获取该html内容'的想法.所以我期待:

App = __decorate([
        core_1.Component({
            selector: 'app',
            encapsulation: core_1.ViewEncapsulation.None,
            templateUrl: 'app.html', // <----------------------
            directives: [header_component_1.HeaderComponent, sidebar_component_1.SideBar],
        }), 
        __metadata('design:paramtypes', [(typeof (_a = typeof app_service_1.AppState !== 'undefined' && …
Run Code Online (Sandbox Code Playgroud)

asp.net-mvc webpack angular

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

Abp.io 异常:激活 Castle.Proxies.ProcessesServiceProxy 时抛出异常

我仍然是Abp.io 的新手,并且出现以下异常。我按照 Abp.io 文档中的说明进行操作。请你帮我知道我错过了什么。

2019-10-10 14:01:46.644 +03:00 [ERR] An exception was thrown while activating Castle.Proxies.ProcessesServiceProxy.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Castle.Proxies.ProcessesServiceProxy. ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Castle.Proxies.ProcessesServiceProxy' can be invoked with the available services and parameters:
Cannot resolve parameter 'Volo.Abp.Domain.Repositories.IRepository`2[AIL.WorkflowEngine.Processes.Process,System.Int32] repository' of constructor 'Void .ctor(Castle.DynamicProxy.IInterceptor[], Volo.Abp.Domain.Repositories.IRepository`2[AIL.WorkflowEngine.Processes.Process,System.Int32])'.
   at Autofac.Core.Activators.Reflection.ReflectionActivator.GetValidConstructorBindings(IComponentContext context, IEnumerable`1 parameters) in C:\projects\autofac\src\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:line 160
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) in C:\projects\autofac\src\Autofac\Core\Activators\Reflection\ReflectionActivator.cs:line 120
   at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters, Object& decoratorTarget) in C:\projects\autofac\src\Autofac\Core\Resolving\InstanceLookup.cs:line 117 …
Run Code Online (Sandbox Code Playgroud)

autofac asp.net-core abp

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