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?

Similar Messages

  • Error While calling getListItem Webservice : Server was unable to process request. --- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi All,
    we are calling sharepoint webservice from our web application but we are getting below error while calling webservice.
    Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    Our code is as below.
    We used below 2 options but we got same error for both scenario,
    1)
                ListService.Lists objLists = new ListService.Lists();
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    2)         ListService.Lists objLists = new ListService.Lists();
                objLists.Proxy = new WebProxy("proxyaddress",true);
                NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
                objLists.Credentials = objNetworkCredential;
                System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
    Please help me what is the problem while calling this service.
    Thanks in advance.
    Regards,
    Kaivan Shah

    Hi ,
    Here is a similar case ,you can have a look at this .
    Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) -Accessing the sharepoint site:
    http://social.msdn.microsoft.com/Forums/en-NZ/sharepointworkflow/thread/5eab2116-7d7c-4bf3-bfa1-48bd8992dded
    Thanks,
    Entan Ming

  • STSADM Restore error : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi all,
    I've been struggling figuring out what permission I need to make this restore work. I've successfully restored site collection on the same web app with the following restore command from the same DAT file before.
    stsadm -o restore -url
    http://siteurl -filename
    \\UNCpath –overwrite\filename.dat
    Log file error:
    stsadm: Running restore
    Initializing the configuration database connection
    Starting restore of site collection: 'http://sitename/', requested by: domain\user, source: \\UNCpath\filename.dat
    Deleting the site at http://sitename and not deleting AD accounts.
    Unknown SPRequest error occurred. More information: 0x80070005
    stsadm: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Callstack:   
    at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)    
    at Microsoft.SharePoint.Library.SPRequest.DeleteSite(String bstrUrl, Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete(Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete()    
    at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPStsAdmin....
    ...RunOperation(SPGlobalAdmin globalAdmin, String strOperation, StringDictionary keyValues, SPParamCollection pars)
    Now terminating ULS (STSADM.EXE, Microsoft.Office.Server.Native.dll)
    I've made sure I have rights:
    1. Either primary/ secondary site collection administrator on the associated web app
    2. Made myself owner on the related dbs
    3. I'm part of the local admin group on the server running CA and DB.
    I know I may have given too much privilege - but I'm sick of seeing this access denied error. As far as I'm concerned permission-wise nothing has been changed from my last successful restore except the fact that I'm overwriting the site collection this time.
    I also tried with a fresh DAT file to restore with no luck. 
    If someone can give me some other thoughts I would very much appreciate that.
    Many thanks in advance -
    Blue Sky

    Thanks for your reply...
    Now we are trying to restore the minsite first ...
    Only my content database is at the server2 because of the disk space problem...
    Other data bases are at the server1(original) where the website host ...
    now, we run the stsadm restore for minisite
    at that time error occur,
    No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click "Content databases" on the Application Management page, select the Web application to use, and then click
    "Add a content database". Callstack:    at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.FindBestContentDatabaseForSiteCreation(Guid siteIdToAvoid, Guid webIdToAvoid)     at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String
    strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary
    keyValues)  
    we set
    Central Administration >
    Operations >
    Default Database Server  to server1 (original)
    Central Administration >
    Application Management >
    Content Databases   to server2\WSS_Content
    can we separte the servers like that ??
    Thanks ...
    M

  • 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.

  • PDF Export = System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied

    Hello,
    I am using the ReportViewer over asp.net pages on a web hosting service.  I am generating the reports independently of the 'Sql Reporting Services' windows service.  In fact I have 'Sql Report Services' service turned off.
    All export works okay when I test the report in IIS7 on my local machine and in Visual Studio.  After I FTP the web application to the remote web host the report still works but only the Excel exports properly.  The export to PDF or Word generates
    the error
    System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied
    Other people have had this problem too but their remedy is to run cacls.exe and fidget around with t2embed.dll.  Maybe that will work for a local client machine but that is not something I can do on a web hosts server.  They seem to think the font
    has security issues and a hotfix may be causing it.  The next thing I will try will be to use a generic font in my report like Arial or Courier but I doubt that will fix it. 
    Any clues?

    Hi Dulal,
    Please try to check the permission on "T2Embed" file, which is located in the C:\WINDOWS\system32 and C:\Windows\SysWOW64
    In addition, here is a similar thread about this topic for your reference. Please see:
    http://forums.asp.net/t/1933880.aspx
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • 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

  • 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.

  • "Unable to load DLL '/system/usr/lib/libidlprinter.so': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}

    I am using intermec printer (directly loading to the printer no system used for printing) for this program and if i run this,i'm getting this below error
    "Unable to load DLL '/system/usr/lib/libidlprinter.so': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
    any help on this .........
    Thanks in advance.
    using System.Globalization;
    using Intermec.Printer;
    using System;
    using System.IO;
    using System.Threading;
    class TestCommunicationUSBHost
        static UI.Canvas _canvas;
        static UI.Keypad _keypad;
        static UI.Canvas.Text _exitInstruction;
        static UI.Canvas.Text _appliCationTitle;
        // static UI.Canvas.Text _companyname;
        static string _operatorCodeValue;
        static UI.Canvas.Text _operatorCodeDisplayText;
        private const string operatorCodeDisplayHeader = "SCAN Code: ";
        static PrintControl printControl = new PrintControl();
        static Drawing drawing = new Drawing();
        private static bool _isExitKeyPressed = false;
      //  private static Communication.USBHost _usbHost;
        static int Main(string[] args)
            // Init new UI canvas
            _canvas = new UI.Canvas();
            // Set up some colors to use
            Color white = new Color(255, 255, 255, 255);
            Color blue = new Color(50, 100, 150);
            // Add UI black background
            UI.Canvas.Rectangle bg = new UI.Canvas.Rectangle(0, 0, _canvas.Width, _canvas.Height, blue);
            _canvas += bg;
            // Add Line
            UI.Canvas.Line ln = new UI.Canvas.Line(10, 35, 300, 35, white);
            _canvas += ln;
            // _companyname = new UI.Canvas.Text(30, 45, "KEYBORD DEMO", "Univers Bold", 18, white);
            // _canvas += _companyname;
            // Add UI keycode text
            _exitInstruction = new UI.Canvas.Text(20, 200, "Press [F4] to EXIT.", "Univers Bold", 18, white);
            _canvas += _exitInstruction;
            _appliCationTitle = new UI.Canvas.Text(05, 05, " A1 Technologies", "Univers Bold", 23, white);
            _canvas += _appliCationTitle;
            _operatorCodeDisplayText = new UI.Canvas.Text(20, 100, operatorCodeDisplayHeader, "Univers Bold", 20, white);
            _canvas += _operatorCodeDisplayText;
            // Set up keypad event handler
            _keypad = new UI.Keypad();
            _keypad.KeyDown += new UI.Keypad.KeyEventHandler(KeyHandler);
            // Set up timer event handler
            UI.Canvas.Timer timer = new UI.Canvas.Timer();
            timer.Interval = 1000;
            timer.Tick += new UI.Canvas.TimerEventHandler(TimerHandler);
            timer.Start();
            //int USBHost port o or Setup USBHost
            Communication.USBHost _usbHost = new Communication.USBHost("/dev/ttyUSB0");
            _usbHost.Open();
            // Enter UI main loop
            _canvas.Run();
            // Cleanup UI
            _canvas.Dispose();
            _keypad.Dispose();
            return 0;
        public static void KeyHandler(Object o, UI.Keypad.KeyEventArgs eventArgs)
            int keycode;
            keycode = eventArgs.KeyChar;
            if (keycode == 4)
                _isExitKeyPressed = true;
                return;
        public static void TimerHandler(Object obj, UI.Canvas.TimerEventArgs eventArgs)
            if (_isExitKeyPressed)
                UI.Canvas.Timer timer = (UI.Canvas.Timer)obj;
                timer.Stop();
                _canvas.Exit();
            else
                // Open the first USB host device and read any data sent
                Communication.USBHost usbHost = new Communication.USBHost("/dev/ttyUSB0");
                usbHost.Open();
                if (usbHost.IsOpen)
                    Console.WriteLine("Opened /dev/ttyUSB0 ({0})", usbHost.HIDName);
                    FileStream fileStream = usbHost.GetStream();
                    try
                        int timeout = 0;
                        int i;
                        while (timeout < 5)
                            // Console.WriteLine("Exiting in {0} secs", 10 - timeout);
                            Byte[] bytes = new Byte[256];
                            if ((i = fileStream.Read(bytes, 0, bytes.Length)) > 0)
                                // string data = System.Text.Encoding.ASCII.GetString(bytes, 0, bytes.Length);
                                string data = System.Text.Encoding.ASCII.GetString(bytes, 0, i++);
                                _operatorCodeValue = data;
                                // _operatorCodeValue = _operatorCodeValue + data;
                                _operatorCodeDisplayText.Data = operatorCodeDisplayHeader + _operatorCodeValue.Substring(_operatorCodeValue.Length - 7, 7);
                                int leftCordinate = 40;
                                drawing.Clear();
                                Drawing.Text line1Text = new Drawing.Text();
                                line1Text.Point = new Point(leftCordinate + 30, 40);
                                line1Text.Data = _operatorCodeValue.Substring(_operatorCodeValue.Length - 7, 7);
                                line1Text.Height = 18;
                                line1Text.FontName = "CG Times Bold";
                                drawing += line1Text;
                                drawing.PartialRendering = true;
                                printControl.PrintFeed(drawing, 4);
                            else
                                Thread.Sleep(1000);
                                timeout++;
                    catch (Exception ex)
                        Console.WriteLine("Exception reading /dev/ttyUSB0: {0}", ex.Message);
                // Wait a short while
                Thread.Sleep(1000);
                // Clean up 
               // usbHost.Dispose();
            return;

    Hiya,
     The error is because the app tried to import that driver but it was not found. So, you will need
    to recheck your project setup, provide locations for imports, etc. I am not familar with Intermec Printer.
    The code snippet does not show any information about the DLL import, check there too.
    Hope this helps. :)

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

    I'm new to ADO.NET and need help with this error.
    Currently running Vista Home Premium 64 and Visual Studio 2008 Trial.
    1. Create Win form app.
    2. Add new data source...
    3. New connection - SQL Server Compact 3.5 - Northwind.sdf
    4. Highlight Products and Suppliers.
    5. Drag both onto Win form
    6. Run with debug
    7. Error message "Unable to load DLL 'sqlceme35.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
    some blogs advice change dir in SQL Server Compact 3.5 in regedit but regedit doesn't even have SQL Server Compact 3.5; only SQL Server\SQLExpress.
    reinstall SQL Server Compact 3.5 and problem still exists.
    anyone knows how to fix this problem?

     ErikEJ wrote:
    Have you set your solution target to "Any CPU" ?? If so, set to "x86", as SQL Compact only runs in WoW mode on x64. Or use corflags.exe /32BIT+ against your project output (.exe file).
     ErikEJ wrote:
    Look at this blog post for a walk-through: http://erikej.blogspot.com/2008/01/x64-and-sql-compact.html
    Hello everyone,
    I have the same problem as mentioned above "Unable to load DLL 'elev.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) ", when trying to load the dll file into a window application.  I developed a window application in VS2005 and want to import a dll file from another program into my project and use it.  But when I try to call one of the function in the dll file, I got the error message "Unable to load dll 'elev.dll".  I try all options that say it works to solve this problem, but somehow it doesn't work for me. I put the "elev.dll" file in the bin folder and use P/Invoke to import the dll file into my project.  Can anyone help me out with this?  thanks and really appreciated!
     Here is how I import the dll:
    [DllImport(@"D:\elev.dll")]
    //[DllImport("emap.dll", SetLastError = true)]
    private static extern void EMA_Init();
    and in the code,  I call the function above but failed to load the dll file
    EMA_Init();

  • 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...

  • Unable to load DLL after Impersonating (0x80070542)

    I have an application that prompts a user for credentials and impersonates the user before taking some action on that user's behalf.  However, when I try to call some framework methods that require .NET to load a native DLL, the call fails with the
    following error:
    System.DllNotFoundException: Unable to load DLL 'secur32.dll': Either a required impersonation level was not provided, or the provided impersonation level is invalid. (Exception from HRESULT: 0x80070542)
    I've simplified the duplication scenario down to the following:
    this.userToken = IntPtr.Zero;
    bool authenticated =
    Win32.LogonUser(
    username,
    domain,
    password,
    LogonTypes.Network,
    LogonProviders.Default,
    out userToken);
    if (authenticated)
    this.impersonationContext =
    WindowsIdentity.Impersonate(this.userToken);
    // This call blows up:
    string userDomain = Environment.UserDomainName;
    If I make a call to Environment.UserDomainName before impersonating, no exception is thrown (presumably the DLL is loaded before impersonation, so no attempt is made afterwards).

    Hi Travis,
    I'm writing to check the issue status, please feel free to let us know if you have any concern.
    Sincerely,
    Eric
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact
    [email protected]
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.

  • Microsoft Visual Studio - Unable to load DLL 'librfc32.dll'

    Hi,
    I'm experiencing the following problem:
    When trying to establish a connection between SAP BPC MS and our SAP NW BW system.
    I've created a new Integration Services project in Business Intelligence Development Studio. The issue comes up when I try to test the connection:
    TITLE: Microsoft Visual Studio
    Unable to load DLL 'librfc32.dll':
    This application has failed to start because the application configuration is incorrect.
    Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
    I've placed the librfc32.dll library file on C:\WINDOWS\system32\.
    I ran R3DLLINS.EXE according to Note 684106 - Microsoft runtime DLLs.
    This placed all the needed dll library files (msvcr71.dll, msvcp71.dll, mfc71.dll, mfc71u.dll) on the correct path (C:\WINDOWS\system32\).
    I keep getting the same error.
    Platform:
    Windows 2003 R2 SP2 32-Bit
    MS SQL Server 2008 SP1
    SAP BPC 7.0 Microsoft Platform
    I've checked out some other posts on SDN but it didn't solve my problem:
    Re: librfc32.dll not found on Windows Server 2003
    LIBRFC32.DLL not Found Error
    Re: librfc32.dll
    Any ideas?
    Thank you.
    Bruno Pereira
    Edited by: Bruno Pereira on Mar 23, 2010 5:34 PM
    Edited by: Bruno Pereira on Mar 23, 2010 5:36 PM

    I was able to work it out.
    For your reference:
    Issue arrises from the fact that Business Intelligence Development Studio isn't able to load the librfc32.dll without the [Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update |http://www.microsoft.com/downloads/details.aspx?familyid=766a6af7-ec73-40ff-b072-9112bab119c2&displaylang=en#filelist]implemented on the system.
    Reference SAP note:
    [Note 684106 - Microsoft runtime DLLs|https://service.sap.com/sap/support/notes/684106]
    Bye!
    Bruno Pereira

Maybe you are looking for

  • How to create executable jar in eclipse using linking in compiler

    Hi, I have a project in Eclipse. I wrote already an ant build file for creating an executable jar which includes all project files. Now I want to create a second executable jar which is a subset of the project (a limited number of classes are necessa

  • Turning "OFF" flash mode in E71

    How do i turn "OFF" flash while recording in video mode on my E71? please help.....thanks

  • Production Orders Changes Log

    Hello, I would like to know if there is any Standard way in SAP to be able to see the modifications for a production order. I would like to see modifications in quantities or components. Does anybody knows if it is possible to retrieve that informati

  • Don't want to abend program

    Hi, During insertion from select, if DUPLICATE VALUE ON INDEX occours then i want to put the error message in a log file, instead of process aband and rest of insertion process continues. regards vk

  • Satellite P100-240 : Keyboard errors in Microsoft Outlook

    When I try to insert a symbol when using Microsoft Outlook I get a # symbol - and cannot find the symbol anywhere - the keyboard is fine in other packages - is there a simple way to fix the keyboard for Outlook only?