• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 714
  • Last Modified:

.NET script host

is there a scripting host compatible with .NET?
The ActiveX object cannot AddObject a .net control.
And in VS.net there is no component for scripting.
why????
0
Azmodan
Asked:
Azmodan
1 Solution
 
Michel SakrCommented:
ASP.NEt is now a compiled platform.. but you can past pure asp3.0 in your asp.net pages.. it's reverse compatible but not recommended and might not be supported in next releases.. so start developing under .NET using the "new" languages..
0
 
AzmodanAuthor Commented:
no no no
not in ASP or web development is that I need the scripting.
I used the scripting host in VB6 to let the users command some of the control on the interface. It had nothing to do with web development. There was an ocx (script host control - msscript.ocx) that allowed vb controls to be added to it with AddObject and that, by script, I could modify properties of the object/control.

Is there a scripting host that allows integration with .NET?
0
 
tdubroffCommented:
You should be able to tlbimport the msscript.ocx.  This will give you a COM wrapper.  To run code you can do:

dim iscr as MSScriptControl.ScriptControl
iscr = new MSScriptControl.ScriptControlClass
iscr.Language = "vbscript"
iscr.ExecuteStatement("msgbox ""hello from vbscript""")

From a WinForm's perspective you should:

1) Right click on 'References' in the Solution Explorer
2) Click on Add Reference
3) Click on the COM tab
4) Double click on the 'Microsoft Script Control 1.0'
   This will import it into your project.
5) Click OK

Now you should be able to add .NET objects into the script engine by adding public functions.  Similar to the following:

iscr = new MSScriptControl.ScriptControlClass();
iscr.Language = "jscript";
iscr.AddObject( "obj", new TestThing( this ), true);
iscr.AddObject( "test", this, true );

Hope that helps.
0
Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

 
AzmodanAuthor Commented:
For .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
 
AzmodanAuthor Commented:
For a .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
 
AzmodanAuthor Commented:
For a .NET control it doesn't work
I need a scripting environment than can take .NET controls.

I found out about VSA. This is what i need, but it's very complicated to make an engine.
Has someone done or found, a script control made with vsa?
0
 
Zlatin ZlatevTechnical ArchitectCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- PAQ points not removed


Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Zlatin Zlatev
0
 
moduloCommented:
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now