windows server 2012, screen-scraper 6.0 enterprise, COM and .NET API

It is impossible to create a RemoteScrapingSession with the COM or .NET API under windows server 2012. The cause of the problem seems to be JAVA. Screenscraper.dll is registered but seems to have a problem to use de java class to produce the ActiveX object RemoteScrapingSession.

With ASP.NET, I have the following message:

Retrieving the COM class factory for component with CLSID {249DCB04-2D6E-4B94-B182-9E1275B3088D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {249DCB04-2D6E-4B94-B182-9E1275B3088D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

Source Error:

Line 19:
Line 20:
Line 21: dim objRemoteSession = Server.CreateObject ("Screenscraper.RemoteScrapingSession")
Line 22:
Line 23: %>

Source File: C:\Program Files\OSGeo\MapGuide\Web\www\fusion\widgets\TaskPane\goloc_sortie_adresse.aspx Line: 21

Stack Trace:

[COMException (0x80040154): Retrieving the COM class factory for component with CLSID {249DCB04-2D6E-4B94-B182-9E1275B3088D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
System.Activator.CreateInstance(Type type) +11
System.Web.HttpServerUtility.CreateObject(String progID) +249
ASP.fusion_widgets_taskpane_goloc_sortie_adresse_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\Program Files\OSGeo\MapGuide\Web\www\fusion\widgets\TaskPane\goloc_sortie_adresse.aspx:21
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5363

With VB.NET, I have the following message:

code: Dim test As Object = CreateObject("Screenscraper.RemoteScrapingSession")

L'exception System.Exception n'a pas été gérée
HResult=-2146233088
Message=Impossible de créer le composant ActiveX.
Source=Microsoft.VisualBasic
StackTrace:
à Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName)
à ConsoleApplication1.Module1.Main() dans \\server\utilisateurs\administrator\documents\visual studio 2010\Projects\ConsoleApplication1\ConsoleApplication1\Module1.vb:ligne 8
à System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()
InnerException:

Can you use the

Can you use the RemoteScrapingSession.cs file?

I usually compile it with the instructions here.

Where is the

Where is the RemoteScrapingSession.cs file?

In the misc/dotNET/

In the misc/dotNET/ subdirectory.

the only files in this

the only files in this directory are RemoteScrapingSession.tlb and RemoteScrapingSession.dll

Grab it from here

Grab it from here