Unable to register DLL

I am using JDK/JRE 1.4.2_08 on Windows XP Professional Version 2002, SP1. I have Visual C++ 6.0 on my system. I upgraded to SP6.
j: is a substituted drive mapped to c:\dev0p.
I create the jar and dll files. I issue the following commands:
cd j:\java\classes\bin
regsvr32 ImageViewerBean.dll
I get this message:
DllRegisterServer in ImageViewerBean.dll failed.
Return code was: 0x80004005
The .jar file is in j:\java\classes\lib and the .dll was created in j:\java\classes\bin.
Putting the full path (c:\windows\system32) for the regsvr32 cmmand made no difference.
Any ideas what this error means and what can I do to register my dll?
I created the dll using the packager by the following commands:
set classpath=j:\java\classes;j:\tools\jar\station.jar;j:\tools\jar\jgl3.1.0.jar;..\jre\lib\rt.jar;..\jre\lib\jaws.jar;
call "c:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT"
packager -out j:\java\classes\bin j:\java\classes\lib\ImageViewerBean.jar com.adachcis.IApplications.Cedara.ImageViewerBean
This is the output from the commands. The ImageViewerBean.dll was created in the j:\java\classes\bin directory.
C:\dev0p\java\build>set classpath=j:\java\classes;j:\tools\jar\station.jar;j:\tools\jar\jgl3.1.0.jar;..\jre\lib\rt.jar;..\jre\lib\jaws.jar;
C:\dev0p\java\build>call "c:\Program Files\Microsoft Visual Studio\VC98\bin\VCVARS32.BAT"
Setting environment for using Microsoft Visual C++ tools.
Processing C:\DOCUME~1\es9527\LOCALS~1\Temp\\ImageViewerBean.idl
Processing C:\PROGRA~1\MICROS~3\VC98\INCLUDE\oaidl.idl
Processing C:\PROGRA~1\MICROS~3\VC98\INCLUDE\objidl.idl
Processing C:\PROGRA~1\MICROS~3\VC98\INCLUDE\unknwn.idl
Processing C:\PROGRA~1\MICROS~3\VC98\INCLUDE\wtypes.idl

As I understand the instructions, you only have to have the axbridge\bin directory if you don't specify a -out parameter. From the instructions I've read (http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html), you should be able to specify a -out then go to that directory and run regsvr32 <bean name>.dll to register the dll.
I did, in fact, create the axbridge\bin directory, specified it as the -out and used the -reg option and it did register my bean. I just now need to figure out how to create a file for my clients to use to register the bean once it's been deployed.
My latest VM is 1.4.2_08 so it should be using that one. Is there a way I can determine which VM is being used?
Thanks for the reply.

