473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual Studio compiles slowly

Last september, I posted a message about abnormal compilation times in
Visual Studio .NET.

I got some help from a nice guy from Sweden, who had the same problem and
saw my post on the newsgroup. With his help, I ended up opening a support
incident to MS and we got our issue resolved.

So, I'm posting the workaround that MS gave us because it might interest
people who have a setup like ours and who may be experiencing the same kind
of problem.

The problem occurs if:

* You run Visual Studio (2002 or 2003) on a PC running Windows XP Pro
* Your solution contains "signed" assemblies (using the AssemblyKeyFile
attribute in your AssembyInfo file)
* Your PC is connected to a domain controller running NT 4 (you won't get
the problem if you are connected to a Win2K or Server 2003 domain
controller).

If you have this setup, you are likely to get abnormal compilation times,
but, if you disconnect your PC from the network (or disable the network card
through the control panel), the problem will go away and you will get much
faster compiles. The effect is sometimes dramatic, for example, we had a
simple WinForms solution with 5 signed assemblies that took 50 seconds to
compile with the network cable on, and only 3 seconds without it (if you
feel that VS is slow and you suspect that you are being hit by this problem,
you should try this simple test).

Of course, disabling the network card before every compile can really get
painful, which is how we worked for about 2 months, but we finally got the
issue resolved today. The solution consists in defining a special registry
value (MasterKeyLegacyNt4Domain) somewhere in the depths of the registry
database, as described by the following link
http://support.microsoft.com/?id=331333
Then, you just reboot your PC and you get normal compilation speed (even
when your PC is connected to the domain controller).

Note: The MS note mentions some security issues related to this registry
change. So, you should also read it carefully before applying this patch.

Don't ask me why this registry key solves the problem (the MS note does not
really explain it), or why the problem was there in the first place, this is
way beyond my understanding of Windows. To me, this is just magic but I
thought that some of you may be interested by this trick.

Bruno.

Nov 15 '05 #1
0 1305

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
0
by: Massimiliano Polito | last post by:
It seems the option '/useenv' is no longer supported in in Microsoft Visual .NET 2005. If I run 'devenv /?' I get the following: ------------------------ Microsoft (R) Visual Studio Version...
13
by: jc | last post by:
I have written a parser using bison and flex to read ASAP2 file for CAN communications. entire development was done in an unix environment and now the code is ready to be integrated to an existing...
1
by: Norman Diamond | last post by:
One Visual Studio 2005 solution contains a C# project and C++ ATL DLL project. The DLL compiles fine, gets registered automatically, gets referenced correctly when the C# program compiles, and...
6
by: Miro | last post by:
I can run an exe ( and its install ) i have created on my machine. The exe has a button that populates a dataset and then shoots it to a crystal report. But... Installing the setup.exe on my...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.