473,395 Members | 2,798 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,395 software developers and data experts.

Compiler Error Message: CS0006



We suddenly got a mysterious error message on our Windows Server 2003 (SP1)
after rolling out a bug fix on a web services application this morning. The
application compiles and runs fine on the development workstation (from vs
2005 on Windows XP Pro), but when I run "Copy Web Site..." to move the app
out from VS to the server, then all accesses to the web service via a
browser show this error message: "Compiler Error Message: CS0006: Metadata
file" .... "System.EnterpriseServices.dll' could not be found". (Full
error is pasted below.)

I cannot find any references to this error on MS websites or knowledgebase.
I have found several newsgroup references elsewhere stating that you need to
place the DLL into the GAC. But from what I can tell, this
EnterpriseServices DLL is a .NET assembly that is inherently already in the
GAC. (And I looked on the server, and it is present in /windows/assembly.)
Also, several posting say to remove "<identity impersonate="true" />" from
web.config, but we have no such line in ours.

Any recommendations? It's urgent for us.

Thanks,

Bruce

------------------------------------------------------------

Server Error in '/ws0200' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0006: Metadata file
'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServi ces\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseSer vices.dll'
could not be found

Source Error:

[No relevant source lines]

Source File: Line: 0

Show Detailed Compiler Output:

c:\windows\system32\inetsrv>
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc .exe" /t:library
/utf8output
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\ 2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0_ _b77a5c561934e089\System.Data.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0 .0.0__b03f5f7f11d50a3a\System.Drawing.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__ b03f5f7f11d50a3a\System.Web.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b7 7a5c561934e089\System.dll"
/R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\m scorlib.dll"
/R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseSer vices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseS ervices.dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configurati on\2.0.0.0__b03f5f7f11d50a3a\System.Configuration. dll"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Service s\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dl l"
/R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0 __b77a5c561934e089\System.Xml.dll"
/out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 \Temporary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.d ll" /D:DEBUG /debug+
/optimize- /w:4 /nowarn:1659;1699
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.1 0.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.3 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.2 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.1 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.0 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.7 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.6 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.9 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.5 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.8 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.4 .cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.1 1.cs"
"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Tem porary ASP.NET
Files\ws0200\ea7bc2bc\ba7084cf\App_Code.kdys5pgv.1 2.cs"

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42

for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727

Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

error CS0006: Metadata file
'C:\WINDOWS\assembly\GAC_32\System.EnterpriseServi ces\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseSer vices.dll'
could not be found

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
Aug 4 '06 #1
1 4105
Hello Bruce,

Nice to see you again and how are you doing?

Regarding on the error message you mentioned, it seems the ASP.NET runtime
failed to locate the System.EnterpriseServices.dll metadata assembly from
the following loatino:

"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServi ces\2.0.0.0__b03f5f7f11d50
a3a\"

Based on my experience, this is likely a machine specific issue. Have you
tried deploying the web application on other webserver machine to see
whether it also suffers this issue?

I've done some research in our internal database and found some former
cases that have the similar symptom as yours. In those cases, the problem
machine's GAC_32 seems has been corrupted(or not installed well) and the
System.EnterpriseServices.dll assembly is not in the expected location(as
above).

To verify this, you can start the commandline prompt(cmd.exe) on the
problem server machine and navigate to the following directory:

C:\WINDOWS\assembly\GAC_32\System.EnterpriseServic es\2.0.0.0__b03f5f7f11d50a
3a\

After that use "dir" command to see whether the
System.EnterpriseServices.dll assembly is in it. If the assembly does be
missing, you can manually copy a valid copy into it. You can find a copy of
the "System.EnterpriseServices.dll" in the following location:
C:\Windows\Microsoft.NET\Framework\v2.0.50727

After you have copied the assembly, you can test the web application again
to see whether it works.

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to

http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial

response from the community or a Microsoft Support Engineer within 1
business day is

acceptable. Please note that each follow up response may take approximately
2 business days

as the support professional working with you may need further investigation
to reach the

most efficient resolution. The offering is not appropriate for situations
that require

urgent, real-time or phone-based interactions or complex project analysis
and dump analysis

issues. Issues of this nature are best handled working with a dedicated
Microsoft Support

Engineer by contacting Microsoft Customer Support Services (CSS) at

http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 7 '06 #2

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

Similar topics

1
by: Shivonne | last post by:
Hi all I am trying to compile a DLL from the command line but I need to include one of the web references. My command line is as follows: csc /t:library...
2
by: Kit Ewbank | last post by:
I'm trying to reference an assembly in a directory which has a space in its name. When I use the VS.NET 2003 csc's /lib option with quotes around the directory name (e.g. /reference:Fred.dll...
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: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
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...
3
by: Steven Berkovitz | last post by:
I have a common problem with just about every ASP.NET web app I've ever developed. Randomly after compiling a project, I will get a CS0006 compiler error with the following description: ...
2
by: clintonG | last post by:
Compiler Error Message: CS0006: Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\MyProjectName\331c872a\fd27ed37\App_Code.wg0_ken7.dll' could not be found ...
1
by: Giulio Petrucci | last post by:
Good morning everybody, I have been dealing with this strange issue for almost two days: I got stuck and I can't get out of it. I built up for the first time in my life (I'm quite new in stuff...
2
by: Rob Williams | last post by:
Hi I'm getting the CS0006 compiler error in my asp.net 2.0 web project everytime I make any uncompiled change to the app. Compiled changes are fine as the web site is rebuilt, but if I for...
0
by: gmsieling | last post by:
We're getting compiler error CS0006, with increasing frequency. It says that a randomly named DLL was not found. This happens at random intervals when you try to run the application. We're using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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,...

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.