C# Azure网站正在将文件写入网络驱动器
我有一个当前在本地IIS计算机上运行的服务,该服务将使用以下代码将文件写入指定目录:C# Azure网站正在将文件写入网络驱动器,c#,.net,web-services,azure,.net-4.5,C#,.net,Web Services,Azure,.net 4.5,我有一个当前在本地IIS计算机上运行的服务,该服务将使用以下代码将文件写入指定目录: //Creating the filepath that is needed string FilePath = FolderPath.Replace("'", "") + FileName.Replace("'", "").Replace(" ", "") .ToString(); //Writing the file to the co
//Creating the filepath that is needed
string FilePath = FolderPath.Replace("'", "")
+ FileName.Replace("'", "").Replace(" ", "")
.ToString();
//Writing the file to the correct path
File.WriteAllBytes(FilePath, fileTransferDump.FileBinary);
当我切换到Azure网站时,我将如何使系统写入我要写入的文件路径
基本上,我如何使Azure网站写入网络共享。这只是一个普通的Azure网站。Azure网站无法使用传统的windows文件共享注销计算机资源。您最好将这些逻辑打包到自定义库中,将这些文件写入重定向到Azure Blob存储