Quantcast
Channel: ClearScript
Viewing all 2297 articles
Browse latest View live

New Post: IIS Express is OK . But in Local IIS error: " Can not load assembly V8 interface ... " . Why ?

$
0
0
OK, just be sure we have all the correct information:

  • You're building your project with Visual Studio 2013.
  • You're using ClearScript only via NuGet package; you aren't building it.
  • You've installed 32-bit and 64-bit Visual C++ 2012 Redistributable packages (they're separate downloads).
  • You're deploying your project only to your local development machine.
  • Deploying to IIS Express works, but deploying to local IIS fails.
Is all that correct?

By the way, would it be possible for you to share your project on another site? We can't download from the link you provided above.

New Post: IIS Express is OK . But in Local IIS error: " Can not load assembly V8 interface ... " . Why ?

$
0
0
  • You're building your project with Visual Studio 2013. ................ OK, correct!
  • You're using ClearScript only via NuGet package; you aren't building it. .............. OK, correct!
  • You've installed 32-bit and 64-bit Visual C++ 2012 Redistributable packages (they're separate downloads). ............ Ok, correct!
  • You're deploying your project only to your local development machine................... Ok, correct. And I also posted on another server (full trust), to see if the problem was unique to my machine, but the same error occurs in server online.
  • Deploying to IIS Express works, but deploying to local IIS fails. ................... Ok, correct!
Following the project for download. It's pretty basic just one page, I created for testing.

https://clearscriptdany.codeplex.com/SourceControl/latest

Or

http://www.studioz4.com/teste.zip

Any problems let me know.

New Post: IIS Express is OK . But in Local IIS error: " Can not load assembly V8 interface ... " . Why ?

$
0
0
Thanks for sharing your project! We're investigating, and we've reproduced the correct behavior in IIS Express, but so far we're having trouble deploying to IIS. Hopefully we'll have some more info soon.

New Post: vbs error

$
0
0
Namespace conflicts with 'HostType' at 'System.Internal.HandleCollector'
 Engine = new Microsoft.ClearScript.Windows.VBScriptEngine();
             Engine.AddHostObject("host", new HostFunctions());
             var typeCollection = new HostTypeCollection("mscorlib", "System", "System.Core", "System.Windows.Forms"); 
             Engine.AddHostObject("clr", typeCollection);
             Engine.Execute("var System = clr.System;");
             Engine.AddHostObject("require", new Action<string>(s => Engine.Execute(File.ReadAllText(Application.StartupPath + "\\Content\\" + s))));
             Engine.AddHostObject("eval", new Action<string>(s => Engine.Execute(s)));
             Engine.AddHostObject("xHost", new ExtendedHostFunctions());
             Engine.Execute(src);

New Post: vbs error

$
0
0
Yeah, this happens because mscorlib.dll includes a type named "System.Internal", and System.Windows.Forms.dll includes a namespace with the same name, so you can't merge them into the same type collection.

There are two things you can do - (1) use two separate type collections, or (2) use a filter to exclude types you don't need. The conflict here involves only internal types that probably aren't useful. Here's how to include only public types and avoid the conflict:
Predicate<Type> filter = type => type.IsPublic;
var collection = new HostTypeCollection(filter, "mscorlib", "System.Windows.Forms");
Good luck!

New Post: vbs error

$
0
0
the error Statement completion expected comes again

New Post: vbs error

$
0
0
Hmm, we still can't reproduce that. Where is the script coming from, and how are you loading it?

New Post: vbs error

$
0
0
it comes from a file, i load with file,readalllines

New Post: vbs error

$
0
0
OK, that gets you an array of strings; what do you do with them next? It would be great if you could post the code you use to load and execute the script.

New Post: vbs error

New Post: Permissions

New Post: vbs error

$
0
0
Thanks for posting your code. Where is it failing? A stack trace might help. What script is it executing when it fails?

New Post: vbs error

$
0
0
that errors is here: Engine.Execute("Dim System = clr.System");

New Post: vbs error

New Post: vbs error


New Post: datatypes

$
0
0
hi,
what datatypes are implement in clearscript?

New Post: Permissions

$
0
0
Greetings Metalus!

ClearScript does not have Jint-like permission support. It runs scripts in the same security context as the host. However, by default ClearScript does not expose any .NET resources, does not allow scripts to import .NET resources, and blocks scripts from using reflection.

Thanks for your question!

New Post: Permissions

$
0
0
I believe that would be a great question for a future update.
For example: I would like to have the permissions for block some folders in the I/O

New Post: datatypes

$
0
0
Hi furesoft,

Could you please clarify your question? Are you asking about the types of values that scripts can return to the host? The types of objects that hosts can expose to script code? Datatypes that are specific to the CLR or a script language? Built-in conversions? Please give us a better idea of what you're looking for.

Thanks!

Created Unassigned: Problems using WindowsScriptEngineFlags.EnableDebugging [36]

$
0
0
I have code that executes fine on my machine with Visual Studio installed but have passed the code (compiled) including ClearScript.DLL to someone else who is getting an error when the script runs. I have tracked it down that if I remove the EnableDebugging I do not see the crash. But I need this option to get Column and Line numbers for errors in user scripts.

Is this crash caused by a lack of VS on the other machine? If so how do I work around this? I ONLY have the debug option enabled for line and column numbers (running v5.3.9 - not yet tried v5.3.11 as I cannot reproduce so need my colleague to run with latest DLL!)

Stack Trace Info below
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Microsoft.ClearScript.Windows.ProcessDebugManagerWrapper32..ctor()
at Microsoft.ClearScript.Windows.ProcessDebugManagerWrapper.Create()
at Microsoft.ClearScript.Windows.WindowsScriptEngine.<>c__DisplayClass2.<.ctor>b__0()
at Microsoft.ClearScript.ScriptEngine.ScriptInvoke[T](Func`1 func)
at Microsoft.ClearScript.Windows.WindowsScriptEngine..ctor(String progID, String name, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.VBScriptEngine..ctor(String progID, String name, WindowsScriptEngineFlags flags)
at Microsoft.ClearScript.Windows.VBScriptEngine..ctor(String name, WindowsScriptEngineFlags flags)
MY ENTRY POINT -> at Configurator.ScriptProcessor.EnableAPI(API api)


Viewing all 2297 articles
Browse latest View live




Latest Images