无法载入配置文件

问题描述

我正在尝试在Unity中实现OPC UA客户端。但是我在exists行中得到了from azure.storage.blob import BlobServiceClient blob_service_client = BlobServiceClient.from_connection_string("connection_string") blob_client = blob_service_client.get_blob_client(container="container_name",blob="my_blob") isExist = blob_client.exists() print(isExist) if isExist: # download blob file stream = blob_client.download_blob() print("File exists and is readable") else: print("Either the file is missing or not readable") 的期望 这意味着“ Config.xml”文件无法在Unity中加载。但是同一程序在控制台应用程序中可以完美运行。 如何统一加载配置文件?

ServiceResultException: Could not load configuration file.

例外

application.LoadApplicationConfiguration("ConsoleReferenceClient.Config.xml",false).Wait();

解决方法

检查Dim docNew As Document Set docNew = Documents.Add With ThisDocument ... docNew.Content.Text = docNew.Content.Text & vbCrLf & sSentence For Each iShape In .InlineShapes iShape.Select Selection.CopyAsPicture docNew.Content.Paste Next iShape End With 是否已复制到unity项目的输出文件夹中。然后检查可执行文件的位置,因为相对路径(ConsoleReferenceClient.Config.xml方法的第一个参数)需要从可执行文件指向配置文件。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...