473,394 Members | 1,740 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,394 software developers and data experts.

Compiling problem, or is it?

I have a solution consisting of 9 projects with various references to each
other (clean though, no loops, etc.). Visual Studio sometimes gives me
weird errors that it can't find one of the referenced assemblies, can't
write one, or now most frequently (almost 100% of the time): "A failure
occurred while attempting to start the compilation".

But in fact the compilation appears to have completed successfully. I've
got a freshly created exe and it runs just fine, even in debug mode from
within Visual Studio.

Before the errors have led to me to this KB article, but while the symptoms
were similar I've checked everything out and it doesn't seem to apply. (One
of the assemblies is 96k compiled.)
http://support.microsoft.com/default...b;en-us;313512

I also previously had this problem. It seems to be solved now, but maybe is
still somehow related:
http://support.microsoft.com/default...b;en-us;825007

Right now this is mostly a big nuissance, as everything usually works fine
in spite of the message. Sometimes I have to exit and reload VS to get it
to compile again, which is just getting really annoying.

Any suggestions?
Nov 16 '05 #1
13 1380
Correction:

When I do a Rebuild Solution one of the assemblies is NOT rebuilt.

I deleted the .dll file from that project's debug subfolder of the obj and
bin folders. When I restarted VS I of course got a couple messages that it
couldn't find the assembly / dependency. Did Rebuild Solution. Everything
seems to have compiled, but VS still telling me it can't find the assembly.

Exited and restarted VS and the message is gone. Rebuild Solution and I'm
back to the "failure" message on the same assembly, and it's the only
assembly that didn't recompile.

For whatever it's worth, the assembly causing the problem is not the 96k
assembly, but it is referenced only by the 96k one. The 96k assembly also
references others.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
I have a solution consisting of 9 projects with various references to each
other (clean though, no loops, etc.). Visual Studio sometimes gives me
weird errors that it can't find one of the referenced assemblies, can't
write one, or now most frequently (almost 100% of the time): "A failure
occurred while attempting to start the compilation".

But in fact the compilation appears to have completed successfully. I've
got a freshly created exe and it runs just fine, even in debug mode from
within Visual Studio.

Before the errors have led to me to this KB article, but while the symptoms were similar I've checked everything out and it doesn't seem to apply. (One of the assemblies is 96k compiled.)
http://support.microsoft.com/default...b;en-us;313512

I also previously had this problem. It seems to be solved now, but maybe is still somehow related:
http://support.microsoft.com/default...b;en-us;825007

Right now this is mostly a big nuissance, as everything usually works fine
in spite of the message. Sometimes I have to exit and reload VS to get it
to compile again, which is just getting really annoying.

Any suggestions?

Nov 16 '05 #2
I assume you've checked your build order, right?

I don't think there's any complete cure for this problem (but I'll be
watching in case someone knows better.) However, sometimes I've found that
when I can't "rebuild", I can "build". Then I usually get out of VS and come
back in. (Not that I have a reason for doing this, it's more like a
religious ritual that I perform whenever my build process needs to be
"cleansed.") After that, rebuild usually seems to work.

Hope this helps...
-Rachel

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Correction:

When I do a Rebuild Solution one of the assemblies is NOT rebuilt.

I deleted the .dll file from that project's debug subfolder of the obj and
bin folders. When I restarted VS I of course got a couple messages that
it
couldn't find the assembly / dependency. Did Rebuild Solution.
Everything
seems to have compiled, but VS still telling me it can't find the
assembly.

Exited and restarted VS and the message is gone. Rebuild Solution and I'm
back to the "failure" message on the same assembly, and it's the only
assembly that didn't recompile.

For whatever it's worth, the assembly causing the problem is not the 96k
assembly, but it is referenced only by the 96k one. The 96k assembly also
references others.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
I have a solution consisting of 9 projects with various references to
each
other (clean though, no loops, etc.). Visual Studio sometimes gives me
weird errors that it can't find one of the referenced assemblies, can't
write one, or now most frequently (almost 100% of the time): "A failure
occurred while attempting to start the compilation".

