473,624 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CS0006: Metadata file "../bin/WebApplication1 .dll" could not be found

Hi,

I've got the following error when building my ASP.NET application called
WebApplication1 :

Preparing resources...
Updating references...
Performing main compilation...
error CS0006: Metadata file
'c:\inetpub\www root\WebApplica tion1\bin\WebAp plication1.dll' could not be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoints are not hit all the time in the debugger and I suspect something
is really wrong with the build. Therefore, I do need to rebuild the whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing I
found had something to do with gacutil, which I think doesn't apply in my
case. WebApplication1 .dll does not exist in the bin directory when I try to
rebuild (being the cause of the error), so how could I register it in the
GAC? And would I then have to update the GAC everytime my assembly changes?

Can somebody please help me out?

Thank you.

Nov 19 '05 #1
6 26020
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Hi,

I've got the following error when building my ASP.NET application called
WebApplication 1:

Preparing resources...
Updating references...
Performing main compilation...
error CS0006: Metadata file
'c:\inetpub\ww wroot\WebApplic ation1\bin\WebA pplication1.dll ' could not be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoints are not hit all the time in the debugger and I suspect something
is really wrong with the build. Therefore, I do need to rebuild the whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing I
found had something to do with gacutil, which I think doesn't apply in my
case. WebApplication1 .dll does not exist in the bin directory when I try to
rebuild (being the cause of the error), so how could I register it in the
GAC? And would I then have to update the GAC everytime my assembly changes?

Can somebody please help me out?

Thank you.


Nov 19 '05 #2
Thanks that seems to work, however is it safe to drop the reference
completely, or is it worth restoring it now?

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:hn******** *************** *********@4ax.c om...
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Hi,

I've got the following error when building my ASP.NET application called
WebApplicatio n1:

Preparing resources...
Updating references...
Performing main compilation...
error CS0006: Metadata file
'c:\inetpub\w wwroot\WebAppli cation1\bin\Web Application1.dl l' could not be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoints are not hit all the time in the debugger and I suspect
something
is really wrong with the build. Therefore, I do need to rebuild the whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing I
found had something to do with gacutil, which I think doesn't apply in my
case. WebApplication1 .dll does not exist in the bin directory when I try
to
rebuild (being the cause of the error), so how could I register it in the
GAC? And would I then have to update the GAC everytime my assembly
changes?

Can somebody please help me out?

Thank you.

Nov 19 '05 #3
It is safe to drop the reference. A web app shouldn't have a reference
to itself - that must have been a mistake when it made it into the
project.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 16:56:33 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Thanks that seems to work, however is it safe to drop the reference
completely, or is it worth restoring it now?

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:hn******* *************** **********@4ax. com...
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Hi,

I've got the following error when building my ASP.NET application called
WebApplicati on1:

Preparing resources...
Updating references...
Performing main compilation...
error CS0006: Metadata file
'c:\inetpub\ wwwroot\WebAppl ication1\bin\We bApplication1.d ll' could not be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoint s are not hit all the time in the debugger and I suspect
something
is really wrong with the build. Therefore, I do need to rebuild the whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing I
found had something to do with gacutil, which I think doesn't apply in my
case. WebApplication1 .dll does not exist in the bin directory when I try
to
rebuild (being the cause of the error), so how could I register it in the
GAC? And would I then have to update the GAC everytime my assembly
changes?

Can somebody please help me out?

Thank you.


Nov 19 '05 #4
I didn't explicitly add the reference, it probably got added when I added my
Web custom control to the Toolbox.
It is quite common to add a toolbox item for custom controls implemented in
your current application, which makes me think Visual Studio should have
detected that.

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:b1******** *************** *********@4ax.c om...
It is safe to drop the reference. A web app shouldn't have a reference
to itself - that must have been a mistake when it made it into the
project.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 16:56:33 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Thanks that seems to work, however is it safe to drop the reference
completely, or is it worth restoring it now?

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:hn****** *************** ***********@4ax .com...
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:

Hi,

I've got the following error when building my ASP.NET application called
WebApplicat ion1:

Preparing resources...
Updating references...
Performin g main compilation...
error CS0006: Metadata file
'c:\inetpub \wwwroot\WebApp lication1\bin\W ebApplication1. dll' could not
be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoin ts are not hit all the time in the debugger and I suspect
something
is really wrong with the build. Therefore, I do need to rebuild the
whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I
imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing
I
found had something to do with gacutil, which I think doesn't apply in
my
case. WebApplication1 .dll does not exist in the bin directory when I try
to
rebuild (being the cause of the error), so how could I register it in
the
GAC? And would I then have to update the GAC everytime my assembly
changes?

Can somebody please help me out?

Thank you.

Nov 19 '05 #5
I didn't explicitly add the reference, it probably got added when I added my
Web custom control to the Toolbox.
It is quite common to add a toolbox item for custom controls implemented in
your current application, which makes me think Visual Studio should have
detected that.

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:b1******** *************** *********@4ax.c om...
It is safe to drop the reference. A web app shouldn't have a reference
to itself - that must have been a mistake when it made it into the
project.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 16:56:33 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Thanks that seems to work, however is it safe to drop the reference
completely, or is it worth restoring it now?

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:hn****** *************** ***********@4ax .com...
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:

Hi,

I've got the following error when building my ASP.NET application called
WebApplicat ion1:

Preparing resources...
Updating references...
Performin g main compilation...
error CS0006: Metadata file
'c:\inetpub \wwwroot\WebApp lication1\bin\W ebApplication1. dll' could not
be
found
Build complete -- 1 errors, 0 warnings

