简体   繁体   English

Visual Studio在已保存的文件上提示“另存为...”对话框。

[英]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.

相关问题 Visual Studio 2013-没有创建Excel文件的参考。 - Visual studio 2013 - not have reference for creating excel file. Visual Studio上的文件保存权限 - file save permissions on Visual Studio 在 Visual Studio 中保存 Excel 文件 - Save Excel file in Visual studio 自动保存已使用计时器保存的C#文件 - auto save file which is already saved C# using timer Visual Studio中的什么设置将我保存的文件标记为脏文件 - What setting in Visual Studio is marking my saved file as dirty Visual Studio的“测试资源管理器”输出位于何处?它是保存的文件吗? - Where is the Visual Studio 'Test Explorer' Output located? Is it a saved file? 如何将设置文件保存到Visual Studio中已发布的文件夹中? - How to get the settings file saved to released folder in Visual Studio? 我可以在 Visual Studio 2010 中查看以前保存的文件版本吗? - Can I view previously saved versions of a file in Visual Studio 2010? 可以设计XXX类,但它不是文件中的第一类。 Visual Studio要求设计人员使用文件中的第一类 - The class XXX can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file 如何永久保存Visual Studio设置文件 - how to save visual studio settings file permanently
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM