File or assembly name AxInterop.SHDocVw ... was not found

G

Guest

I created a class library that has Microsoft Web browser ActiveX component. I
am using this class library from a COM client -javascript command

var mycomponent = new ActiveXObject("ShowTrans.ShowTrans");
....
mycomponent.ShowText(tex);

I am getting this error message:
File or assembly name AxInterop.SHDocVw, or one of its dependencies, was not
found.

Any suggestions?
 
N

Nicholas Paldino [.NET/C# MVP]

Jurate,

When you use the WebBrowser control, you need to distributed the
AxInterop.SHDocVw.dll assembly with your application, as this is the
assembly that provides the Runtime Callable Wrapper for the web browser
ActiveX control. It should be in the output directory of your application
when you build it.

Hope this helps.
 
G

Guest

Thank you for the quick reply, but AxInterop.SHDocVw.dll is in output
directory.
Additional information: I have given strong name to my class library and
registered with regasm to create com object.
When you use the WebBrowser control, you need to distributed the
AxInterop.SHDocVw.dll assembly with your application, as this is the
assembly that provides the Runtime Callable Wrapper for the web browser
ActiveX control. It should be in the output directory of your application
when you build it.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
I created a class library that has Microsoft Web browser ActiveX component.
I
am using this class library from a COM client -javascript command

var mycomponent = new ActiveXObject("ShowTrans.ShowTrans");
...
mycomponent.ShowText(tex);

I am getting this error message:
File or assembly name AxInterop.SHDocVw, or one of its dependencies, was
not
found.
 
N

Nicholas Paldino [.NET/C# MVP]

Jurate,

Are you getting this when you run from within the IDE, or when you are
running the app itself?

Also, are you sure IE is installed (it most likely is, but you never
know)?

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

Jurate said:
Thank you for the quick reply, but AxInterop.SHDocVw.dll is in output
directory.
Additional information: I have given strong name to my class library and
registered with regasm to create com object.
When you use the WebBrowser control, you need to distributed the
AxInterop.SHDocVw.dll assembly with your application, as this is the
assembly that provides the Runtime Callable Wrapper for the web browser
ActiveX control. It should be in the output directory of your
application
when you build it.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
I created a class library that has Microsoft Web browser ActiveX
component.
I
am using this class library from a COM client -javascript command

var mycomponent = new ActiveXObject("ShowTrans.ShowTrans");
...
mycomponent.ShowText(tex);

I am getting this error message:
File or assembly name AxInterop.SHDocVw, or one of its dependencies,
was
not
found.
 
N

Nicholas Paldino [.NET/C# MVP]

Jurate,

Then I would guess that the interop assembly is not in the directory
where your program assembly is located. You might want to try turning on
the fusion log (there is a utility in the framework version directory), and
then running it again, and examining the log.


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

Jurate said:
I am running app itself and IE is installed.
 

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