November 2, 2012

Visual Studio running slow? Check your Anti-virus

Filed under: Development — Tags: , , — Darrin Maidlow @ 8:00 am

TurtleFor several weeks now I’ve been suffering a slow painful agony at work,  has been unusably slow.  The editor takes forever to display WPF views and don’t even get me started on builds.  I’ve got what I would consider to be a pretty decent pooter – Alienware M17xR3 with an Intel i7-2720QM 2.2Ghz, 16GB ram with SSD drives.   The machine is still generally pretty quick.  It boots in a matter of seconds.  A quick test of the disks using shows that disks are running within the expected ranges.

Visual Studio seems to be the only thing really running slowly

I tried the usual suspects.  Disabling all plugins and addins.  is a very powerful tool – but it can also come with a cost creating all of its metadata.  It was conceivable that as our solution grew (it’s at 40+ projects) some bug may have been exposed in R#.  I  also and that were rumored to help deal with slowness.

There’s no bad ideas when you’re brainstorming

That header there was for those of you with toddlers and TV’s glued to the Disney channel.  Yes, its true… I have kids TV show songs like stuck in my head most o f the time now.  Oh the joys of being a parent =)  In all seriousness though after sitting back and thinking about the systems involved it dawned on me.  Real time anti-virus scanning.  Visual Studio is constantly writing temporary files during use.  Builds are especially disk intensive.  Builds are also usually building and copying around exes and dlls that real time anti-virus engines love to scan.  This may not be immediately apparent on smaller solutions which would explain why this seems to have been a progressing problem.  As more and more code and projects were added to the solution – Visual Studio got slower and slower.   To test this theory I just disabled and ran a build.  Hurray it was fast again!

Add some scanning exceptions

Thankfully due to our strict rules on source control all of our solutions exist within one of two folders – one for and one for .  This allowed me to create a handful of exceptions under the AVG real-time scanner settings that excluded my source control repositories.  Suddenly now my designers as well as my builds are quick once more!

Set it and forget it is great – except when you set something up years ago and forget about it when its causing you problems.  =)

November 6, 2010

ERROR: Unable to update the dependencies of the project

Filed under: Development — Tags: , , — Darrin Maidlow @ 11:22 pm

Working on the automated build process for FullCircle SmartForms tonight and I came across an irritating problem tonight:

"ERROR: Unable to update the dependencies of the project. The dependencies for the object ‘NHibernate.Validator.DLL’ cannot be determined."

One of my three Visual Studio 2010 installer projects started failing during the automated build process with this error on a dozen included assemblies.  When the project was built using the Visual Studio IDE the installer would build just fine.  With a little bit of digging and a great deal of screwing around, I found a and for this problem.

After installing the patch – my automated build system is happily compiling the installation project.

April 22, 2010

Visual Studio 2010 keyboard shortcut posters

Filed under: General — Tags: — Darrin Maidlow @ 10:53 am

Using keyboard shortcuts will speed up your development big time once you get used to them.  Microsoft released charts for VB, C#,  F# and C++ 2010.   They print OK on 8.5×11 (not great).  Sucks that Microsoft put scary stock imagery on the sheets though.  These shortcuts are only partially accurate if you’re using ReSharper, here is a – and look, no scary stock imagery in this one.

April 12, 2010

Visual Studio 2010 and .NET 4.0 Full available on MSDN!

Filed under: Development — Tags: , — Darrin Maidlow @ 10:06 am

MSDN has been updated with the full releases of VS 2010 and .NET 4.0.  Getting some decent download speeds too..

http://msdn.microsoft.com

wooo!

Visual Studio 2010, .NET 4.0, AND ReSharper 5.0 launch today!

Filed under: Development — Tags: , , — Darrin Maidlow @ 8:32 am

I may be weird, but I actually went to bed excited last night.  VS 2010, .NET 4.0, AND are supposed to be released today.   For the first time in probably months I got out of bed at 7am -  It’s now 7:30 Redmond time – but MSDN has not yet been updated!  Apparently we have to wait until 8:30 Redmond time.   Adobe is all over their release of CS5 today, and they didn’t make their users wait until 8:30 Redmond time! =)

In the meantime, The Register has a good write up on some of the coming in an hour or so.  That will learn me for getting up early.  Oh well, time for another !

September 3, 2008

System.Runtime.InteropServices.ComException Loading ASP.NET Web Application in Visual Studio 2008

Filed under: General — Tags: , — Darrin Maidlow @ 11:04 pm

Another day, another fun error message.  Thanks to all the fun I’ve been having with – I’ve given up and created a new virtual machine with XP Pro to run Visual Studio in.   So I grab the latest revision from source control and load the solution in Visual Studio.  Boom.  Sytem.Runtime.InteropServices.ComException.  That’s it. No more details.  This is one of those errors where it could be just about anything.  A gives way too many results.

So I’m going to add one more search result on this error message.  After much muckery – I’ve resolved my instance of the problem.  The background is simple.  I have an ASP.NET web application with a few DLL projects and a deployment project.  As stated, I’ve created a new install of Windows XP.  First ensure that you have the add-on installed.  That can also cause this error (in some cases).

The key thing in this case was the lack of IIS on the machine.  On my primary development machine (the one where Oracle is a massive pain) I do have IIS installed, and the last time I ran this project from that machine – Oracle was working OK with the data access hack.  But apparently something has changed on that box and now I’m getting the evil "Oracle client and networking components were not found." error.  So I gave up.

First obvious work around is to install IIS.  I’m sick of messing around today, and just want to work.  So the quicker solution is to enable the built in development web server.  This can be accomplished by right clicking the unloaded project in the Visual Studio solution explorer and choosing "Edit <projectname.whateverlanguateyouuseproj>".  This will bring up the XML view of the project.  Find the ProjectExtensions section of the config and change UseIIS to be False.  Setting this up could also prevent problems when you have a larger, or more dynamic team accessing the project.

   1: <ProjectExtensions>
   2:     <VisualStudio>
   3:       <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
   4:         <WebProjectProperties>
   5:           <UseIIS>False</UseIIS>
   6:           <AutoAssignPort>False</AutoAssignPort>
   7:           <DevelopmentServerPort>4088</DevelopmentServerPort>
   8:           <DevelopmentServerVPath>/webrade</DevelopmentServerVPath>
   9:           <IISUrl>http://localhost/WebRADE32</IISUrl>
  10:           <NTLMAuthentication>False</NTLMAuthentication>
  11:           <UseCustomServer>False</UseCustomServer>
  12:           <CustomServerUrl>
  13:           </CustomServerUrl>
  14:           <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
  15:         </WebProjectProperties>
  16:       </FlavorProperties>
  17:     </VisualStudio>
  18:   </ProjectExtensions>

 

Reload the project, and it should load now.

P.S. Oracle, please please please release something for Vista x64 and ODAC/ODP.  Even an alpha.  I promise I will test on an x86 machine before I release..

Technorati Tags: ,

May 24, 2008

Visual Studio 2008 Product Comparison

Filed under: General — Tags: — Darrin Maidlow @ 11:51 pm

Came across a really of the various Visual Studio 2008 releases today.  Now if only I could come up with the ten grand Microsoft wants for a Team Suite license =[

Technorati Tags:

Powered by WordPress

Switch to our mobile site