I cannot Rebuild the whole application, just Build seems to work. My
breakpoin ts are not hit all the time in the debugger and I suspect
something
is really wrong with the build. Therefore, I do need to rebuild the
whole
solution.

In the Solution Explorer I see a reference to webapplication1 - I
imagine
this is normal, although I don't perfectly understand my WebApplication1
project has a reference to itself...

I've been looking on the web for possible solutions, but the only thing
I
found had something to do with gacutil, which I think doesn't apply in
my
case. WebApplication1 .dll does not exist in the bin directory when I try
to
rebuild (being the cause of the error), so how could I register it in
the
GAC? And would I then have to update the GAC everytime my assembly
changes?

Can somebody please help me out?

Thank you.

Nov 19 '05 #6
Yes, by mistake I meant to say "one of those strange IDE moments".

:)

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 23:03:46 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
I didn't explicitly add the reference, it probably got added when I added my
Web custom control to the Toolbox.
It is quite common to add a toolbox item for custom controls implemented in
your current application, which makes me think Visual Studio should have
detected that.

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:b1******* *************** **********@4ax. com...
It is safe to drop the reference. A web app shouldn't have a reference
to itself - that must have been a mistake when it made it into the
project.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 16:56:33 +1300, "John Doe"
<pl**********@t o-group.com> wrote:
Thanks that seems to work, however is it safe to drop the reference
completely , or is it worth restoring it now?

"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:hn***** *************** ************@4a x.com...
Try removing the assembly reference to WebApplication1 .dll and then
rebuilding.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 12 Feb 2005 12:38:01 +1300, "John Doe"
<pl**********@t o-group.com> wrote:

>Hi,
>
>I've got the following error when building my ASP.NET application called
>WebApplica tion1:
>
>Preparin g resources...
>Updating references...
>Performi ng main compilation...
>error CS0006: Metadata file
>'c:\inetpu b\wwwroot\WebAp plication1\bin\ WebApplication1 .dll' could not
>be
>found
>Build complete -- 1 errors, 0 warnings
>
>I cannot Rebuild the whole application, just Build seems to work. My
>breakpoint s are not hit all the time in the debugger and I suspect
>somethin g
>is really wrong with the build. Therefore, I do need to rebuild the
>whole
>solution .
>
>In the Solution Explorer I see a reference to webapplication1 - I
>imagine
>this is normal, although I don't perfectly understand my WebApplication1
>project has a reference to itself...
>
>I've been looking on the web for possible solutions, but the only thing
>I
>found had something to do with gacutil, which I think doesn't apply in
>my
>case. WebApplication1 .dll does not exist in the bin directory when I try
>to
>rebuild (being the cause of the error), so how could I register it in
>the
>GAC? And would I then have to update the GAC everytime my assembly
>changes?
>
>Can somebody please help me out?
>
>Thank you.
>
>


Nov 19 '05 #7

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

Similar topics

5
9098
by: Giles Brown | last post by:
I'm feeling quite dumb this morning. I'm trying to build a COM server DLL using py2exe and it ain't working. Here's what ain't working... setup_dll.py based on py2exe sample: """from distutils.core import setup import py2exe
3
4535
by: Daniel Billingsley | last post by:
Today I went to compile a solution I've been working on for months. I've been off most of the last few months, so there's been a gap in the work, but I did compile it a few times earlier this week. Today I get a message: Could not write to output file 'D:\DevelopmentProjects\Enterprise\CustomUtilities\obj\Debug\CustomUtilities ..dll' -- 'The process cannot access the file because it is being used by another process. '
3
4136
by: Dmitry Jouravlev | last post by:
Hi, I have a number of C++ solutions in Visual Studio .NET and when i compile them using "Whole Program Optimization", certain projects report a LNK1171 error saying that c2.dll could not be loaded. The error contains the correct path to c2.dll (and it is definately there). This only happens on some projects and only when "whole program optimization" option is turned on. If i turn off this option, the problem goes away. I have other...
0
1194
by: D.C. | last post by:
Hi, I am running into the above exception with different dll name every time I restart to debug the ASP.NET project. I put all my dlls in \bin directory. The exception happens on the following line: XmlSerializer serializer = new XmlSerializer (proxy.GetType());
5
3897
by: touf | last post by:
Hi, I'm having this error when I try to open a report (Crystal reports) on the client machine (It works fine on my developpement machine) It's a window application (not a web), On the client machine the framwork was installed using a VB.net CD's that doesn't contain Crystal, but The application is installed by an installer generated from my machine using vs.net 2002. I've found somewhere on google that this is an error related to web...
1
1626
by: Charlie | last post by:
Hi: Getting this error. Not sure what to do. App won't compile. Looks like it is something out of my control. Error 1 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\biolabnet\4bfeaa1c\ff23cac2\App_Web_filtercat.ascx.cdcab7d2.ehc-pwme.dll' could not be found
1
6265
by: eshuv | last post by:
hi I am faceing this problem when comlling the .cpp file . fatal error C1004: unexpected end of file found
13
3502
by: Javad | last post by:
Hello I know that I should get the information of windows internet connections by using "rasapi32.dll" library, and I also have some sample codes, but I can't make them work. My exact need is to get the "UserName" of a connection. How is it possible? plz hlp thnk u
4
7739
by: joesri | last post by:
i have received an "Unable to load dll ".dll". The Specified module could not be found " while running ASP.NET Web Page. I have placed dll and supported dll in wwwroot\bin directory,but it is not working . Whether i have to reset IIS?........ Can anybody help me .......
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8474
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7158
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.