简体   繁体   中英

Prevent VS2017 from connecting to SQL database

I am working on a ASP.NET MVC project in Visual Studio.

Since today I see am seeing every now and then a dialog window "Connect to SQL Server" that uses {0} as user name:

在此处输入图片说明

I always click Cancel as the user name is just a place holder. It is read - as the rest of the database configuration - from Web.config .

The documentation just states:

This dialog box appears when specific access permission is required for the current database process.

I believe I do not need this access. How can I prevent Visual Studio from showing this dialog?

PS: I do not want to remove the configuration from Web.config as it is needed by my project.

After a little debugging, it turned out that it was the awesome Meene VS Tools 2017 extension which caused this problem. Specifically, the Enable tasks provider option. Just disabling it helped to get rid of the nasty dialog. Maybe one could also add the Web.config to the Excluded file name patterns to fix the problem. Since I do not use the tasks, I did not try though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM