Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

VB.net External Scripting -reg

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thirumalai - 24 Jun 2006 06:03 GMT
Dear friends,

I have given an application developed in VB.net to one of my client(User).In
the source code we have used 5 rules say for example.
Now one of the rule has been changed.For this purpose Again I have take the
whole setup and deploy at the client place.I dont want to do this process
again.All I would like to do is, I have to place these rules in an External
Script.When the rule got changed, the user should be able to modify the rule
in the external script(in central location) by himself, with out the need to
take the setup again.

What scripting technique we could use in VB.net?.

I need a sample very simple vb.net code which supports this External
Scripting.

Thanks & Regards,
Thirumalai.


Peter Torr (MS) - 25 Jun 2006 19:16 GMT
> All I would like to do is, I have to place these rules in an External
> Script.When the rule got changed, the user should be able to modify the
> rule in the external script(in central location) by himself, with out the
> need to take the setup again.
>
> What scripting technique we could use in VB.net?.

The easiest solution is to embed the MSScript.OCX control and use that to
load VBScript / JScript. It doesn't support .NET languages, but as long as
you expose a COM-friendly OM from your application it will work fine (and
your customer doesn't need to know .NET).

Otherwise, VSA would have been a good choice but I believe it is deprecated.
Next best solution is to compile the code via VB's ICodeCompiler interface,
load it with Assembly.Load, and then find the startup object with
Assembly.GetType and then call it's constructor with a handle to your OM and
go from there.

Peter

Signature

Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.