But in fact the compilation appears to have completed successfully. I've
got a freshly created exe and it runs just fine, even in debug mode from
within Visual Studio.

Before the errors have led to me to this KB article, but while the

symptoms
were similar I've checked everything out and it doesn't seem to apply.

(One
of the assemblies is 96k compiled.)
http://support.microsoft.com/default...b;en-us;313512

I also previously had this problem. It seems to be solved now, but maybe

is
still somehow related:
http://support.microsoft.com/default...b;en-us;825007

Right now this is mostly a big nuissance, as everything usually works
fine
in spite of the message. Sometimes I have to exit and reload VS to get
it
to compile again, which is just getting really annoying.

Any suggestions?


Nov 16 '05 #3
Yeah, the build order looks fine.

The problem is very consistent. If I do the steps I mentioned I get the
same results every time. I also have a consistent workaround in those
steps, but it's quickly becoming a major pain as it happens 100% of the time
now.

"Rachel Suddeth" <ra****@bldhound.com> wrote in message
news:OC*************@tk2msftngp13.phx.gbl...
I assume you've checked your build order, right?

I don't think there's any complete cure for this problem (but I'll be
watching in case someone knows better.) However, sometimes I've found that
when I can't "rebuild", I can "build". Then I usually get out of VS and come back in. (Not that I have a reason for doing this, it's more like a
religious ritual that I perform whenever my build process needs to be
"cleansed.") After that, rebuild usually seems to work.

Hope this helps...
-Rachel

Nov 16 '05 #4
Daniel,
I always get this error but only when I am referencing projects whose dlls
are being used by a service currently running on the machine. Once this
service is stopped and a restart of the VS everything is all good.
Hope it helps in anyway.
--Landi
"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl...
Correction:

When I do a Rebuild Solution one of the assemblies is NOT rebuilt.

I deleted the .dll file from that project's debug subfolder of the obj and
bin folders. When I restarted VS I of course got a couple messages that it couldn't find the assembly / dependency. Did Rebuild Solution. Everything seems to have compiled, but VS still telling me it can't find the assembly.
Exited and restarted VS and the message is gone. Rebuild Solution and I'm
back to the "failure" message on the same assembly, and it's the only
assembly that didn't recompile.

For whatever it's worth, the assembly causing the problem is not the 96k
assembly, but it is referenced only by the 96k one. The 96k assembly also
references others.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:e9**************@TK2MSFTNGP14.phx.gbl...
I have a solution consisting of 9 projects with various references to each other (clean though, no loops, etc.). Visual Studio sometimes gives me
weird errors that it can't find one of the referenced assemblies, can't
write one, or now most frequently (almost 100% of the time): "A failure
occurred while attempting to start the compilation".

But in fact the compilation appears to have completed successfully. I've got a freshly created exe and it runs just fine, even in debug mode from
within Visual Studio.

Before the errors have led to me to this KB article, but while the symptoms
were similar I've checked everything out and it doesn't seem to apply.

(One
of the assemblies is 96k compiled.)
http://support.microsoft.com/default...b;en-us;313512

I also previously had this problem. It seems to be solved now, but maybe is
still somehow related:
http://support.microsoft.com/default...b;en-us;825007

Right now this is mostly a big nuissance, as everything usually works

fine in spite of the message. Sometimes I have to exit and reload VS to get it to compile again, which is just getting really annoying.

Any suggestions?


Nov 16 '05 #5
All 9 of the projects are used only in this solution. But there is
something weird going on along those lines (but it's something all within
the context of this solution). I say that because sometimes I have this
error and try to delete the dll in question so VS will rebuild it and I get
an error from Explorer that the files are in use. If I exit VS I can delete
fine.

So, it seems to be some weird locking situation from within VS itself, but
I've check the couple of KB articles and they don't seem to fit exactly or
solve the problem.

"Landi" <Ac*******@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Daniel,
I always get this error but only when I am referencing projects whose dlls
are being used by a service currently running on the machine. Once this
service is stopped and a restart of the VS everything is all good.
Hope it helps in anyway.
--Landi

