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

Unexpected error writing metadata. WTF?

I am getting this very annoying error CS0013 whenever I try to build a
complex library. I had the problem a few months ago, and followed the
advice from the knowledge base and reinstalled visual studio.

Now I have a fresh install of WinXP pro, a fresh install of VS.NET 2003,
and yet the same problem occurs again!

The problem persists even when I do not use visual studio. I am
currently consolidating my build process using nant, and the same
problem occurs.

I have searched the net and found many people having the same problem,
but not a single solution. Somebody please help me. This is getting
quite urgent.

best regards

Rüdiger
Nov 16 '05 #1
8 4288
Rüdiger,

I would compare what VS.NET is using to compile versus using NAnt.
Basically, check the command line that VS.NET is using (which is in the
output window when you build), and then check out the command line that NAnt
is using for the same project.

You might be able to see some differences there which might account for
the CS0013 error.

Also, if you have the luxury of waiting, or working with beta products,
you might want to try out VS.NET 2005, and the MSBUILD system. The IDE and
the command line builder use the same engine, and you won't have to worry
about divergence between the IDE and command line tools.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rüdiger Klaehn" <kl****@gamemakers.de> wrote in message
news:35*************@individual.net...
I am getting this very annoying error CS0013 whenever I try to build a
complex library. I had the problem a few months ago, and followed the
advice from the knowledge base and reinstalled visual studio.

Now I have a fresh install of WinXP pro, a fresh install of VS.NET 2003,
and yet the same problem occurs again!

The problem persists even when I do not use visual studio. I am currently
consolidating my build process using nant, and the same problem occurs.

I have searched the net and found many people having the same problem, but
not a single solution. Somebody please help me. This is getting quite
urgent.

best regards

Rüdiger

Nov 16 '05 #2
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

I would compare what VS.NET is using to compile versus using NAnt.
Basically, check the command line that VS.NET is using (which is in the
output window when you build), and then check out the command line that NAnt
is using for the same project.
VS.Net has the same problem, so I don't see how that should help. By the
way, I have the exact same problem when running csc from the command line.

[snip] Also, if you have the luxury of waiting, or working with beta products,
you might want to try out VS.NET 2005, and the MSBUILD system. The IDE and
the command line builder use the same engine, and you won't have to worry
about divergence between the IDE and command line tools.
I don't have the luxury of waiting, and I am not going to change the
build system again in the vague hope that it might work.

The target file does not even exist, and there is no process owns a
handle to the target file (I checked with process explorer).

I am really running out of things to try...
Hope this helps.

I'm afraid not. But thanks anyway.
Nov 16 '05 #3
Rüdiger,

Does this address your problem (watch for line wrap)?

http://support.microsoft.com/default...b;EN-US;843552

You mentioned the complexity of your library, and I'm wondering if this
might be the cause.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rüdiger Klaehn" <kl****@gamemakers.de> wrote in message
news:35*************@individual.net...
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

I would compare what VS.NET is using to compile versus using NAnt.
Basically, check the command line that VS.NET is using (which is in the
output window when you build), and then check out the command line that
NAnt is using for the same project.

VS.Net has the same problem, so I don't see how that should help. By the
way, I have the exact same problem when running csc from the command line.

[snip]
Also, if you have the luxury of waiting, or working with beta
products, you might want to try out VS.NET 2005, and the MSBUILD system.
The IDE and the command line builder use the same engine, and you won't
have to worry about divergence between the IDE and command line tools.

I don't have the luxury of waiting, and I am not going to change the build
system again in the vague hope that it might work.

The target file does not even exist, and there is no process owns a handle
to the target file (I checked with process explorer).

I am really running out of things to try...
Hope this helps.

I'm afraid not. But thanks anyway.

Nov 16 '05 #4
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

Does this address your problem (watch for line wrap)?

http://support.microsoft.com/default...b;EN-US;843552

You mentioned the complexity of your library, and I'm wondering if this
might be the cause.

This might be it. The library is not really large, but I use inner
classes and a quite large inheritance hierarchy.

So how do I get this hotfix? I did not see a download link in the page.

By the way: this is not only a problem with VS.NET 2003, but also with
2002 and even the straight csc.exe from the .net framework. Given the
fact that there are a lot of people having this problem there should
really be a fix.

I will try to reorganize the class hierarchy to avoid inner classes. But
you should not have to adapt your inheritance hierarchy to compiler bugs...

Many thanks for the quick response.
Nov 16 '05 #5
Rüdiger,

Follow this link for the contact number page (watch for line wrap):

http://support.microsoft.com/default.aspx?scid=fh;[LN];CNTACTMS

It was listed under the "Resolution" section of the link in the previous
page.

Also, I am curious, when I entered CS0013 into google, the support page
I referenced previously was the first link. I'm curious how you missed it
=)
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rüdiger Klaehn" <kl****@gamemakers.de> wrote in message
news:35*************@individual.net...
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

Does this address your problem (watch for line wrap)?

http://support.microsoft.com/default...b;EN-US;843552

You mentioned the complexity of your library, and I'm wondering if
this might be the cause.

This might be it. The library is not really large, but I use inner classes
and a quite large inheritance hierarchy.

So how do I get this hotfix? I did not see a download link in the page.

