运行 MVC 应用程序时创建文件遇到操作系统错误 4350
Create File encountered operating system error 4350 when running MVC Application
我有一个普通的 MVC 5 应用程序。当 运行 并登录时,我得到以下信息:
CREATE FILE encountered operating system error 4350(This file is
currently not available for use on this computer.) while attempting to
open or create the physical file '\fsrsvr06pr\users\medmondson\Visual
Studio
2015\Projects\Portal\Portal\App_Data\aspnet-Portal-20160805104334.mdf'.
CREATE DATABASE failed. Some file names listed could not be created.
Check related errors.
文件是否存在:
虽然文件在文件共享上,但可能会产生影响。
所以:
- 文件共享有问题吗?
- 我该如何解决这个问题?
看来我的客户端缓存有问题,因此问题出在操作系统级别。
为了解决我用这个命令格式化了本地数据库:
REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f
然后重启我的机器。
我有一个普通的 MVC 5 应用程序。当 运行 并登录时,我得到以下信息:
CREATE FILE encountered operating system error 4350(This file is currently not available for use on this computer.) while attempting to open or create the physical file '\fsrsvr06pr\users\medmondson\Visual Studio 2015\Projects\Portal\Portal\App_Data\aspnet-Portal-20160805104334.mdf'. CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
文件是否存在:
虽然文件在文件共享上,但可能会产生影响。
所以:
- 文件共享有问题吗?
- 我该如何解决这个问题?
看来我的客户端缓存有问题,因此问题出在操作系统级别。
为了解决我用这个命令格式化了本地数据库:
REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v FormatDatabase /t REG_DWORD /d 1 /f
然后重启我的机器。