Need Urgent Help: fatal error CS0008

H

hb

Hi,

I have been working on the ASP.Net project for months with VS.Net 2003 in C#.
But this afternoon I suddenly got the following error when I tied to compile the
whole solution:
===
------ Build started: Project: GofBiz, Configuration: Debug .NET ------

Preparing resources...

Updating references...

Performing main compilation...

fatal error CS0008: Unexpected error reading metadata from file 'C:\Inetpub\wwwroot\GofBiz\manage\loaddata1.aspx.cs' -- 'Unspecified error '

Build complete -- 1 errors, 0 warnings

Building satellite assemblies...

===

It had been working without problem before I got this error. And the file indicated
in the error hasn't been touched for days.

Would you please give me some help? I am stuck here.

Thank you

hb
 
H

hb

By the way, I have searched the msdn.microsoft.com, and got the following result:
===
Visual C# Language Concepts

Compiler Error CS0008
Unexpected error reading metadata from file 'file' - 'description'

A DLL was successfully opened for retrieving metadata but is corrupted, such that data could not be read from it.

Get an uncorrupted DLL to import.

===

But the my project, there are no any other dll but .Net library classes.

I really don't understand what is going on.

HB
Hi,

I have been working on the ASP.Net project for months with VS.Net 2003 in C#.
But this afternoon I suddenly got the following error when I tied to compile the
whole solution:
===
------ Build started: Project: GofBiz, Configuration: Debug .NET ------

Preparing resources...

Updating references...

Performing main compilation...

fatal error CS0008: Unexpected error reading metadata from file 'C:\Inetpub\wwwroot\GofBiz\manage\loaddata1.aspx.cs' -- 'Unspecified error '

Build complete -- 1 errors, 0 warnings

Building satellite assemblies...

===

It had been working without problem before I got this error. And the file indicated
in the error hasn't been touched for days.

Would you please give me some help? I am stuck here.

Thank you

hb
 
S

Steven Cheng[MSFT]

Hi Hb,


Thanks for posting in the community!
From your description, you encountered the "fatal error CS0008: Unexpected
error reading ....." when rebuiled a certain ASP.NET web application. Also,
the error occured when the VS.NET dealing with a certain page's codebehind
cs file which hasn't been touched for days, yes?
If there is anything I misunderstood, please feel free to let me know.

As for this problem, would you please try the following steps:
1. Have you tried restart the IIS server or reboot the machine to see
whether it helps?

2. Does any other web app projects or even a new project have the same
problem? If not, the problem may focus on the certain project.

3. If we can confirm the problem on the particular project, would you
please try remove the certain page(its codebehind cs file with the error)
and then rebuild the project to see whether the problem remains.

I don't think it will be a serious problem if you haven't made any
particular modifications on the project. Please check out the above items.
If you got any further infos or have any new findings , please feel free to
post here.



Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
H

hb

Hi, Steven,

I read a post on a MS forum saying that the error sometimes occurs when
try to BUILD the project and the REBUILD recompile the project without
error. But the author didn't know the cause of the fatal error.

I tried REBUILD, it worked. Then I tried BUILD again, it worked as well.

I got the similar error once when I was working with VS.Net 2002. I guess
it might be a issue in VS.Net or compiler.

Thank you for your help!

hb
 
S

Steven Cheng[MSFT]

Hi Hb,


Thanks for your followup. From your further infos, I also agree with you
that this problem is likely due to IDE. Maybe there's something incorrect
with the files' synthronism sometimes. Since it is hard to repro, I'm not
sure whether there is a known issue on this. Anyway, thank you again for
noticing us this problem and I'm sorry for any inconvenience bing to you.


Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top