473,466 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Create 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\wwwroot\WebApplication1\bin\WebApplica tion1.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 25995
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**********@to-group.com> wrote:
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\wwwroot\WebApplication1\bin\WebApplic ation1.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.odetocode.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**********@to-group.com> wrote:
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\wwwroot\WebApplication1\bin\WebAppli cation1.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 #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**********@to-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.odetocode.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**********@to-group.com> wrote:
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\wwwroot\WebApplication1\bin\WebAppl ication1.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 #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.odetocode.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**********@to-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.odetocode.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**********@to-group.com> wrote:

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\wwwroot\WebApplication1\bin\WebApp lication1.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 #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.odetocode.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**********@to-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.odetocode.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**********@to-group.com> wrote:

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\wwwroot\WebApplication1\bin\WebApp lication1.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 #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**********@to-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.odetocode.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**********@to-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.odetocode.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**********@to-group.com> wrote:

>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\wwwroot\WebApplication1\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 #7

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

Similar topics

5
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...
3
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...
3
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...
0
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...
5
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...
1
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...
1
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
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...
4
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...
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
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...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.