RE: CS0006: Metadata file could not be found

  • Thread starter Yan-Hong Huang[MSFT]
  • Start date
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" /D: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
!
!
!
!
 
G

Geir Sanne

i did gacutil /i filename on all .dll files in the bin-dir under the
web-service and when i recompiled it WORKED.

what i dont understand is why.

ive installed a OPC XML sample code from opcfoundation.org and the
example code works fine and the sample web-service didnt need the
.dll-files put into the gac to work.

all i did was make my own web-service, copy the .dll-files and the
.asmx-files into my web-service.

the .dll-files are .net components that access COM opc .dlls. Does that
mean its signed ?
 
D

David Archuleta

Hi Yan-Hong,

I have the same issue.

my ASP.Net Web App references two dlls that are located in a "/dll"
directory within the web virtual directory. The dlls do include strong
names, but are not added to the GAC. The solution also includes 2 project
references to dlls without strong names. So the overall structure looks
something like:

Project A (ASP.Net web app)
Project Ref to Project B
Project Ref to Project C
Ref to dll1
Ref to dll2
/dll folder
dll1 (strong name) dependant on dll3 and dll4
dll2 (strong name) dependant on dll3 and dll4
dll3 (strong name)
dll4 (strong name)
Project B (code library dll)
Project C (Web Control library dll)


I have found that anytime I change any of the code in Project A, B, or C,
then either Run (F5) or Build then Run, I get the error page described by
Geir.

I can then Rebuild the Solution and Run it and it works fine.
If I add dll1, dll2, dll3, dll4 to the GAC I do not see the problem.

This issue is being seen on other developers machines and after any number
of restarts (iis or computer).

Is this configuration dependant on the GAC?

Thanks,
David Archuleta

Yan-Hong Huang said:
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" /D: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
!
!
!
!
 
Y

Yan-Hong Huang[MSFT]

Hello David,

Based on KB artilce "http://support.microsoft.com/?id=324519", signed
assemblies in the Bin directory are not supported. So placing it in GAC
should be better.

Thanks.

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.

--------------------
!From: "David Archuleta" <[email protected]>
!References: <[email protected]>
<[email protected]>
!Subject: Re: CS0006: Metadata file could not be found
!Date: Wed, 15 Oct 2003 15:28:43 -0400
!Lines: 220
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: host115.wingedfootservices.com 65.218.158.115
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184410
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Hi Yan-Hong,
!
!I have the same issue.
!
!my ASP.Net Web App references two dlls that are located in a "/dll"
!directory within the web virtual directory. The dlls do include strong
!names, but are not added to the GAC. The solution also includes 2 project
!references to dlls without strong names. So the overall structure looks
!something like:
!
!Project A (ASP.Net web app)
! Project Ref to Project B
! Project Ref to Project C
! Ref to dll1
! Ref to dll2
! /dll folder
! dll1 (strong name) dependant on dll3 and dll4
! dll2 (strong name) dependant on dll3 and dll4
! dll3 (strong name)
! dll4 (strong name)
!Project B (code library dll)
!Project C (Web Control library dll)
!
!
!I have found that anytime I change any of the code in Project A, B, or C,
!then either Run (F5) or Build then Run, I get the error page described by
!Geir.
!
!I can then Rebuild the Solution and Run it and it works fine.
!If I add dll1, dll2, dll3, dll4 to the GAC I do not see the problem.
!
!This issue is being seen on other developers machines and after any number
!of restarts (iis or computer).
!
!Is this configuration dependant on the GAC?
!
!Thanks,
!David Archuleta
!
!!> 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" /D: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
!> !
!> !
!> !
!> !
!>
!
!
!
 
Y

Yan-Hong Huang[MSFT]

Hello Geir,

Thanks for the quick response.

Signed assembly here means a strong name assembly. For details on strong
name assembly in .NET framework, please refer to MSDN topic "Strong-Named
Assemblies" at
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconstrong-namedassemb
lies.asp?frame=true.

In ASP.NET, signed(strong name) assemblies in the Bin directory are not
supported. It may cause some unexpected behaviors. (that may explain why
OPC works, since all the behaviors are unexpected here) Please refer to
http://support.microsoft.com/?id=324519> for details. I think the problem
is caused by that. So I suggest you put it in GAC and rebuild the project.

Anyway, I am glad that the problem is gone now. If you have any more
concerns, please feel free to post here. Thanks very much for participating
the community.

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.

--------------------
!From: Geir Sanne <[email protected]>
!References: <[email protected]>
!X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
!Subject: RE: CS0006: Metadata file could not be found
!Mime-Version: 1.0
!Content-Type: text/plain; charset="us-ascii"
!Content-Transfer-Encoding: 7bit
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Date: Wed, 15 Oct 2003 12:23:33 -0700
!NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
!Lines: 1
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184408
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!i did gacutil /i filename on all .dll files in the bin-dir under the
!web-service and when i recompiled it WORKED.
!
!what i dont understand is why.
!
!ive installed a OPC XML sample code from opcfoundation.org and the
!example code works fine and the sample web-service didnt need the
!.dll-files put into the gac to work.
!
!all i did was make my own web-service, copy the .dll-files and the
!.asmx-files into my web-service.
!
!the .dll-files are .net components that access COM opc .dlls. Does that
!mean its signed ?
!
!
!
!Don't just participate in USENET...get rewarded for it!
!
 
Y

Yan-Hong Huang[MSFT]

Hello Geir,

Do you have any more concerns on the issue? If there is any more question,
please feel free to post here.

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

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

--------------------
!From: Geir Sanne <[email protected]>
!References: <[email protected]>
!X-Newsreader: AspNNTP 1.50 (ActionJackson.com)
!Subject: RE: CS0006: Metadata file could not be found
!Mime-Version: 1.0
!Content-Type: text/plain; charset="us-ascii"
!Content-Transfer-Encoding: 7bit
!Message-ID: <[email protected]>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Date: Wed, 15 Oct 2003 12:23:33 -0700
!NNTP-Posting-Host: actionjackson133.dsl.frii.net 216.17.147.133
!Lines: 1
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:184408
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!i did gacutil /i filename on all .dll files in the bin-dir under the
!web-service and when i recompiled it WORKED.
!
!what i dont understand is why.
!
!ive installed a OPC XML sample code from opcfoundation.org and the
!example code works fine and the sample web-service didnt need the
!.dll-files put into the gac to work.
!
!all i did was make my own web-service, copy the .dll-files and the
!.asmx-files into my web-service.
!
!the .dll-files are .net components that access COM opc .dlls. Does that
!mean its signed ?
!
!
!
!Don't just participate in USENET...get rewarded for it!
!
 

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

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top