fatal error CS0009: Metadata file

G

Guest

You'll have to excuse me if I don't know what I'm talking about, but I'm new to webservices. I'm attempting to compile a C# file with csc /r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is in a using statement in the file 'using dmcorex;'. After running this I get the following error:

'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 
N

Nicholas Paldino [.NET/C# MVP]

Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it is a COM
dll, then you will have to create an interop assembly and reference that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
You'll have to excuse me if I don't know what I'm talking about, but I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is
in a using statement in the file 'using dmcorex;'. After running this I get
the following error:
 
N

Nicholas Paldino [.NET/C# MVP]

Dave,

I think that the DMCOREEX.dll is a COM dll. When calling csc.exe, make
the reference to Interop.DMCOREX.dll, and it should work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Thanks for your info. I guess I'm still trying to figure out terminology
so I'm don't know what a managed assembly is or what a com dll is. I'm
currently am trying to learn more about VS.Net by working in Visual Web
Developer 2005 Express Edition Beta until we get a purchased VS.NET program.
I do think I created an interop assembly (right clicked on project - 'add
references'). In the solutions explorer I can see a 'Bin' folder containing
what seems to be a network symbol followed by 'Interop.DMCOREX.dll'. Is
that what you were talking about? Anyway I still get the error message.
The dmcorex.dll is an API (Onbase Document retrieval) that I access to
call functions in them that returns document lists and documents themselves.
So is that a COM dll?
What exactly is a COM dll?

Please bear with me. I'm very much of novice with VB, C# and web services technology.

Thanks again - I appreciate it,
Dave

Nicholas Paldino said:
Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it is a COM
dll, then you will have to create an interop assembly and reference that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
You'll have to excuse me if I don't know what I'm talking about, but
I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is
in a using statement in the file 'using dmcorex;'. After running this I get
the following error:
'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 
G

Guest

Hi Nicholas,

I used the following command:
csc /r:Interop.DMCOREX.dll C:\InetPub\wwwroot\asptest\mtm\OBif.cs
and got a new message:
error CS0006: Metadata file 'Interop.DMCOREX.dll' could not be found

This Interop is in the Bin directory in the same directory as the cs file. That didn't work so I copied into the same directory just in case it was a path thing. It still didn't work. Is there something wrong with my command line?

Thanks again,
Dave


Nicholas Paldino said:
Dave,

I think that the DMCOREEX.dll is a COM dll. When calling csc.exe, make
the reference to Interop.DMCOREX.dll, and it should work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Thanks for your info. I guess I'm still trying to figure out terminology
so I'm don't know what a managed assembly is or what a com dll is. I'm
currently am trying to learn more about VS.Net by working in Visual Web
Developer 2005 Express Edition Beta until we get a purchased VS.NET program.
I do think I created an interop assembly (right clicked on project - 'add
references'). In the solutions explorer I can see a 'Bin' folder containing
what seems to be a network symbol followed by 'Interop.DMCOREX.dll'. Is
that what you were talking about? Anyway I still get the error message.
The dmcorex.dll is an API (Onbase Document retrieval) that I access to
call functions in them that returns document lists and documents themselves.
So is that a COM dll?
What exactly is a COM dll?

Please bear with me. I'm very much of novice with VB, C# and web services technology.

Thanks again - I appreciate it,
Dave

Nicholas Paldino said:
Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it is a COM
dll, then you will have to create an interop assembly and reference that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

You'll have to excuse me if I don't know what I'm talking about, but I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex is
in a using statement in the file 'using dmcorex;'. After running this I get
the following error:

'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 
N

Nicholas Paldino [.NET/C# MVP]

Dave,

I would try to specify the full path of the interop assembly.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Hi Nicholas,

I used the following command:
csc /r:Interop.DMCOREX.dll C:\InetPub\wwwroot\asptest\mtm\OBif.cs
and got a new message:
error CS0006: Metadata file 'Interop.DMCOREX.dll' could not be found

This Interop is in the Bin directory in the same directory as the cs file.
That didn't work so I copied into the same directory just in case it was a
path thing. It still didn't work. Is there something wrong with my command
line?
Thanks again,
Dave


Nicholas Paldino said:
Dave,

I think that the DMCOREEX.dll is a COM dll. When calling csc.exe, make
the reference to Interop.DMCOREX.dll, and it should work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Thanks for your info. I guess I'm still trying to figure out
terminology
so I'm don't know what a managed assembly is or what a com dll is. I'm
currently am trying to learn more about VS.Net by working in Visual Web
Developer 2005 Express Edition Beta until we get a purchased VS.NET program.
I do think I created an interop assembly (right clicked on project - 'add
references'). In the solutions explorer I can see a 'Bin' folder containing
what seems to be a network symbol followed by 'Interop.DMCOREX.dll'. Is
that what you were talking about? Anyway I still get the error message.
The dmcorex.dll is an API (Onbase Document retrieval) that I access to
call functions in them that returns document lists and documents themselves.
So is that a COM dll?
What exactly is a COM dll?

Please bear with me. I'm very much of novice with VB, C# and web
services
technology.
Thanks again - I appreciate it,
Dave

:

Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it
is a
COM
dll, then you will have to create an interop assembly and reference that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

You'll have to excuse me if I don't know what I'm talking about,
but
I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs.
dmcorex
is
in a using statement in the file 'using dmcorex;'. After running
this I
get
the following error:

'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 
G

Guest

Nicholas,

I tried that and am getting the original error message error CS0246.

Thanks,
dave

Nicholas Paldino said:
Dave,

I would try to specify the full path of the interop assembly.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Hi Nicholas,

I used the following command:
csc /r:Interop.DMCOREX.dll C:\InetPub\wwwroot\asptest\mtm\OBif.cs
and got a new message:
error CS0006: Metadata file 'Interop.DMCOREX.dll' could not be found

This Interop is in the Bin directory in the same directory as the cs file.
That didn't work so I copied into the same directory just in case it was a
path thing. It still didn't work. Is there something wrong with my command
line?
Thanks again,
Dave


Nicholas Paldino said:
Dave,

I think that the DMCOREEX.dll is a COM dll. When calling csc.exe, make
the reference to Interop.DMCOREX.dll, and it should work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Thanks for your info. I guess I'm still trying to figure out terminology
so I'm don't know what a managed assembly is or what a com dll is. I'm
currently am trying to learn more about VS.Net by working in Visual Web
Developer 2005 Express Edition Beta until we get a purchased VS.NET program.
I do think I created an interop assembly (right clicked on project - 'add
references'). In the solutions explorer I can see a 'Bin' folder containing
what seems to be a network symbol followed by 'Interop.DMCOREX.dll'. Is
that what you were talking about? Anyway I still get the error message.

The dmcorex.dll is an API (Onbase Document retrieval) that I access to
call functions in them that returns document lists and documents themselves.
So is that a COM dll?
What exactly is a COM dll?

Please bear with me. I'm very much of novice with VB, C# and web services
technology.

Thanks again - I appreciate it,
Dave

:

Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it is a
COM
dll, then you will have to create an interop assembly and reference
that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

You'll have to excuse me if I don't know what I'm talking about, but
I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex
is
in a using statement in the file 'using dmcorex;'. After running this I
get
the following error:

'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 
G

Guest

I should say the the original message I got in full was ' error CS0246: The type or namespace name 'dmcorex' could not be found (are you missing a using directive or
an assembly reference?). This is what I get now when fully qualifying the assembly.

Thanks,
Dave

Nicholas Paldino said:
Dave,

I would try to specify the full path of the interop assembly.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave H said:
Hi Nicholas,

I used the following command:
csc /r:Interop.DMCOREX.dll C:\InetPub\wwwroot\asptest\mtm\OBif.cs
and got a new message:
error CS0006: Metadata file 'Interop.DMCOREX.dll' could not be found

This Interop is in the Bin directory in the same directory as the cs file.
That didn't work so I copied into the same directory just in case it was a
path thing. It still didn't work. Is there something wrong with my command
line?
Thanks again,
Dave


Nicholas Paldino said:
Dave,

I think that the DMCOREEX.dll is a COM dll. When calling csc.exe, make
the reference to Interop.DMCOREX.dll, and it should work.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Thanks for your info. I guess I'm still trying to figure out terminology
so I'm don't know what a managed assembly is or what a com dll is. I'm
currently am trying to learn more about VS.Net by working in Visual Web
Developer 2005 Express Edition Beta until we get a purchased VS.NET program.
I do think I created an interop assembly (right clicked on project - 'add
references'). In the solutions explorer I can see a 'Bin' folder containing
what seems to be a network symbol followed by 'Interop.DMCOREX.dll'. Is
that what you were talking about? Anyway I still get the error message.

The dmcorex.dll is an API (Onbase Document retrieval) that I access to
call functions in them that returns document lists and documents themselves.
So is that a COM dll?
What exactly is a COM dll?

Please bear with me. I'm very much of novice with VB, C# and web services
technology.

Thanks again - I appreciate it,
Dave

:

Dave,

Is DMCOREEX.DLL a managed assembly, or is it a COM dll? If it is a
COM
dll, then you will have to create an interop assembly and reference
that.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

You'll have to excuse me if I don't know what I'm talking about, but
I'm
new to webservices. I'm attempting to compile a C# file with csc
/r:dmcorex.dll C:\InetPub\wwwroot\asptest\mtm\OBWebSvc.asmx.cs. dmcorex
is
in a using statement in the file 'using dmcorex;'. After running this I
get
the following error:

'c:\WINNT\Microsoft.NET\Framework\v2.0.40607\dmcorex.dll' could not
beopened -- 'There isn't metadata in the memory or stream'

Anyone have any idea what this message means?

Thanks for any help,
Dave
 

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

Top