473,598 Members | 3,252 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Enterpr iseServices.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
EnterpriseServi ces 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="tr ue" />" 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\ass embly\GAC_32\Sy stem.Enterprise Services\2.0.0. 0__b03f5f7f11d5 0a3a\System.Ent erpriseServices .dll'
could not be found

Source Error:

[No relevant source lines]

Source File: Line: 0

Show Detailed Compiler Output:

c:\windows\syst em32\inetsrv>
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\csc.exe" /t:library
/utf8output
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System.Web.Mo bile\2.0.0.0__b 03f5f7f11d50a3a \System.Web.Mob ile.dll"
/R:"C:\WINDOWS\a ssembly\GAC_32\ System.Data\2.0 .0.0__b77a5c561 934e089\System. Data.dll"
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System.Drawin g\2.0.0.0__b03f 5f7f11d50a3a\Sy stem.Drawing.dl l"
/R:"C:\WINDOWS\a ssembly\GAC_32\ System.Web\2.0. 0.0__b03f5f7f11 d50a3a\System.W eb.dll"
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System\2.0.0. 0__b77a5c561934 e089\System.dll "
/R:"C:\WINDOWS\M icrosoft.NET\Fr amework\v2.0.50 727\mscorlib.dl l"
/R:"C:\WINDOWS\a ssembly\GAC_32\ System.Enterpri seServices\2.0. 0.0__b03f5f7f11 d50a3a\System.E nterpriseServic es.dll"
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System.Config uration\2.0.0.0 __b03f5f7f11d50 a3a\System.Conf iguration.dll"
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System.Web.Se rvices\2.0.0.0_ _b03f5f7f11d50a 3a\System.Web.S ervices.dll"
/R:"C:\WINDOWS\a ssembly\GAC_MSI L\System.Xml\2. 0.0.0__b77a5c56 1934e089\System .Xml.dll"
/out:"C:\WINDOWS \Microsoft.NET\ Framework\v2.0. 50727\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.dll" /D:DEBUG /debug+
/optimize- /w:4 /nowarn:1659;169 9
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.10.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.3.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.2.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.1.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.0.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.7.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.6.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.9.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.5.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.8.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.4.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.11.cs"
"C:\WINDOWS\Mic rosoft.NET\Fram ework\v2.0.5072 7\Temporary ASP.NET
Files\ws0200\ea 7bc2bc\ba7084cf \App_Code.kdys5 pgv.12.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\ass embly\GAC_32\Sy stem.Enterprise Services\2.0.0. 0__b03f5f7f11d5 0a3a\System.Ent erpriseServices .dll'
could not be found

Version Information: Microsoft .NET Framework Version:2.0.507 27.42; ASP.NET
Version:2.0.507 27.42
Aug 4 '06 #1
1 4131
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.Enterpri seServices.dll metadata assembly from
the following loatino:

"C:\WINDOWS\ass embly\GAC_32\Sy stem.Enterprise Services\2.0.0. 0__b03f5f7f11d5 0
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.Enterpri seServices.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\asse mbly\GAC_32\Sys tem.EnterpriseS ervices\2.0.0.0 __b03f5f7f11d50 a
3a\

After that use "dir" command to see whether the
System.Enterpri seServices.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.Enterpr iseServices.dll " in the following location:
C:\Windows\Micr osoft.NET\Frame work\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
3274
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 /r:System.dll,System.Web.dll,system.xml.dll,bin\Debug\Pub.dll,bin\Debug\ErrorClient.dll,Web References\CService\Reference.cs VarEmitter.cs The above gives me the following error: error CS2001: Source file 'References\CService\Reference.cs' could not be
2
4179
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 /lib:"A Directory"), it fails to find the assembly (error CS0006: Metadata file 'Fred.dll' could not be found). If I remove the quotes and the space in the directory name, all is OK. If I remove the space in the directory name but don't remove the...
1
472
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 solution or deleted the VsWebcache to get rid of this error I suspect this error is related to that we strong named several assemblies for using queued components in NET EnterpriseServices. In development environment, we did not install those...
2
1931
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 files\spsweb\0e3514bf\cb1844e7\assembly\dl2\3b163f 16\00452d31_84e5c301\infragistics.webui.ultrawebgrid.v3.dll' could not be found
4
5406
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 have trawled the web and the few that have the same error have not being provided a fix. This error occurs if i make the slightest change in my project. If i REBUILD my project no error occurs. So i keep having to rebuild my project - this is not...
3
2013
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: Compiler Error Message: CS0006: Metadata file 'c:\windows\microsoft.net\framework\v1.1.4322\temporary asp.net files\mbccs\544aefc6\a95796a7\assembly\dl2\11dbf13d\35abbe2b_537bc501\.dll' could not be found. Restarting IIS or a rebuild-all will solve...
2
3480
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 That's the only error I get when VS2005 goes boom. This is really bugging me big time as I often have to reboot several times a day because VS2005 will not compile the page and locks the directory where the temporary files are
1
3057
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 like .NET, C#, Visual Studio, windows programming and so on...) a Windows Service. Debugging it in Visual Studio (Express Edition) everything worked fine, but debugging it "live" I found a strange behaviour. My application must dynamically compile...
2
1508
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 example add a space to an aspx, them I get a compiler error saying a temporary internet file could not be found, always from the App_Code directory. I've seen this before but this time it is none of the usual suspects. We're not using impersonation,...
0
4579
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 webserver that comes with VS to run our web app. VS 2005 SP1 didn't fix this, and the only way I know to get around it is to close VS and delete the temporary ASP.NET files. Is there anything easier we can do? Server Error in '/' Application....
0
8392
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8397
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8050
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8264
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3897
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3939
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2412
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 we have to send another system

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.