473,396 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Unable to find an entry point

2
I have written an application that calls 'My.Computer.FileSystem.SpecialDirectories.Current UserApplicationData'. My application is working fine, but one user has reported an issue that has me stumped. When this property is accessed, the following exception is thrown: "Unable to find an entry point named 'VerLanguageName' in DLL 'version.dll'". The stack trace says that the exception came from Microsoft.Win32.UnsafeNativeMethods.VerLanguageNam e(Int32 langID, StringBuilder lpBuffer, Int32 nSize)

I don't think the problem is with my code. I suspect that there is something wrong with a system-level component on her computer, particularly with the DLL that is mentioned. Is this DLL part of a specific windows component that could be reinstalled/repaired? Any idea how to proceed? Thanks for any advice you can offer.

Jon
Jul 8 '10 #1
3 1189
!NoItAll
297 100+
It seems you are making a call into 'version.dll' and either it is missing, or has been replaced by a different 'version.dll' on her system. This is often the case with such generically named dlls. I once worked for a company that created 'system.dll' and place it into the windows\system folder. This sucker got replaced so often by poorly implemented installers that it was ludicrous.
Anyway - you may have to deploy version.dll with your application - better yet - place it directly in the same folder as your application. Do NOT register it. This way even if there is a registered version of 'version.dll' in her (or anyones) windows\system folder your application will always default to using the dll in it's own folder FIRST. This does not work with OCX files by the way.
Jul 10 '10 #2
JonR
2
Thanks for the reply. I am not making a call directly into version.dll. I am calling the standard .NET property 'My.Computer.FileSystem.SpecialDirectories.Current UserApplicationData' which in turn calls a function in version.dll.

I realize this is probably a one-off, since I should ordinarily be able to expect that most computers will not have corrupt system-level DLLs. Is there anything that I can suggest to this user that might fix this problem? (ie: does this DLL exist as part of a standard microsoft component that can be uninstalled and reinstalled?). Is there somewhere that I can point this user to get the correct version of this DLL for her system? I am concerned about the legalities (and side-effects) of redistributing microsoft DLLs with my application, or using a dll that is not compatible with her current OS & service pack.

Regards,

Jon
Jul 13 '10 #3
!NoItAll
297 100+
@JonR
My second guess is then that you are correct about a possible corruption. Also some *other* application may have overwritten an important DLL, or there is a permissions issue on her computer. Perhaps her IT dept has it "partially" locked down in some odd fashion - in which case my advice is to let this one go. The permutations of the cause of this error could be endless!
Jul 13 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Randy Crockett | last post by:
I have created a very simple DLL in VC++ 6.0, then created a very simple App in VC++ 6.0 to use the DLL and this works fine When I try to use the same DLL in C#, with DLLImport, the app finds the...
3
by: Rémi | last post by:
Hello all! I've been using Stephen Lebans' MouseWheel stuff for a number of years now, without problems. I've used on different combinations of Access and Windows, and have had great results with...
0
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found...
1
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the...
6
by: Prashant Bhuptani | last post by:
Hi Guys, I am trying to use a C++ dll in VB.NET code. I have imported the dll in the following manner: <code> Imports System.Runtime.InteropServices
5
by: Pratibha | last post by:
hi, i made a dll named rtbdts.dll and call it from vb.net through dllimport <DllImport("C:\misc\rtbdll\rtbdts.dll")> Public Shared Function Init() As String End Function But it returns the...
3
by: Saman | last post by:
I have a third party dll and I am sure that it is not an activeX or dotnet assembly . I have check it up with Dependency Walker software and found the list of it's exported function in C++ syntax...
1
by: raam_kimi | last post by:
Hi All I got some problem in importing advapi32.dll when i call the LogonUser method it throws an error like this 'Unable to find an entry point named LogonUser in DLL advapi32.dll.' ...
5
by: TC | last post by:
I'm using VB.NET 2005. I need to create a DLL containing a function F(). A VB.NET application will reference the DLL by using a Declare statement. Declare Function F Lib "Foo.dll" (ByVal Woo As...
3
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I'm trying to call my C++/CLI dll from a C# library. I gives me the error unable to find an entry point named GetA Here's my C++/CLI file: #pragma once //#ifdef WRAPPERAPI_EXPORTS...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.