Nov 16 '05 #6
I guess we all have to deal with some of the imperfections of VS.

--Landi.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...
All 9 of the projects are used only in this solution. But there is
something weird going on along those lines (but it's something all within
the context of this solution). I say that because sometimes I have this
error and try to delete the dll in question so VS will rebuild it and I get an error from Explorer that the files are in use. If I exit VS I can delete fine.

So, it seems to be some weird locking situation from within VS itself, but
I've check the couple of KB articles and they don't seem to fit exactly or
solve the problem.

"Landi" <Ac*******@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Daniel,
I always get this error but only when I am referencing projects whose dlls are being used by a service currently running on the machine. Once this
service is stopped and a restart of the VS everything is all good.
Hope it helps in anyway.
--Landi


Nov 16 '05 #7
This is a little more than a nuissance. It's cutting my productivity
significantly.

I believe this is one of the MSDN managed newsgroups - shouldn't someone
from Microsoft be chiming in about now?

"Landi" <Ac*******@comcast.net> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
I guess we all have to deal with some of the imperfections of VS.

--Landi.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...

So, it seems to be some weird locking situation from within VS itself, but I've check the couple of KB articles and they don't seem to fit exactly or solve the problem.

Nov 16 '05 #8
Daniel,
This is already 4 days old and I doubt it that anyone is going to look at
this anymore.
And I believe that Microsoft doesn't monitor this newsgroup, I could be
wrong though.
They have these MVPs that hare knowledgeable but don't get paid, because
Microsoft can't afford to pay them.

Good luck with everything
Landi

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
This is a little more than a nuissance. It's cutting my productivity
significantly.

I believe this is one of the MSDN managed newsgroups - shouldn't someone
from Microsoft be chiming in about now?

"Landi" <Ac*******@comcast.net> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
I guess we all have to deal with some of the imperfections of VS.

--Landi.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:eo**************@TK2MSFTNGP12.phx.gbl...

So, it seems to be some weird locking situation from within VS itself,
but I've check the couple of KB articles and they don't seem to fit
exactly or solve the problem.


Nov 16 '05 #9
"Landi" <Ac********@comcast.net> wrote in news:OubcE82EFHA.1348
@TK2MSFTNGP14.phx.gbl:
They have these MVPs that hare knowledgeable but don't get paid, because
Microsoft can't afford to pay them.


Ha! MS COULD afford to pay them for sure. MS is one of the richest companies
in the world. :)

Im not saying that they should pay MVP's - its just that your statement reads
quite funny.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
Nov 16 '05 #10
It's one of the ones they're supposed to be monitoring for posts from MSDN
subscribers (which I am).

"Landi" <Ac********@comcast.net> wrote in message
news:Ou**************@TK2MSFTNGP14.phx.gbl...
Daniel,
This is already 4 days old and I doubt it that anyone is going to look at
this anymore.
And I believe that Microsoft doesn't monitor this newsgroup, I could be
wrong though.
They have these MVPs that hare knowledgeable but don't get paid, because
Microsoft can't afford to pay them.

Good luck with everything
Landi

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message
news:eU**************@tk2msftngp13.phx.gbl...
This is a little more than a nuissance. It's cutting my productivity
significantly.

I believe this is one of the MSDN managed newsgroups - shouldn't someone
from Microsoft be chiming in about now?

"Landi" <Ac*******@comcast.net> wrote in message
news:uP**************@tk2msftngp13.phx.gbl...
I guess we all have to deal with some of the imperfections of VS.

--Landi.

"Daniel Billingsley" <dbillingsley@NO_durcon_SPAAMM.com> wrote in message news:eo**************@TK2MSFTNGP12.phx.gbl...
>
> So, it seems to be some weird locking situation from within VS
itself, but
> I've check the couple of KB articles and they don't seem to fit

exactly
or
> solve the problem.



Nov 16 '05 #11
Daniel Billingsley <dbillingsley@NO_durcon_SPAAMM.com> wrote:
It's one of the ones they're supposed to be monitoring for posts from MSDN
subscribers (which I am).


