这导致FileNotFoundException,FileName = null [英] That cause FileNotFoundException with FileName=null

查看:136
本文介绍了这导致FileNotFoundException,FileName = null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我有一个WPF程序将文件写入文件夹。

I have a WPF program writing file to a folder.

该文件夹是可移动USB磁盘的联结。

The folder is a junction to a removeable USB disk.

File.WriteAllBytes的参数是一个有效的文件路径。

The parameter to File.WriteAllBytes is a valid file path.

在将文件写入文件夹时,我看到了FileNotFoundException。

I have seen FileNotFoundException when writing a file to the folder.

问题是:

The question is:

为什么是例外。文件名为空。 

Why is the exception.FileName null. 




推荐答案

是什么? "为什么exception.FileName为null?"。你是什​​么意思?是exception.FileName null?或者你的意思是你得到一个FileName为null的异常?你是什​​么意思"是一条有效的道路"?究竟是什么?你能给我们更多的信息吗? ......和代码!我需要代码!总是编码!永远没有代码!

What? "Why is the exception.FileName null?". What do you mean by that? Is exception.FileName null? Or do you mean you are getting an exception that FileName is null? What do you mean by "is a valid path"? What is it exactly? Can you give us a bit more informations? ...and code! I need code! Always code! Never without code!

问候,克里斯


这篇关于这导致FileNotFoundException,FileName = null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