Y
Yan-Hong Huang[MSFT]
Hello Geir,
Thanks for posting in the group.
Based on my experience, the error CS0006 occurs when we are using xxx.dll.
However, this dll with the correct version is not found inthe bin directory
or GAC. From the error message, we could also see that the runtime is
looking for a dll that belongs to the application, but cannot find it.
Please try the following methods first to see if it helps:
1) Restart IIS.
2) Rebuild the whole solution rather than just a build.
3) Put the assembly DLL into GAC and test to see if the problem happens.
If the problem is still not resolved, could you please provide the
following information?
1) Which type of project are you developing? ASP.NET web app or ASP.NET web
service app?
2) Which type of DLL are you using? A signed assmbly, a private strong name
assembly or just a normal assembly?
3) Any detailed info on the project reference structure and repro steps are
also appreciated.
Hope that helps.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "Geir Sanne" <[email protected]>
!Sender: "Geir Sanne" <[email protected]>
!Subject: CS0006: Metadata file could not be found
!Date: Tue, 14 Oct 2003 06:00:22 -0700
!Lines: 110
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOSUyCN/4WmEjitQH64djuOPe/rhQ==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:183968
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Why cant asp.net find the .dll-files ?
!When i compile in vs.net it compiles fine.
!its only when i run the web-service that it complains
!about the missing files..
!the .dll-files are placed under the web-service folder and
!ive added ref to all .dll-files.
!when i compile the .dll-files are copied to the bin-
!directory under the web-service.
!--------------------------------------------------
!
!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:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.da.dll'
!could not be found
!
!Source Error:
!
!
!
![No relevant source lines]
!
!
!Source File: Line: 0
!
!
!
!Show Detailed Compiler Output:
!
!
!C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4
!322
!\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\
!system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:
!"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089
!\system.dll" /R:"c:\winnt\assembly\gac\system.web.services\
!1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c
!:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301
!\opcrcw.da.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.50
!00.0__b77a5c561934e089
!\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.
!4322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\cc2f1cde\80afc847_d291c301
!\opc.da.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
!\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\91dfbd4d\80afc847_d291c301
!\opc.xmlda.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4
!322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\55a566ba\80afc847_d291c301
!\opccom.da.dll" /R:"c:\winnt\assembly\gac\system.web.mobile
!\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:
!\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
!files\petroonlineservices\de6cbda5\de9d93a7\assembly\dl2
!\abcab0b9\7cb48197_4f92c301
!\dataservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.
!1.4322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\00e75a1b\80afc847_d291c301
!\opcrcw.comn.dll" /R:"c:\winnt\assembly\gac\system.drawing\
!1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\win
!nt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089
!\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpri
!seservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterprisese
!rvices.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
!\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\d6be746e\cc8a5e99_4f92c301
!\petroonlineservices.dll" /R:"c:\winnt\microsoft.net\framew
!ork\v1.1.4322
!\mscorlib.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.
!4322\Temporary ASP.NET Files\petroonlineservices\de6cbda5
!\de9d93a7\qeofpcat.dll" /DEBUG /debug+ /optimize-
! /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.1.
!4322\Temporary ASP.NET Files\petroonlineservices\de6cbda5
!\de9d93a7\qeofpcat.0.cs"
!
!
!Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
!for Microsoft (R) .NET Framework version 1.1.4322
!Copyright (C) Microsoft Corporation 2001-2002. All rights
!reserved.
!
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.da.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\cc2f1cde\80afc847_d291c301\opc.da.dll' could
!not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\55a566ba\80afc847_d291c301\opccom.da.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\00e75a1b\80afc847_d291c301\opcrcw.comn.dll'
!could not be found
!
!
!
!
Thanks for posting in the group.
Based on my experience, the error CS0006 occurs when we are using xxx.dll.
However, this dll with the correct version is not found inthe bin directory
or GAC. From the error message, we could also see that the runtime is
looking for a dll that belongs to the application, but cannot find it.
Please try the following methods first to see if it helps:
1) Restart IIS.
2) Rebuild the whole solution rather than just a build.
3) Put the assembly DLL into GAC and test to see if the problem happens.
If the problem is still not resolved, could you please provide the
following information?
1) Which type of project are you developing? ASP.NET web app or ASP.NET web
service app?
2) Which type of DLL are you using? A signed assmbly, a private strong name
assembly or just a normal assembly?
3) Any detailed info on the project reference structure and repro steps are
also appreciated.
Hope that helps.
Best regards,
Yanhong Huang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!Content-Class: urn:content-classes:message
!From: "Geir Sanne" <[email protected]>
!Sender: "Geir Sanne" <[email protected]>
!Subject: CS0006: Metadata file could not be found
!Date: Tue, 14 Oct 2003 06:00:22 -0700
!Lines: 110
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcOSUyCN/4WmEjitQH64djuOPe/rhQ==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:183968
!NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Why cant asp.net find the .dll-files ?
!When i compile in vs.net it compiles fine.
!its only when i run the web-service that it complains
!about the missing files..
!the .dll-files are placed under the web-service folder and
!ive added ref to all .dll-files.
!when i compile the .dll-files are copied to the bin-
!directory under the web-service.
!--------------------------------------------------
!
!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:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.da.dll'
!could not be found
!
!Source Error:
!
!
!
![No relevant source lines]
!
!
!Source File: Line: 0
!
!
!
!Show Detailed Compiler Output:
!
!
!C:\WINNT\system32> "c:\winnt\microsoft.net\framework\v1.1.4
!322
!\csc.exe" /t:library /utf8output /R:"c:\winnt\assembly\gac\
!system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll" /R:
!"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c561934e089
!\system.dll" /R:"c:\winnt\assembly\gac\system.web.services\
!1.0.5000.0__b03f5f7f11d50a3a\system.web.services.dll" /R:"c
!:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301
!\opcrcw.da.dll" /R:"c:\winnt\assembly\gac\system.xml\1.0.50
!00.0__b77a5c561934e089
!\system.xml.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.
!4322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\cc2f1cde\80afc847_d291c301
!\opc.da.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
!\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\91dfbd4d\80afc847_d291c301
!\opc.xmlda.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4
!322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\55a566ba\80afc847_d291c301
!\opccom.da.dll" /R:"c:\winnt\assembly\gac\system.web.mobile
!\1.0.5000.0__b03f5f7f11d50a3a\system.web.mobile.dll" /R:"c:
!\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net
!files\petroonlineservices\de6cbda5\de9d93a7\assembly\dl2
!\abcab0b9\7cb48197_4f92c301
!\dataservices.dll" /R:"c:\winnt\microsoft.net\framework\v1.
!1.4322\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\00e75a1b\80afc847_d291c301
!\opcrcw.comn.dll" /R:"c:\winnt\assembly\gac\system.drawing\
!1.0.5000.0__b03f5f7f11d50a3a\system.drawing.dll" /R:"c:\win
!nt\assembly\gac\system.data\1.0.5000.0__b77a5c561934e089
!\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpri
!seservices\1.0.5000.0__b03f5f7f11d50a3a\system.enterprisese
!rvices.dll" /R:"c:\winnt\microsoft.net\framework\v1.1.4322
!\temporary asp.net files\petroonlineservices\de6cbda5
!\de9d93a7\assembly\dl2\d6be746e\cc8a5e99_4f92c301
!\petroonlineservices.dll" /R:"c:\winnt\microsoft.net\framew
!ork\v1.1.4322
!\mscorlib.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v1.1.
!4322\Temporary ASP.NET Files\petroonlineservices\de6cbda5
!\de9d93a7\qeofpcat.dll" /DEBUG /debug+ /optimize-
! /warnaserror /w:1 "C:\WINNT\Microsoft.NET\Framework\v1.1.
!4322\Temporary ASP.NET Files\petroonlineservices\de6cbda5
!\de9d93a7\qeofpcat.0.cs"
!
!
!Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
!for Microsoft (R) .NET Framework version 1.1.4322
!Copyright (C) Microsoft Corporation 2001-2002. All rights
!reserved.
!
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.da.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\cc2f1cde\80afc847_d291c301\opc.da.dll' could
!not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\55a566ba\80afc847_d291c301\opccom.da.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\00e75a1b\80afc847_d291c301\opcrcw.comn.dll'
!could not be found
!
!
!
!