Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure网站正在将文件写入网络驱动器_C#_.net_Web Services_Azure_.net 4.5 - Fatal编程技术网

C# Azure网站正在将文件写入网络驱动器

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

我有一个当前在本地IIS计算机上运行的服务,该服务将使用以下代码将文件写入指定目录:

//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存储