我正在尝试创建一个实用程序来从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) 我看到一组人有同样的问题,我尝试了一些,但我不知道为什么我仍然看不到设计视图!

我正在将我的 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) 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) 我仍然是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) asp.net-core ×2
c# ×2
.net-core ×1
abp ×1
angular ×1
asp.net-mvc ×1
autofac ×1
azure ×1
blend ×1
grpc ×1
mvvm ×1
mvvm-light ×1
proto ×1
webpack ×1
wpf ×1