By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,220 Members | 1,737 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,220 IT Pros & Developers. It's quick & easy.

Need Urgent Help: fatal error CS0008

P: n/a
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.c s' -- '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
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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
"hb" <ho****@goodoffices.com> wrote in message news:%2****************@tk2msftngp13.phx.gbl...
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.c s' -- '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
Nov 18 '05 #2

P: n/a
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

Nov 18 '05 #3

P: n/a
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
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:$u**************@cpmsftngxa07.phx.gbl...
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

Nov 18 '05 #4

P: n/a
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

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.