Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   VB.net External Scripting -reg (http://www.velocityreviews.com/forums/t299313-vb-net-external-scripting-reg.html)

Thirumalai 06-24-2006 05:03 AM

VB.net External Scripting -reg
 
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\) 06-25-2006 06:16 PM

Re: VB.net External Scripting -reg
 
"Thirumalai" <thirumalai@cspl.com> wrote in message
news:ujW2zt0lGHA.4196@TK2MSFTNGP04.phx.gbl...
> 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

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



Peter Torr \(MS\) 06-25-2006 06:16 PM

Re: VB.net External Scripting -reg
 
"Thirumalai" <thirumalai@cspl.com> wrote in message
news:ujW2zt0lGHA.4196@TK2MSFTNGP04.phx.gbl...
> 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

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




All times are GMT. The time now is 12:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57