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

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
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.
 
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.
 
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.
 
Back
Top