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.
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.