471,627 Members | 1,590 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

com interop v2003


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?
Jan 26 '06 #1
5 2541

"E.Sh" <ES*@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
|
| 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.

Jan 26 '06 #2
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:

"E.Sh" <ES*@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
|
| 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.

Jan 26 '06 #3
What exactly are you trying to do in this component? You aren't using the
webrowser control do you?

Willy.

"E.Sh" <ES*@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
| 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:
|
| >
| > "E.Sh" <ES*@discussions.microsoft.com> wrote in message
| > news:52**********************************@microsof t.com...
| > |
| > | 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.
| >
| >
| >
| >
Jan 27 '06 #4
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.InterfaceIsIDispatc h)]
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.

"E.Sh" <ES*@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
| 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:
|
| >
| > "E.Sh" <ES*@discussions.microsoft.com> wrote in message
| > news:52**********************************@microsof t.com...
| > |
| > | 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.
| >
| >
| >
| >

Jan 27 '06 #5
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.
"E.Sh" <ES*@discussions.microsoft.com> wrote in message
news:54**********************************@microsof t.com...
| 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.InterfaceIsIDispatc h)]
| 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.
| >
| > "E.Sh" <ES*@discussions.microsoft.com> wrote in message
| > news:A6**********************************@microsof t.com...
| > | 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:
| > |
| > | >
| > | > "E.Sh" <ES*@discussions.microsoft.com> wrote in message
| > | > news:52**********************************@microsof t.com...
| > | > |
| > | > | 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.
| > | >
| > | >
| > | >
| > | >
| >
| >
| >
Jan 27 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by roy | last post: by
reply views Thread by roy | last post: by
reply views Thread by keefah | last post: by
reply views Thread by lacour | last post: by
8 posts views Thread by Rob Edwards | last post: by
7 posts views Thread by R Reyes | last post: by
reply views Thread by Tina | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.