Similar Messages

  • Unable to register the SAP JAVA CONNECTOR sapjco3.dll file

    HI
    I'm trying to intergrate BO and BW using SAP BO Integration kit, and following the manual at http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/a00ee3b2-5283-2b10-f1bf-8c6413e0898f&overridelayout=true
    But first i must install the SAP Java Connector, I have downloaded them from https://websmp107.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000719346&.
    My server is a WMvare win 2008.service pack 2.
    My problem is that i'm unable to register the sapjco3.dll file.
    I'm runnning the comand regsvr32 "C:windowssyswow64sapjco3.dll
    but I only get the error message "The module "sapjco3.dll" was loaded but the entry-point DllRegisterServer was not found. Make sure that "sapjco3.dll" is a valid DLL or OCX file ant try again"
    I hav tried both the 64 bit and the 32 bit version of the dll. same error.
    the dll version is 7110.34.16.7531
    Any ideas
    Thanks

    Hi Pal,
    you need to use the Java Connector v 2.1.8 and there is no need to register the DLL.
    ingo

  • Unable to load DLL access is denied (exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    I'm consuming a 32-bit native DLL from a c# web service. Everything works fine locally in VS with IIS express. However when I deployed the site to a shared hosting provider (Server 2012 R2, IIS 7) the calls to the DLL (using platform invoke) generated an exception:
    Unable to load DLL 'dll_name.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    I asked the hosting provider to make sure my process is running in 32-bit mode and they assured me it is.Do I need to do anything special to use native DLLs? Do I have to register native modules with the server before they can be used? Anything to be set on
    the server side to grant access to the DLL?
    Thanks

    Thanks for your reply.
    Tech support tried the following:
    Ran "tasklist /m Detection.dll" It didn't return any processes that would lock the dll.
    Checked the permissions on the dll. The Network Service and app pool identity both had read/write/execute permissions. Just to make sure it wasn't permissions, they added IIS_IUSRS
    with r/w/x. Still didn't work.
    When this exception occurs, the exception.Message reads:
    Unable to load DLL 'Detection.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    However, the exception.HRESULT value is 0x80131524 which it seems to be DLL not found. I'm not sure why there's a difference.
    I recompiled the DLL with the  DetectObject() function removed (See code snippet below), that didn't seem to make any difference (same error codes)
    If I delete the DLL from the /bin folder, I get the following message:
    Unable to load DLL 'Detection.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    The code that calls the DLL is as follows: 
    public class DllCalls
    [DllImport("kernel32.dll", SetLastError = true)]
    public static extern bool SetDllDirectory(string lpPathName);
    [DllImport("Detection.Dll")]
    public static extern int DetectObject(IntPtr array, int Rows, int Cols, string BaseFolder);
    public static class DetectionApis
    public static int[] DetectRectangle(int[] LumaImage, int LumaStride, Rectangle Rect)
    int DetPts = 0;
    string DstDll = System.Web.HttpContext.Current.Server.MapPath("~/bin");
    DllCalls.SetDllDirectory(DstDll);
    /*=================================================
    * Extract region of interest rectangle
    *================================================*/
    byte[] RoiRect = new byte[Rect.Width * Rect.Height];
    ImagePixels.ExtractRectToBytes(LumaImage, LumaStride, Rect, ref RoiRect);
    /*=================================================
    * Pass array ByRef
    *================================================*/
    int ArraySize = RoiRect.Length;
    byte OneByte = 0;
    IntPtr buffer = Marshal.AllocCoTaskMem(Marshal.SizeOf(OneByte) * ArraySize);
    Marshal.Copy(RoiRect, 0, buffer, RoiRect.Length);
    try
    string BaseFolder = System.Web.HttpContext.Current.Server.MapPath("~/cascades") + "\\";
    DetPts = DllCalls.DetectObject(buffer, Rect.Height, Rect.Width, BaseFolder);
    catch (Exception e)
    LogFile.WriteLogStrg("DetectObject() caused an exception: " + e.Message + "HRESULT = " + e.HResult.ToString("X8"));
    return (null);
    int[] DetPoints = null;
    if (DetPts == 8)
    DetPoints = new int[DetPts * 2];
    Marshal.Copy(buffer, DetPoints, 0, DetPts * 2);
    Marshal.FreeCoTaskMem(buffer);
    return (DetPoints);
    The imported DLL function is as follows:
    #ifdef __cplusplus
    extern "C" {
    #endif
    __declspec(dllexport) int __stdcall DetectObject (int *CharLumaBuf, int Rows, int Cols, char *BaseFolder)
    return(-100);
    #ifdef __cplusplus
    #endif
     Any ideas/suggestions?

  • Unable to register lenovo extended warranty service pack

    I purchased a new lenovo laptop essential G510 on 16 march 2014 online from flipkart.com.
    I also got free extended warranty with this laptop purchase but I am unable to register the warranty pack as per guidelines given in the brochure.none of the link given in the brocure are working nor the toll free number( 180030029929 ) given can be contacted.
    On calling lenovo customer care on 1800-3000-5366 for ideapad user they are unable to resolve the issue or moreover unable to understand the issue .
    The service pack  has a model number (0C07942) and has written on it ideapad U/Y/Z/G :1 yr onsite -3/3/1  and inside it I have a offering number and an authorization number. 
    i have also mailed all my details to [email protected] with no reply from them for a month now.
    can anybody help me please on how to register this service pack because I paid 4000 for this to flipkart and now it seems like  waste without the registration 

    Hi Pal,
    you need to use the Java Connector v 2.1.8 and there is no need to register the DLL.
    ingo

  • I have two issues. 1) unable to update Acrobat XI Pro and 2) unable to register product

    First issue: I have for the second time installed Acrobat xi pro and then click on "check for updates" from the help menu. And it shows that an update is available. But when I update it I am given the following error message:
    Error 1328. Error applying patch to file C:\Config.Msi\PT669B.tmp. It has probably been updated by other means, and can no longer be modified by this patch. For more information contact your patch vendor."
    When I click on "details" I am sent to adobe's "update error" page. Which states the following for error 1328: Error applying patch to [filename]. It's likely that something else updated the file, and the patch can't modify it. For more information, contact your patch vendor.
    I have tried uninstalling program and re-installing program but still get same error message from my attempt at updating. So I am not sure if program is update or not. And I do not know who my "patch vendor" is.
    Second issue: Unable to register product with Adobe. Because the option to do so from the "help" menu which lists "product registration" is greyed/dimmed out. Therefore not giving me the ability to register this product. Please let me know what is causing this problem.

    I am not sure, but will suggest some things to try. On the activate issue, it may be that your system already thinks it is activated and so you might try the deactivate and check. If that works, I would suggest you then uninstall, run http://labs.adobe.com/downloads/acrobatcleaner.html, remove anything left of the Acrobat folder, reboot, and reinstall. Hopefully you can open Acrobat and activate. Then do the updates from the Help menu.

  • Unable to load DLL 'librfc32.dll'  (Exception from HRESULT: 0x8007007E)

    Unable to load DLL 'librfc32.dll'  (Exception from HRESULT: 0x8007007E)
    Hi!
    We would like to hold the account balance data from EMPTOR to SAP and have the following error:
    Unable to load DLL 'librfc32.dll'  (Exception from HRESULT: 0x8007007E)
    We use SAP ERP 2005 on Windows 64 Bit.
    Can some one help with the problem?
    Thank you very much!
    regards
    Thom

    You can download the latest avaiable kernel or just the librrfc component from http://service.sap.com/swdc. They maybe an issue with this DLL. Just download the latest one and copy into \usr\sap\<SID>\SYS\exe\run directory. Be sure to save the previous DLL.
    Thanks
    Adil

  • Unable to load DLL 'OraOps10w.dll': Access is denied.

    Below is our error message. This happens around 5 - 7AM daily, and we are struggling with identifying the root cause. It's hard for me to believe it's code related, but anything's possible. Still, what's odd is the app runs fine for a day then an IIS reset is done and everything is fixed. Is there any way this could be related to code and has anyone dealt with this error before? Could a job or some permission being run behind the scenes be using this same dll and cause it to be overwritten?
    Thanks, Bryan
    Timestamp: 3/4/2010 12:11:23 PM
    Message: HandlingInstanceID: 3d9a795c-1256-44c1-b018-f553d4023b12
    An exception of type 'System.TypeInitializationException' occurred and was caught.
    03/04/2010 07:11:23
    Type : System.TypeInitializationException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : The type initializer for 'Oracle.DataAccess.Types.OracleDecimal' threw an exception.
    Source : Oracle.DataAccess
    Help link :
    TypeName : Oracle.DataAccess.Types.OracleDecimal
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Void PostBind_Int32()
    Stack Trace : at Oracle.DataAccess.Client.OracleParameter.PostBind_Int32()
    at Oracle.DataAccess.Client.OracleParameter.PostBind(OracleConnection conn, OpoSqlValCtx* pOpoSqlValCtx, Int32 arraySize)
    at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
    at Oracle.DataAccess.Client.OracleCommandBuilder.DeriveParameters(OracleCommand command)
    at Microsoft.Practices.EnterpriseLibrary.Data.Odp.OdpDatabase.DeriveParameters(DbCommand discoveryCommand)
    at Microsoft.Practices.EnterpriseLibrary.Data.Database.DiscoverParameters(DbCommand command)
    Additional Info:
    MachineName : MISTERC
    TimeStamp : 3/4/2010 12:11:23 PM
    FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3f0a163eed2abd49
    ThreadIdentity :
    WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
    Inner Exception
    Type : System.DllNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message : Unable to load DLL 'OraOps10w.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Source : Oracle.DataAccess
    Help link :
    TypeName :
    Data : System.Collections.ListDictionaryInternal
    TargetSite : Int32 AllocValCtxFromNoFmtStr(System.String, IntPtr ByRef)
    Stack Trace : at Oracle.DataAccess.Types.OpsDec.AllocValCtxFromNoFmtStr(String numStr, IntPtr& numCtx)
    at Oracle.DataAccess.Types.OracleDecimal.GetMaxValue()
    at Oracle.DataAccess.Types.OracleDecimal..cctor()

    Thanks a lot.
    I give permissions to ASP.NET account in directory C:\Oracle\product\10.2.0\client_4 (full control) and the application running ok.

  • Unable to load DLL "OraOps10.dll"

    I am running into peculiar issue. I am developing a windows based application which connects to Oracle database.
    For initial testings, I have created installer and tested on different machines that I have. Each machine has Oracle Client installed and I did not see any problem in running application.
    But when I share this installer with customer, he is getting error "Unable to load DLL OraOps10.dll". When asked he mentioned and has shown the Oracle Client installed on his machine and he is able to run other C# applications which connects to Oracle databases.
    I do not understand why my application only getting above error. I even tried suggestions shared at One way to fix the "Unable to load DLL (OraOps.dll)" error but still no luck.
    I even tried copying executables & DLLs manually on customer's machine. But still facing same issue.
    So please help me on what else i can do.
    Thanks & Best Regards
    Sudhakar Chavali
    P.S:
    I am using Windows XP operating system and customer is also using same operating system. Both machines are of type 32 bit OS only.
    This is the location where customer's oracle client installed: C:\oracle\product\10.2.0\client_1\bin and same is the version in my case too.
    We both are using Oracle 10g and .Net framework installed is 4.0

    The only thing that comes to mind is a .net version problem. Are you both using Oracle client 10g as well? Do you have an 11g client on your development machine?
    There was no .net 4 assemblies in the 10g client, they didn't add that until 11. It's possible that something in his configuration isn't letting a .net 4 application load a .net 2 assembly.
    If that's the case, then giving the client an Oracle 11g client will fix the problem.

  • Unable to Load DLL (oci.dll)

    I am trying to connect to Oracle 10g database using Visual Studio.Net 2003, System.Data.OracleClient namespace. I have created a Web service running on my workstation's local web server, that uses a connection to an Oracle database (my connctionString="Data Source=orcl;User Id=myid;Password=pswd" ). While the program trying to execute myConnection.Open() - it is receiving the error "Unable to load dll (oci.dll)". I have installed the Oracle client on a development (WinXPPro) workstation, so the client BIN directory is visible, production server is running Oracle 10g on Windows 2003.
    Is it some kind of connection string issue or user permission problem? How do I setup the right ones?
    Thanks for the help in advance!!

    Hi Justin,
    Thanks for your response.
    Yes, I can connect to the database using both Aqua Data Studio or SQL *Plus. I even can connect to the database from Visual Studio utilizing Data Link Properties utility via OLE DB drivers either from Microsoft or Oracle. The credantials I am providing in the last case are the same as I use in my connection string: data source name (tnsname) - orcl, user id and password...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Unable to load DLL (OraOps9.dll)

    I am trying to use a Web Service to access Oracle database using ODP.NET from download OraWin9204.exe.
    The Web Service is running on Server 2003 under the (usual) principle "NT AUTHORITY\NETWORK SERVICE" which has read/execute/list folder permissions on the entire C:\oracle folder on the web server.
    Client returns the error "Unable to load DLL (OraOps9.dll)"
    The Web Service has a AssemblyKeyFile that is trusted by the client.
    Any Ideas?

    OK. Got it working. Had tried all the stuff in previous posts (PATH/ Restart IIS/ Permissions)
    Rebooting the Server fixed it. I hope no-one else wastes a day on something that could have been documented!

  • Unable to load DLL 'OraOps10.dll with a twist

    Hi,
    So, I have been struggling with an issue for the last couple of weeks that is sending my mad. I receive the following error when attempting to make a connection to a database with my web app:
    Error message:
    "Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: (0x8007007E)"
    I am using
    Windows 2008 32bit
    Oracle Client 11g
    .net v2
    IIS7
    My apps called CMA, slimier to a more well known app NCSuite
    My connection to the database seems to working doing a simple test with a .udl file.
    I have attempted the following:
    Full re-installing the Oracle drivers following online instruction to clear reg and assembly, several times
    Setting permissions on the folder to beyond what they should be
    Setting permissions on any folder that refers to oracle
    Tried installing ODP.NET just on the off chance it might help
    Had a good mess to see if it was something to do with the 64bit issue, but obviously not as Im 32bit
    Unfortunately earlier version of the Oracle client are not compatible
    One thing that confuses me is why my app would refer to OraOps10.dll rather than the OraOps11w.dll thats being used. Only Oracle 11g has ever been installed on this machine as its a fresh build. The application itself does not directly refer to the OraOps10.dll.
    Any thoughts?
    Regards

    Hi,
    I'm a bit confused by your statement "+Tried installing ODP.NET just on the off chance it might help+". You can only get that error if you're using ODP.NET in the first place. A UDL file would test an oledb connection, so it's good just to make sure the client libraries are there and tnsnames configured correctly, but otherwise a bit irrelevant to this error.
    Anyway, that error occurs when ODP either cant find it's dependencies.. either the right OraOps or client dlls, or finds them but finds the wrong ones. OraOps11 (without the 'w') gets loaded when your application loads the 1.x ODP.NET provider. The provider for .net 2.x and higher loads oraops11w.dll.
    The usual cause of this error is from apps including Oracle.DataAccess.dll in the app bin directory, rather than letting it get picked up from the GAC.
    I'd start by
    1) searching your machine for all Oracle.DataAccess.dll, and rename any outside the Oracle home and/or GAC.
    2) if that doesnt do it, use a tool like Process Explorer (http://sysinternals.com) to find out where Oracle.DataAccess.dll is being loaded from, and what version. You need to have a matching OraOps that is the same version as Oracle.DataAccess.dll they actually need to be a matched pair (check the date of the dlls), but its the mismatched version that causes the error.
    3) if neither of the above help, use Process Monitor to watch the dll's loaded 'live' to see if there is some sort of permissions issue, but the well known permissions issue that you've probably found information about was specific to 9.2 and 10.2 client, and is not an issue with 11g. That is to say, the OUI sets permissions properly in 11g, but it's still possible an IIS admin may have cranked permissions down too tight.
    Additionally,
    1) What version of ODP was your app compiled with?
    2) What version of .NET framework?
    3) What version of 11g client do you have installed, and what did you install it from? ie, 11107.0 full client? or 11107.20 odac bundle?
    4) The ODP forum is located here: ODP.NET
    Hope it helps,
    Greg

  • Unable to load DLL 'oramts.dll'

    Hi All,
    We are using .NET 2005 as for development.
    Database Configuration : Oracle 10g R2 on Windows 2003(32 bit)
    We tried to implement Transactionscope it's given an error
    *'System.DllNotFoundException: Unable to load DLL 'oramts.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E).'*

    Refer to this site for solution
    http://support.microsoft.com/kb/843044
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com

  • Error Message : Unable to load DLL (AddOnInstallAPI.dll)

    Hi there..
    I am lost in SBO Installation I have made an installation package for my add-on. When I want to deploy for my client, i get a very silly Microsoft .Net Framework error message, that is :
    Unable to load DLL (AddOnInstallAPI.dll)
    Here is my function to call the .dll file:
    Private Sub Install()
      Environment.CurrentDirectory = strDll
      Dim sInstaller As String = installerPath
      'installerPath is path for my Setup.exe file
      Try
         'Run a new process
         System.Diagnostics.Process.Start(sInstaller)
      Catch ex As Exception
         MsgBox(ex.Message)
         Windows.Forms.Application.Exit()
      'Loop until windows found the executables   
      While System.IO.File.Exists("C:\Program  Files\MyCompany\Statement of Account\SOA.exe") = False
      End While
      'After found the executables, then call SetAddOnFolder
      SetAddOnFolder("C:\Program Files\MyCompany\Statement of Account")
       EndInstall() ' Inform SBO the installation ended
       Windows.Forms.Application.Exit() ' Exit the installer
    End Sub
    Does anybody ever face the same problem? My Client are using SBO2004 P9. I created all my addon using SDK P23. Is there any effect using different patches?
    Just for your information, I try to uninstall everything, and re-install SBO2004A Patch 9 in my computer (same as my client) and it works fine!! Are there any other possibilities???
    Hopefully, somebody can help me...
    Thanks alot...

    yes, i put the correct strDLL string as the parameter. I am able to run the AddOnInstaller with my PC (SBO 2004A Patch 26) and I also did the installer using my PC.
    My Problem is that i can not to install in my customer PC which is using SBO2004A Patch 9.
    Does anybody has some ideas about this issue?
    Thanks for helping...

  • System.DllNotFoundException: Unable to load DLL 'OraOps10.dll'

    Hello,
    I'm developing a piece of software for a small business that connects to an Oracle 10g express database I set up. The software is written in c# with VS2008, and has ODP.NET installed. On the computer I'm developing with, the software works perfectly. Unfortunately, when I try to use it on a different computer I get the error message "System.DllNotFoundException: Unable to load DLL 'OraOps10.dll'".
    I have already created a redistributable for all the .NET components I need, including Oracle.DataAccess.dll
    I think this problem would be solved by installing VS2008 and ODP.NET on every computer needing it, but that's unrealistic. Is there another way to get this program to work?

    Hi,
    At a minimum, you need to install the Oracle core client and ODP provider on the target deployment machine. ORAOPS10.dll is a the unmanaged layer for our provider and gets installed when you install the driver from our installation bundles. That DLL is a dependency of the .NET 1.x assembly and should get installed when you install the ODP component.
    I am assuming you are using an older 10.2.0.10 version. In later versions we provide an IC bundle that includes an xcopy redistributable that makes it alot easier to wrap up with your custom install scripts, with earlier versions that reply on a full client you need to use the OUI and install the client and ODP on the target machines where the app will be deployed.
    HTH
    Jenny B.

  • System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

    Hi,
    I have a asp.net web application running on windows server 2008 with oracle server 10g installed.
    now we are planning to run application on another server with same server as database server. but when the deployed on new server the login page comes up and after login System.DllNotFoundException: Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) exception is thrown. any help would highly be appreciated.

    Did you run the ODAC installer, OUI or xcopy, or did you just copy over Oracle.DataAccess.dll to the new machine? If the latter, then you need to run the installer to put in all the necessary Oracle DLLs ODP.NET references.

Maybe you are looking for