[英]Visual studio prompts 'Save as…' dialog on an already saved file.
I have recently installed Visual Studio 2017 Community Edition. 我最近安装了Visual Studio 2017 Community Edition。 I've created a new ASP.NET Web application project and added a new web page to it using the 'Web Form with Master Page' template.
我创建了一个新的ASP.NET Web应用程序项目,并使用“带有母版页的Web表单”模板向其添加了新的网页。
This is how the folder structure of my project looks like: 我的项目的文件夹结构如下所示:
The web page I mentioned above is 'DempoReport.aspx'. 我上面提到的网页是“ DempoReport.aspx”。 I now open the page make a few modifications to it and click on the 'Save' button.
现在,我打开页面进行一些修改,然后单击“保存”按钮。
Quite unexpectedly the 'Save As..' dialog open up: 出乎意料的是,“另存为..”对话框打开了:
This shouldn't happen as the file has already been saved many times before. 这不会发生,因为文件已经被保存了很多次。 If I click on 'Save', then, of course, I get the message:
如果单击“保存”,那么我当然会收到以下消息:
The process cannot access the file 'c:\\Users\\Giorgos\\Web Reports\\WebForms\\DemoReport.aspx' because it is being used by another process.
该进程无法访问文件'c:\\ Users \\ Giorgos \\ Web Reports \\ WebForms \\ DemoReport.aspx',因为该文件正在被另一个进程使用。
Does anyone have any idea about what could be the cause of this issue? 是否有人对导致此问题的原因有任何想法?
Check whats opening the files using the processexplorer from Microsoft, that way you can track down whats causing it. 使用Microsoft的processexplorer检查打开文件的方式,这样您就可以找出造成该问题的原因。 What to do post that is dependent of course on whats opening the file.
要发布的内容当然取决于打开文件的内容。
Had no success with processexplorer, I found the solution in Microsoft forums, 使用processexplorer失败,我在Microsoft论坛中找到了解决方案,
Google Backup and Sync was blocking the files, closing it resolved the issue immediately. Google备份和同步阻止了这些文件,将其关闭即可立即解决该问题。
So check if the file is Synced by Google Backup and Sync or similar programs 因此,请检查文件是否已通过Google备份和同步或类似程序进行了同步
I even can see the google drive folder in @Giorgos Betsos pictures :) 我什至可以在@Giorgos Betsos图片中看到Google驱动器文件夹:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.