so I'm working on an mvc2 project with visual studio. I have 5 or 6 data connections in my server explorer tab which is pinned. All of a sudden a strange error pops up that has nothing to do with what I'm currently doing in visual studio.
I then open the server explorer pane and all my data connections are now connected. One of the connections then has every table in the tree expanded. It's pretty annoying and I don't know what is causing it or how to make it stop.
I dont know about expanding and collapsing issue, but that error has to do with not having the Diagramming functionality set up on the Database being referenced
Related
I am running into a frustrating issue with Visual Studio in which every time I open or refresh a solution, Visual Studio locks up for about 30 seconds and then I am met with this error
This happens about 10 times, so it takes about five minutes to get a working instance of Visual Studio.
I eventually traced this to entries in Server Explorer to which I don't have access. These seem to be auto-populated from connection string entries in various Web.config files throughout the solution. If I comment out the connection strings, the solution loads fine. But this is not an ideal solution because I don't want to commit these changes to source control.
Is there a way to stop this auto-population of Server Explorer? I don't remember this ever happening in previous version of Visual Studio, so maybe it's new in 2015?
Using VS 2013 Community Edition (yay!), whenever I start it it opens the Performance Explorer window, which I do not require. I opened it once, and it seems to have saved this layout as default.
I have tried saving the setup without that window, locally overwriting the "CurrentSettings.vssettings", and if I expicitly reload the settings from there it is correct; however, if I close VS and open it again with a solution - Performance Explorer is back again.
Any ideas how/where to save my default settings?? Thanks!
This bug appears to have existed for sometime, across many different versions (read comments)
https://connect.microsoft.com/VisualStudio/feedback/details/749636/performance-explorer-window-is-always-opened-when-vs-is-started-and-mr-soln-opens
Phill's link shows the Microsoft Bug, but you can get around this issue.
Go to the Visual Studio Project's folder
Close Visual Studio!!!
Remove the following file types: Performance Reports *.vsp and Performance Sessions *.psess
Re-open the Solution, you'll get an error saying Visual Studio could not find the Performance Reports for the Project. Do not worry; the Solution will still load.
Close the solution.
Re-open the solution - the Performance Explorer tab will be finally gone!
Is there a way to automatically close the open server connections in the Server Explorer panel in Visual Studio 2010?
I'm using EF and a contextInitializer which always drops the database when building (testing stuff).
70% of the time I forget to manually close the connection which gives me a "cant delete the DB because its being used" error.
Its a small thing, i know, but its making me mad!
Thanx in advance!
Alex!
I deal with multiple Team Foundation Servers and collections. Is there a command line I can send to VS so I don't have to manually switch between the TFS servers every time I launch VS?
The way I do it is use the start page from Visual Studio. It lists my recent projects and you can even pin them so they do not scroll out of view when you do not use them for a while.
Activating a project from the start page will automatically connect your Visual Studio environment to the correct TFS collection, because the solution you open is bound to one of them.
Works like a charm!
I have a weird situation: Visual Studio 2010 will hang up indefinitely on me when opening certain websites. It prompts me for my credentials and loads up much of the project tree, and then just hangs at the "Preparing Solution..." dialog, which just then never goes away. In every case, the status bar of VS says that it is currently loading web.config.
It only happens on some websites, not all, but the websites that do fail, they all open without any problem in Visual Studio 2008. So it almost seems like 2010 is having some sort of problem parsing web.config files under certain circumstances (unless of course that web.config message was just the last file to load and it's actually crashing on the next step).
I've tried disabling all my add-ins and extensions, which did not help.
This turned out to be an extension which needed to be updated. In short, if VS says your extensions need updating, then update them. BEFORE trying to open a project, otherwise you may have problems.