Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RE: CS0006: Metadata file could not be found

Reply
Thread Tools

RE: CS0006: Metadata file could not be found

 
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      10-15-2003
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! 每 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" <(E-Mail Removed)>
!Sender: "Geir Sanne" <(E-Mail Removed)>
!Subject: CS0006: Metadata file could not be found
!Date: Tue, 14 Oct 2003 06:00:22 -0700
!Lines: 110
!Message-ID: <135801c39253$208d0700$(E-Mail Removed)>
!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\tempor ary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.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.we b.dll" /R:
!"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c5 61934e089
!\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\tempora ry
!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.d ll" /R:"c:
!\winnt\microsoft.net\framework\v1.1.4322\temporar y asp.net
!files\petroonlineservices\de6cbda5\de9d93a7\assem bly\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__b77a5c561 934e089
!\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpri
!seservices\1.0.5000.0__b03f5f7f11d50a3a\system.en terprisese
!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\tempor ary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\cc2f1cde\80afc847_d291c301\opc.da.d ll' could
!not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\55a566ba\80afc847_d291c301\opccom.d a.dll'
!could not be found
!error CS0006: Metadata
!file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!asp.net files\petroonlineservices\de6cbda5\de9d93a7
!\assembly\dl2\00e75a1b\80afc847_d291c301\opcrcw.c omn.dll'
!could not be found
!
!
!
!

 
Reply With Quote
 
 
 
 
Geir Sanne
Guest
Posts: n/a
 
      10-15-2003
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 ?


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
David Archuleta
Guest
Posts: n/a
 
      10-15-2003
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[MSFT]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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! 每 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" <(E-Mail Removed)>
> !Sender: "Geir Sanne" <(E-Mail Removed)>
> !Subject: CS0006: Metadata file could not be found
> !Date: Tue, 14 Oct 2003 06:00:22 -0700
> !Lines: 110
> !Message-ID: <135801c39253$208d0700$(E-Mail Removed)>
> !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\tempor ary
> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
> !\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.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.we b.dll" /R:
> !"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c5 61934e089
> !\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\tempora ry
> !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.d ll" /R:"c:
> !\winnt\microsoft.net\framework\v1.1.4322\temporar y asp.net
> !files\petroonlineservices\de6cbda5\de9d93a7\assem bly\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__b77a5c561 934e089
> !\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpri
> !seservices\1.0.5000.0__b03f5f7f11d50a3a\system.en terprisese
> !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\tempor ary
> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
> !\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.dll'
> !could not be found
> !error CS0006: Metadata
> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
> !\assembly\dl2\cc2f1cde\80afc847_d291c301\opc.da.d ll' could
> !not be found
> !error CS0006: Metadata
> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
> !\assembly\dl2\55a566ba\80afc847_d291c301\opccom.d a.dll'
> !could not be found
> !error CS0006: Metadata
> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
> !\assembly\dl2\00e75a1b\80afc847_d291c301\opcrcw.c omn.dll'
> !could not be found
> !
> !
> !
> !
>



 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      10-16-2003
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! 每 www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "David Archuleta" <(E-Mail Removed)>
!References: <135801c39253$208d0700$(E-Mail Removed)>
<(E-Mail Removed)>
!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: <(E-Mail Removed)>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: host115.wingedfootservices.com 65.218.158.115
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.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
!
!"Yan-Hong Huang[MSFT]" <(E-Mail Removed)> wrote in message
!news:(E-Mail Removed)...
!> 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! 每 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" <(E-Mail Removed)>
!> !Sender: "Geir Sanne" <(E-Mail Removed)>
!> !Subject: CS0006: Metadata file could not be found
!> !Date: Tue, 14 Oct 2003 06:00:22 -0700
!> !Lines: 110
!> !Message-ID: <135801c39253$208d0700$(E-Mail Removed)>
!> !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\tempor ary
!> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
!> !\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.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.we b.dll" /R:
!> !"c:\winnt\assembly\gac\system\1.0.5000.0__b77a5c5 61934e089
!> !\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\tempora ry
!> !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.d ll" /R:"c:
!> !\winnt\microsoft.net\framework\v1.1.4322\temporar y asp.net
!> !files\petroonlineservices\de6cbda5\de9d93a7\assem bly\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__b77a5c561 934e089
!> !\system.data.dll" /R:"c:\winnt\assembly\gac\system.enterpri
!> !seservices\1.0.5000.0__b03f5f7f11d50a3a\system.en terprisese
!> !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\tempor ary
!> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
!> !\assembly\dl2\7010f897\80afc847_d291c301\opcrcw.d a.dll'
!> !could not be found
!> !error CS0006: Metadata
!> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
!> !\assembly\dl2\cc2f1cde\80afc847_d291c301\opc.da.d ll' could
!> !not be found
!> !error CS0006: Metadata
!> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
!> !\assembly\dl2\55a566ba\80afc847_d291c301\opccom.d a.dll'
!> !could not be found
!> !error CS0006: Metadata
!> !file 'c:\winnt\microsoft.net\framework\v1.1.4322\tempor ary
!> !asp.net files\petroonlineservices\de6cbda5\de9d93a7
!> !\assembly\dl2\00e75a1b\80afc847_d291c301\opcrcw.c omn.dll'
!> !could not be found
!> !
!> !
!> !
!> !
!>
!
!
!

 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      10-16-2003
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...ng-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! 每 www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: Geir Sanne <(E-Mail Removed)>
!References: <(E-Mail Removed)>
!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: <(E-Mail Removed)>
!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!TK2MSFTN GP10.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 ?
!
!
!*** Sent via Developersdex http://www.developersdex.com ***
!Don't just participate in USENET...get rewarded for it!
!

 
Reply With Quote
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      10-20-2003
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 <(E-Mail Removed)>
!References: <(E-Mail Removed)>
!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: <(E-Mail Removed)>
!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!TK2MSFTN GP10.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 ?
!
!
!*** Sent via Developersdex http://www.developersdex.com ***
!Don't just participate in USENET...get rewarded for it!
!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error 38 Metadata file 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\website\00fde41c\efd931db\App_Web__cgopktn.dll' could not be found craigkenisston@hotmail.com ASP .Net 1 03-17-2006 05:10 AM
CS0006: Metadata file "../bin/WebApplication1.dll" could not be found John Doe ASP .Net 6 02-12-2005 02:18 PM
CS0006: Metadata file could not be found Oleg Ogurok ASP .Net 0 02-03-2005 05:50 PM
compilation error (Metadata file could not be found) John Smith ASP .Net 0 12-16-2004 09:33 PM
Metadata file could not be found john ASP .Net 0 02-25-2004 04:42 PM



Advertisments