Unable to load 'onetnative.dll': The specified module could not be found

ngm
  • Unable to load 'onetnative.dll': The specified module could not be found ngm

    This question arises as a result of this question, but I thought I would split it out into its own.

    Anything using SPUtility.GetGenericSetupPath() is returning null, e.g.

    SPUtility.GetGenericSetupPath("config")
    SPUtility.GetGenericSetupPath(string.Empty)
    

    both return null. If I make those calls in a little console app and debug it in VS2008, it appears to execute fine with no exceptions (albeit with null returned from the method.) However I notice a message in the output window:

    A first chance exception of type 'System.DllNotFoundException' occurred in Microsoft.SharePoint.dll

    So if I get Visual Studio to break on all exceptions, even handled ones, the exception is as follows:

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

    I've checked and onetnative.dll does exist in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN.

  • I would try copying the onetnative.dll to the same place as your console app and see if it makes a difference

  • As far as I can trace it back, this was caused by an installation of the wrong version of Microsoft J#.

    J# is a pre-requisite of the Citrix Web Interface for SharePoint webparts. I installed the 32bit version mistakenly, then uninstalled and installed the 64bit version. I have a hunch (based on a good bit of testing, but not 100% verified) that this caused .NET/CLR applications to start looking in the 32bit node of the registry rather than 64bit.

Related questions and answers
  • ask Visual Studio to break on all exceptions, even handled ones, and the exception is as follows: System.DllNotFoundException: Unable to load DLL 'onetnative.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Note: I've started a separate question regarding this onetnative.dll problem... ...All of a sudden, stsadm has stopped working, crashing on all commands it is run with (even -help!) e.g. > stsadm.exe -help Unhandled Exception: System.ArgumentNullException: Value cannot be null

  • Anyone seen this error before and found a solution? Microsoft.SharePoint.SPException: The specified program requires a newer version of Windows. (Exception from HRESULT: 0x8007047E) ---> System.Runtime.InteropServices.COMException (0x8007047E): The specified program requires a newer version of Windows. (Exception from HRESULT: 0x8007047E... appears for Microsoft Word files - they all contain a large amount of images which explains the large file sizes. EDIT: The error is reproducible for selected MS Word files, the code is running from

  • deactivate it it doesn't remove it but i get error: Failed to instantiate file "myStoreComms.webpart" from module "WebPartPopulation": Source path "myStoreComms.webpart" not found. Any ideas.. .what...I have a webpart i build using WSpBuilder and it works OK. When i use Deploy from Visual Studio it installs the WSP sharepoint and add the webpart to the webpart gallery. But it seems the feature...; } } } } finally { if (site != null) site.Dispose(); } } In the feature.xml i have this below <?xml version="1.0" encoding="utf-8

  • (I have also asked this question on Stack Overflow) I have a SharePoint feature I'm using to add some custom aspx files to the Pages Library. When I activate the feature, I can visit the pages in-browser and they are visible in SPDesigner, but when I "View All Site Content" they are not there. Why is this the case? The Feature's Elements File: <?xml version="1.0" encoding="utf-8"?> <.../Pages/Example.aspx When I "View All Site Content" I am looking at the contents of the "Pages" list: http://myserver:PORT/subsite/Pages/Forms/AllItems.aspx

  • ; resultTables = keywordQuery.Execute(); } After this, I load into a DataTable and eventually get XML to transform. Currently I'm using the default XSL from the CoreResultsWebPart...I'm writing some code against the search API in SharePoint 2007, and am seeing some interesting behaviour. I'm using the KeywordQuery 'model' rather than FullTextSqlQuery, since this matches the advanced search form our client wants. I'm using the following code to execute the search - this builds a keyword search query in the same format as the OOTB web parts: ResultTableCollection

  • I have a custom windows service, which supposed to check expired workflow tasks and send them back to the originator (run new workflow) plus then cancels the originator`s expired workflow completely. My problem is how I reference BIN directory DLLs in windows service? I have all my worfklow interfaces there... I GACed those interfaces there and tried again...it went further... No it throws...: System.IO.FileNotFoundException: Could not load file or assembly 'CaseWF, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d3e9de178cbaba7a' or one of its dependencies. The system cannot find the file

  • , at the Powershell prompt I get only the following output: User cannot be found. If I look into the ULS logs, I see the following related logs (truncated a bit for clarity): Creating site http... with an Active Directory domain or forest. Found 0 trusted forests . Found 0 trusted domains Error in resolving user '<domain\user.name>' : System.ComponentModel.Win32Exception: Unable...I'm trying to create a site collection via stsadm. I do: STSADM -o createsite ` -url "<url>" ` -title "<title>" ` -description "<desc>" ` -lcid 1033

  • We have experienced a strange issue in SharePoint. We backed-up and restored a site collection from WebApp1 to WebApp2 and both the site collections have Publishing Features activated (BLOB CACHE was NOT Enabled) After successful restore , none of the sites were working. Following Exception has occured : Site id <> could not be found OR File not found Solution : In the stack trace there method sitecachesettings(guid id).....Reset the IIS, and booom every thing works fine :) My Question : Where is object cache stored ??? how it works?? point me any links where I can dig in deep

  • I have some code that creates a SharePoint site. When the code runs as part of the solution it works. However, when I run it as a unit test I get the following error: The test adapter 'WebHostAdapter' threw an exception while running test 'CreateSiteTest'. The web site could not be configured correctly; getting ASP.NET process information failed. Requesting 'http://localhost/VSEnterpriseHelper.axd' returned an error: The remote server returned an error: (500) Internal Server Error. The remote server returned an error: (500) Internal Server Error. I have

Data information