小编And*_*ing的帖子

Microsoft.Azure.StorageException: 指定的资源名称包含无效字符

我正在创建 blob 存储以将文件从本地路径加载到云。使用我在门户上创建的存储帐户,我收到一个错误:Microsoft.Azure.Storage.StorageException:The specified resource name contains invalid characters. 这是我想要实现的代码下面的代码。它缺少什么?请指教

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.Devices.Client;
using Microsoft.Azure.Storage.Blob;
using Microsoft.Azure.Storage;
using System.IO;

namespace BlobStorageApp
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Azure Blob Storage - Net");
            Console.WriteLine();

            ProcessAsync().GetAwaiter().GetResult();
        }

        private static async Task ProcessAsync()
        {
            CloudStorageAccount storageAccount = null;
            CloudBlobContainer cloudBlobContainer = null;
            string sourceFile = null;
            string destinationFile = null;

            string storageConnectionString = "DefaultEndpointsProtocol=https;" +
                "AccountName=gcobanistorage;" +
                "AccountKey=****;" + …
Run Code Online (Sandbox Code Playgroud)

c# azure azure-blob-storage

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

尝试在 AWS lambda 中运行 .Net 应用程序时协议不支持地址族

当我尝试获取时,我已按照以下链接https://aws.amazon.com/blogs/developer/net-core-3-0-on-lambda-with-aws-lambdas-custom-runtime/中的步骤操作通过从邮递员发送获取请求的信息它抛出错误为“协议不支持地址系列”问题是我不太确定我是否在代码中遗漏了某些内容还是在 AWS 端

{
    "resource": "/{proxy+}",
    "path": "/api/UmcCatalog",
    "httpMethod": "GET",
    "headers": {
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate",
        "Cache-Control": "no-cache",
        "CloudFront-Forwarded-Proto": "https",
        "CloudFront-Is-Desktop-Viewer": "true",
        "CloudFront-Is-Mobile-Viewer": "false",
        "CloudFront-Is-SmartTV-Viewer": "false",
        "CloudFront-Is-Tablet-Viewer": "false",
        "CloudFront-Viewer-Country": "IN",
        "Host": "81qy2.execute-api.us-west-1.amazonaws.com",
        "Postman-Token": "714505fe-df8a-4673-b0e1-10030c940a63",
        "User-Agent": "PostmanRuntime/7.21.0",
        "Via": "1.1 49a7052b1cf6cbcdc134f38b7efabee5.cloudfront.net (CloudFront)",
        "X-Amz-Cf-Id": "3FIUIXfLI7CVRXPZQixJJ-MMZz7UFQ-i3jZLaYYF5HOQNSw==",
        "X-Amzn-Trace-Id": "Root=1-5e147952-8d33a081f359a654180d56af",
        "X-Forwarded-For": "company IP",
        "X-Forwarded-Port": "443",
        "X-Forwarded-Proto": "https"
    },
    "multiValueHeaders": {
        "Accept": [
            "*/*"
        ],
        "Accept-Encoding": [
            "gzip, deflate"
        ],
        "Cache-Control": [
            "no-cache"
        ],
        "CloudFront-Forwarded-Proto": [
            "https"
        ],
        "CloudFront-Is-Desktop-Viewer": [
            "true"
        ],
        "CloudFront-Is-Mobile-Viewer": [ …
Run Code Online (Sandbox Code Playgroud)

.net c# api aws-lambda

5
推荐指数
0
解决办法
1488
查看次数

标签 统计

c# ×2

.net ×1

api ×1

aws-lambda ×1

azure ×1

azure-blob-storage ×1