473,320 Members | 2,054 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,320 software developers and data experts.

C# compiler hangs

Hi

I've a strange and annoying problem with the C# compiler (7.00.9644). When I compile a project with the AssemblyKeyFileAttribute the compiler hangs for a few seconds. This happens only if the assembly is to be strong-named. And it happens only from time to time. The problem is present for a few weeks then it vanishes and after a few weeks it comes back again. I did no changes to my machine when the problem occurs

What's going on

Rober

Nov 15 '05 #1
2 1177
Try issuing the command
sn -m n
at a .net command prompt before you build.
I had this exact same problem, and this fixed it (the command only needs to
be run once, not every time you build, but I put "sn -q -m n" in the first
line of my build batch file). While I have no idea what caused the problem,
it seemed to start after the network was reconfigured by the IT dept. I
also have no idea why this fixes it, but when you stumble on a solution,
you're happy.

[they added roaming profiles right before this happened, which is what made
me try this command. [
"Robert Sander" <an*******@discussions.microsoft.com> wrote in message
news:C6**********************************@microsof t.com...
Hi,

I've a strange and annoying problem with the C# compiler (7.00.9644). When I compile a project with the AssemblyKeyFileAttribute the compiler hangs for
a few seconds. This happens only if the assembly is to be strong-named. And
it happens only from time to time. The problem is present for a few weeks
then it vanishes and after a few weeks it comes back again. I did no changes
to my machine when the problem occurs.
What's going on?

Robert

Nov 15 '05 #2
There are lots of possible explanations. Some of them even involve strange
network issues (something about running XP on a NT4 domain), some of them
are pretty straight-forward. If you aren't using delay signing, then I
would recommend installing your key onto your machine permanently using
sn -i, and then use the AssemblyKeyNameAttribute instead. Almost all of the
problems are traced back to some slowness in temporarily installing the key
to do the signing and then uninstalling it when done.

Let me know if that doesn't work for you or isn't an option.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.
"Robert Sander" <an*******@discussions.microsoft.com> wrote in message
news:C6**********************************@microsof t.com...
Hi,

I've a strange and annoying problem with the C# compiler (7.00.9644). When I compile a project with the AssemblyKeyFileAttribute the compiler hangs for
a few seconds. This happens only if the assembly is to be strong-named. And
it happens only from time to time. The problem is present for a few weeks
then it vanishes and after a few weeks it comes back again. I did no changes
to my machine when the problem occurs.
What's going on?

Robert

Nov 15 '05 #3

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

Similar topics

11
by: anuradha.k.r | last post by:
hi, i am writing a socket program in python,both client side and server side.I've written the client side which is working perfectly fine(checked it against server program written in C).but as for...
12
by: JD | last post by:
This is another Python problem, I think might be unrelated to the earlier bug I found, and eventually figured out how to report it to Sourceforge. This is related to a question I have about...
0
by: Runge Developer | last post by:
When compiling a VB.NET assembly we reguarly have the problem where it either hangs or produces the following error: ----- Visual Basic .NET compiler is unable to recover from the following error:...
5
by: Richard Gutery | last post by:
G'day. Slight problem that has me perplexed. We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro. Up until the other day, the app worked without problems. Now, the app hangs on...
65
by: Pmb | last post by:
I'm confused as to what the compiler error message I'm getting is refering to. Can someone take a gander and let me know what I did wrong? The program is below. When I compile it I get the...
10
by: Tomas Vera | last post by:
Hello All, I'ma having trouble getting GetCurrentProcess() to work properly. What I'm trying to accomplish is list all running processes. But my call get GetProcesses() hangs. While testing...
1
by: Runge Developer | last post by:
When compiling a VB.NET assembly we reguarly have the problem where it either hangs or produces the following error: ----- Visual Basic .NET compiler is unable to recover from the following error:...
6
by: Alexander Widera | last post by:
hello, if i start a program (an exe-file) with Process.Start(...) I don't have the required permissions that the programm needs (i could start the programm but the program needs special rights)....
2
by: Pierre Rouleau | last post by:
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.