Cannot Change threading mode

  • Thread starter Thread starter c duden
  • Start date Start date
C

c duden

I am able to add an exisiting office addin project to a blank solution in
VS.NET 2003. When I attempt to add it's setup project I get the following
error in VS.NET "Cannot change threading mode after it has been set" and
the project add fails. Does anyone know why this is occuring?

Thanks.
 
I should clarify a bit I think:

This is a brand new build (WinXP, Office XP, VS.NET 2003 EA). I had the
same issue with the previous build except it was Office 2k3 so I rebuilt the
machine last night. Also Once when creating a new blank solution I was able
to add both projects but when I attempted to compile it locked up VS.NET, I
killed the process and when I reopened the solution the Setup project was
unabavailable and when I tried to either reload it or delete it I get the
same error message "cannot change threading mode once it has been set". I
am unable to find any info regarding this behaviour.
 
Hi duden,

Thank you for posting in MSDN managed newsgroup!

I have tested this issue for you in one WinXP box. However, I can't
reproduce this issue for you. I write my repro steps below. If it is not
the same to your scenario, it will be appreciated you post one for me. I
will test this for you.
1) Windows XP, Office XP and Visual Studio.net 2003 installed

2) Create one bland solution and then add one add-in project into this
solution. Keep all the default settings.

3) in the OnStartupComplete event handler, I write one line to popup one
window:
MessageBox.Show("Hello");

4) compile. Everything works very smoothly.

If my repro steps are the same to yours, I'd suggest you can reboot your
machine into safe mode and then create one solution with a added add-in
project, compile it. If it can work very well, based on my experience, I'd
suggest you can troubleshoot this issue with the clean boot method to
narrow down this issue. This will help us to locate the culprit.Perhaps
this issue is caused by some mal-function processes or services. The kb
article 310353 will introduce the clean boot method for you. Please go to:
310353 How to Perform a Clean Boot in Windows XP
http://support.microsoft.com/?id=310353

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top