By the way: this is not only a problem with VS.NET 2003, but also with
2002 and even the straight csc.exe from the .net framework. Given the fact
that there are a lot of people having this problem there should really be
a fix.

I will try to reorganize the class hierarchy to avoid inner classes. But
you should not have to adapt your inheritance hierarchy to compiler
bugs...

Many thanks for the quick response.

Nov 16 '05 #6
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

Follow this link for the contact number page (watch for line wrap):

http://support.microsoft.com/default.aspx?scid=fh;[LN];CNTACTMS

It was listed under the "Resolution" section of the link in the previous
page.

Also, I am curious, when I entered CS0013 into google, the support page
I referenced previously was the first link. I'm curious how you missed it
=)

It was not there the last time I looked for this problem (in november
2004).

I just called the number and there is nobody there except an answering
machine. So I guess I will have to wait until tommorrow... :-(

Why can't they just provide a download link for the fix? This is a major
compiler bug, so you should fix it as soon as possible.
Nov 16 '05 #7
Rüdiger,

You realize that I don't work for Microsoft, correct? So when you say
"you should fix it as soon as possible", you should understand that I am not
inclined to reverse engineer the compiler and fix your particular problem.

It's a national holiday in America today, so that might account for why
that particular branch of customer service (for hotfixes) is not responding.

I agree that it should be an easier download. However, due to the
nature of hotfixes, I think that they want you to go through the process of
speaking with someone so you understand what the liability is. Hotfixes are
not guaranteed in any way, and they are not put through the same testing
that other products are put through, hence the hesitation to release in a
public distribution. I would expect this to be officially addressed in the
next service pack, or in .NET 2.0.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rüdiger Klaehn" <kl****@gamemakers.de> wrote in message
news:35*************@individual.net...
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

Follow this link for the contact number page (watch for line wrap):

http://support.microsoft.com/default.aspx?scid=fh;[LN];CNTACTMS

It was listed under the "Resolution" section of the link in the
previous page.

Also, I am curious, when I entered CS0013 into google, the support
page I referenced previously was the first link. I'm curious how you
missed it =)

It was not there the last time I looked for this problem (in november
2004).

I just called the number and there is nobody there except an answering
machine. So I guess I will have to wait until tommorrow... :-(

Why can't they just provide a download link for the fix? This is a major
compiler bug, so you should fix it as soon as possible.

Nov 16 '05 #8
Nicholas Paldino [.NET/C# MVP] schrieb:
Rüdiger,

You realize that I don't work for Microsoft, correct? So when you say
"you should fix it as soon as possible", you should understand that I am not
inclined to reverse engineer the compiler and fix your particular problem.
I guess that I read the [..MVP] as [..MSFT]. I apologise for being rude
to you. Its not your fault after all.
It's a national holiday in America today, so that might account for why
that particular branch of customer service (for hotfixes) is not responding.

I agree that it should be an easier download. However, due to the
nature of hotfixes, I think that they want you to go through the process of
speaking with someone so you understand what the liability is. Hotfixes are
not guaranteed in any way, and they are not put through the same testing
that other products are put through, hence the hesitation to release in a
public distribution. I would expect this to be officially addressed in the
next service pack, or in .NET 2.0.

I sure hope so. This has cost me quite a lot of time that could have
been spent much more productively.

best regards,

Rüdiger
Nov 16 '05 #9

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

Similar topics

1
by: Heinz | last post by:
Hello, I have a project that is used by other project in my solution. This common project is also used by a VB6 application (so it is placed in GAC). Since I did this (this is what I...
10
by: Gary Hughes | last post by:
I'm getting the following error when attempting to link a managed C++ dll. I can't find any reference to these errors with google. Can anyone help? I've included the class definition causing the...
3
by: Fred Nelson | last post by:
Hi: I'm a VB.NET web programmer who is writing my first C# web application! I'm having a problem trapping and logging unexpected errors. In my VB.NET applications I have a routine called by...
0
by: Stu | last post by:
When linking a CLR project, I get these six linker messages: T_Calc error LNK2022: metadata operation failed (80131195) : Custom attributes are not consistent: (0x0c000042). T_Calc error LNK2022:...
1
by: Invalidlastname | last post by:
Hi, Our developer team recently started getting the compilation error, see below, once a while running the asp.net web application from Visual Studio 2003 (in debug mode), and we have to rebuild the...
2
by: Kevin R. | last post by:
I have been ignoring this problem for a few weeks now, but it's becoming a bit annoying not to mention unproductive. Here it goes: I compile my project with no errors. Then after I debug/run it,...
4
by: james margey | last post by:
Hi to all, I have spent 3 days at this error and i have two days to go for a deadline, and i am about to go off my nut, the reason being: Microsoft dont seem to be able to provide a solution, I...
1
by: Asif | last post by:
Hi All, I did follow the MSDN article (http://msdn2.microsoft.com/en-us/ library/ms379585(VS.80).aspx ) for overriding Master Page properties by setting page title and other Meta information(...
3
by: nazgul42 | last post by:
I am writing a very simple login script for a website that I am also writing, but when I try to run it, the only error I get is: Parse error: parse error, unexpected $ in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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
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
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,...

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.