com interop v2003

G

Guest

I am using c# in v2003.
created cominterop. running on the development computer, no problem to
access it via COM.

when trying to install it on a w2k server:
1. regasm /codebase .tlb: , OK.
2. gacutil /i. OK.
3. Oleview displays it. bur create instance fails with 'can not find file".

What can be wrong?
What are the right steps to install it?
What are the debugging tools?
 
W

Willy Denoyette [MVP]

|
| I am using c# in v2003.
| created cominterop. running on the development computer, no problem to
| access it via COM.
|
| when trying to install it on a w2k server:
| 1. regasm /codebase .tlb: , OK.
| 2. gacutil /i. OK.
| 3. Oleview displays it. bur create instance fails with 'can not find
file".
|
| What can be wrong?
| What are the right steps to install it?
| What are the debugging tools?

Is this an Oleview error message and is it the complete message?
Are you sure you aren't missing any depencies?

Willy.
 
G

Guest

Depends shows error only on apphelp.dll.
oleview error:
"IClassFactory::CreateInstance failed.
The system cannot find the file specfied.
severity:SEVERITY_ERROR, facility:FACILITY_WIN32 ($80070002)"
 
W

Willy Denoyette [MVP]

What exactly are you trying to do in this component? You aren't using the
webrowser control do you?

Willy.

| Depends shows error only on apphelp.dll.
| oleview error:
| "IClassFactory::CreateInstance failed.
| The system cannot find the file specfied.
| severity:SEVERITY_ERROR, facility:FACILITY_WIN32 ($80070002)"
|
|
| "Willy Denoyette [MVP]" wrote:
|
| >
| > | > |
| > | I am using c# in v2003.
| > | created cominterop. running on the development computer, no problem to
| > | access it via COM.
| > |
| > | when trying to install it on a w2k server:
| > | 1. regasm /codebase .tlb: , OK.
| > | 2. gacutil /i. OK.
| > | 3. Oleview displays it. bur create instance fails with 'can not find
| > file".
| > |
| > | What can be wrong?
| > | What are the right steps to install it?
| > | What are the debugging tools?
| >
| > Is this an Oleview error message and is it the complete message?
| > Are you sure you aren't missing any depencies?
| >
| > Willy.
| >
| >
| >
| >
 
G

Guest

It is ISAPI extension written in C++ and calls the .NET part via COM.

The c# part is:

namespace ISAPI_EXT_Net
{
[Guid ("525DC55C-12BF-442f-A44A-64C882E2F226"),
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface IISAPI_ext
{
bool GetStereoFile(string url_in, out string url_out);
bool TestUrl(string url);
}

[Guid ("1309836E-DE0C-4f93-AE9B-DEFBD3531CE3"),
ComSourceInterfaces(typeof(IISAPI_ext))]
public class ISAPIExt : IISAPI_ext
....

Everything is ok on the development environment (Visual 2003 and XP).
The failures to create instance are on the production environment (W2K).
 
W

Willy Denoyette [MVP]

Ok, but this doesn't explain what you are doing in the component.
Apphelp.dll is new for XP and W2K3, so doesn't exists on W2K, what you need
to find out is whether this apphelp.dll is the cause of the 'File not found'
exception. Does "Depends" flags this apphelp.dll as a delay-loaded module?
I would suggest you to run the Filemon utility (www.sysinternals.com) to
find-out which file is't found when creating an instance of the component.
Note also that it's a bad idea to load the CLR in IIS through ISAPI dll's.


Willy.


| It is ISAPI extension written in C++ and calls the .NET part via COM.
|
| The c# part is:
|
| namespace ISAPI_EXT_Net
| {
| [Guid ("525DC55C-12BF-442f-A44A-64C882E2F226"),|
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
| public interface IISAPI_ext
| {
| bool GetStereoFile(string url_in, out string url_out);
| bool TestUrl(string url);
| }
|
| [Guid ("1309836E-DE0C-4f93-AE9B-DEFBD3531CE3"),
| ComSourceInterfaces(typeof(IISAPI_ext))]
| public class ISAPIExt : IISAPI_ext
| ...
|
| Everything is ok on the development environment (Visual 2003 and XP).
| The failures to create instance are on the production environment (W2K).
|
| "Willy Denoyette [MVP]" wrote:
|
| > What exactly are you trying to do in this component? You aren't using
the
| > webrowser control do you?
| >
| > Willy.
| >
| > | > | Depends shows error only on apphelp.dll.
| > | oleview error:
| > | "IClassFactory::CreateInstance failed.
| > | The system cannot find the file specfied.
| > | severity:SEVERITY_ERROR, facility:FACILITY_WIN32 ($80070002)"
| > |
| > |
| > | "Willy Denoyette [MVP]" wrote:
| > |
| > | >
| > | > | > | > |
| > | > | I am using c# in v2003.
| > | > | created cominterop. running on the development computer, no
problem to
| > | > | access it via COM.
| > | > |
| > | > | when trying to install it on a w2k server:
| > | > | 1. regasm /codebase .tlb: , OK.
| > | > | 2. gacutil /i. OK.
| > | > | 3. Oleview displays it. bur create instance fails with 'can not
find
| > | > file".
| > | > |
| > | > | What can be wrong?
| > | > | What are the right steps to install it?
| > | > | What are the debugging tools?
| > | >
| > | > Is this an Oleview error message and is it the complete message?
| > | > Are you sure you aren't missing any depencies?
| > | >
| > | > Willy.
| > | >
| > | >
| > | >
| > | >
| >
| >
| >
 

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