I think that to be flagged by MS tech support, you need to post with
the right email address (I'm not sure if that's just your MSDN passport
address, or whether you need to register or something) and post via the
web interface. I could be wrong, of course...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #12
Jon Skeet [C# MVP] wrote:
I think that to be flagged by MS tech support, you need to post with
the right email address (I'm not sure if that's just your MSDN
passport address, or whether you need to register or something) and
post via the web interface. I could be wrong, of course...


yep, Daniel needs to register his "no spam" email address and post with
that, then he will get an answer to his posts. Instructions on how to
do this should be on his MSDN welcome pack letter. He won't need to
post via the web interface though, any newsreader will do.

Cheers Tim.
Nov 16 '05 #13
Yeah I know all that, and had it all set up properly apparently as I used to
get responses to my posts. From the MSDN site it LOOKS at first glance as
though they've changed the way that no-spam address is registered and maybe
they dumped my old registration.

I think I re-registered the address yesterday (it's not the same way I did
it a few years back so I'm not sure) and I figured I should eventually get a
response to these posts if I did it correctly.

Thanks guys. I'll just wait and see now.

"Tim Jarvis" <Ti*******@newsgroup.nospam> wrote in message
news:uN*************@TK2MSFTNGP15.phx.gbl...
Jon Skeet [C# MVP] wrote:
I think that to be flagged by MS tech support, you need to post with
the right email address (I'm not sure if that's just your MSDN
passport address, or whether you need to register or something) and
post via the web interface. I could be wrong, of course...


yep, Daniel needs to register his "no spam" email address and post with
that, then he will get an answer to his posts. Instructions on how to
do this should be on his MSDN welcome pack letter. He won't need to
post via the web interface though, any newsreader will do.

Cheers Tim.

Nov 16 '05 #14

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

Similar topics

0
by: Nikola Milutinovic | last post by:
Hi all. I'm not subscribed to the list, so all replies to me mail directly. I ran into a small problem, for which we have found a workaround. I was compiling PostgreSQL v7.4.1 and it's...
0
by: Martin Bless | last post by:
I need to access a MSSQL database (MS-Sql, not MySQL!)and would very much like to use mssql-0.09.tar.gz which is available from http://www.object-craft.com.au/projects/mssql/download.html ...
11
by: Arturo DiDonna | last post by:
Hello everyone. I am trying to compile someone else code and I am stuck with compilation problems using the g++ 3.3 compiler. Basically, when compiling the following code, I get this error...
3
by: modemer | last post by:
Hello, I got weird compiling message similar like following when I compiled my simple code on Sun 5.8 with CC WorkShop 6 update 2 C++ 5.3. CC -g -o myclass.o -c myclass.cpp CC -g -o main.o...
0
by: David W. Fenton | last post by:
Today I was working on a hideous old app that I created a long time ago that does a lot of showing/hiding/resizing of fields on one of the forms. I had used constants to store reference values for...
3
by: Dmitri Shvetsov | last post by:
Hi All, Did somebody have a problem compiling some solution in VS2003? I get the error every time that some files are locked and are using by another process. I repeat compiling again and again...
4
by: Aaron Queenan | last post by:
When I build a C++ library to .NET using the managed C++ compiler, I get the following error message: Linking... LINK : error LNK2020: unresolved token (0A000005) _CrtDbgReport LINK : error...
2
by: Rudy Ray Moore | last post by:
Hi guys, I just upgraded to "Visual Studio .net 2003 7.1 c++" from VS6. Some things I like (proper for loop variable scoping, for example), but some other things are troubling me. One...
0
by: erkidevries | last post by:
Problem compiling Tkinter program with bmp images (using py2exe) I have a Tkinter gui program that uses bmp as backgrounds. The program itself works when I run from the source. I placed the...
8
by: WebSnozz | last post by:
I have an application written in C that does a lot of low level stuff. It does a lot of things like casting from void*'s. I want to create a new GUI for it in either C# or MC++, but reuse the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.