473,385 Members | 1,384 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

MSScript control problem...

I have several vb.net apps that use the MSScript control to provide
basic scripting. On one machine in particular, these apps refuse to
start, stating:

An Unhandled exception of type 'System.IO.FileNotFoundException'
occurred in MyApp.exe
Additional information: File or assembly name AxInterop.MSScriptControl,
or one of its dependencies, was not found.

Although the entire app directory contains everything, including the
script control, the app bombs with this error only on one machine out of
several. How can I check to see what dependencies the MSScript control
needs, and narrow down my search for problems?

-Sam
Nov 20 '05 #1
4 3255
* us**@domain.invalid scripsit:
I have several vb.net apps that use the MSScript control to provide
basic scripting. On one machine in particular, these apps refuse to
start, stating:
An Unhandled exception of type 'System.IO.FileNotFoundException'
occurred in MyApp.exe

Additional information: File or assembly name
AxInterop.MSScriptControl, or one of its dependencies, was not found.
Although the entire app directory contains everything, including the
script control, the app bombs with this error only on one machine out
of several. How can I check to see what dependencies the MSScript
control needs, and narrow down my search for problems?


Are you sure the control is properly registered on the computer? It's a
COM component, so run "REGASM.EXE".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Herfried K. Wagner [MVP] wrote:
Are you sure the control is properly registered on the computer? It's a
COM component, so run "REGASM.EXE".

Actually, I left out a bit of info: The app is stored on a linux server,
although it is "run" from a windows box. The app's entire install was
"moved" from a window box to a linux server, which worked perfectly. The
exe is seen from the windows machine, and run from there. We recently
purchased a new linux server, nearly identical to the first, and when
the app was moved this problem began. If we move it back, it runs fine.
We're at a loss as to why it only fails on the second linux server.
There are no other apps or ocxs or anything on the first linux box.

The app does run fine locally on the windows box as well.

This is quite the mystery.....
Nov 20 '05 #3
* us**@domain.invalid scripsit:
Actually, I left out a bit of info: The app is stored on a linux
server, although it is "run" from a windows box. The app's entire
install was "moved" from a window box to a linux server, which worked
perfectly. The exe is seen from the windows machine, and run from
there. We recently purchased a new linux server, nearly identical to
the first, and when the app was moved this problem began. If we move
it back, it runs fine. We're at a loss as to why it only fails on the
second linux server. There are no other apps or ocxs or anything on
the first linux box.


Just for clarification: You try to run the app on a Windows machine,
but the app is physically placed on a Lin*x machine? You will still
have to run "REGASM" for the Script Control.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4
Herfried K. Wagner [MVP] wrote:
Just for clarification: You try to run the app on a Windows machine,
but the app is physically placed on a Lin*x machine? You will still
have to run "REGASM" for the Script Control.

Correct. Hm....I guess I was thinking that the local registration of the
scriptcontrol was enough.

Okay, I successfully registered the first file with
regasm \\linuxserver\Interop.MSScriptControl.dll

and tried the second file with

regasm \\linuxserver\AxInterop.MSScriptControll.dll

but it failed with the error:

RegAsm error: File or assembly name Interop.MSScriptControll, or one of
its dependencies, was not found.

A similiar error to the original problem.....is there a way to list what
these dependencies might be?
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Svenn-Ivar Svendsen | last post by:
I'm implementing a windows application with generic support for scripting, and I'm using the microsoft script control (msscript). For vbscript/jscript I'm happy, but with python I got problems...
11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tiamat | last post by:
Hello, I am having a problem using msscript.ocx with C# VS2005 and DateTime objects, specifically the method 'AddObject'. I have added a reference to the control and below illustrates the issue: ...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
2
by: Udi | last post by:
Hi all, Does anyone know if there's an MSScript.ocx ready for 64 bits? My (WinForm) application fails to load on 64 bit due to the fact the ocx is compied to 32 bits. The thing is, my...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.