File or assembly name or one of its dependencies was not found

E

ethan.schofer

I am trying to create a switchboard that opens other .Net applications.
The user selectes the name of the program they want to use from a
listbox, and clicks OK and the .Net .exe opens. It works fine, but then
I tried to set it up on Terminal Services and I get this error:

File or assembly name myprogram.exe or one of it dependencies was not
found.

Here is the code I am using to start up the .exe:

Dim domainInfo As New AppDomainSetup
domainInfo.ApplicationBase = "C:\myPath\"

Dim NewAppDomain As AppDomain
NewAppDomain = AppDomain.CreateDomain("myDomain",
Nothing, domainInfo)

Dim rVal As Integer
rVal = NewAppDomain.ExecuteAssembly("myProgram.exe")

I am using VS .Net 2003 and running on the .Net Framework 1.1.
 
S

singhhome

try .NET Assembly binding log view tool, fuslogvw.exe .
Launch this tool, and then start your code.
After u get the error, check in the fuslogvw an entry for
myprogram.exe. Double click it to see details, why it could not find
assembly.

Regards,
 

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