Re: Web Service/Impersonation Issue - RESOLVED

From: Jeff B. (jeff_at_nowhere.com)
Date: 12/18/03


Date: Thu, 18 Dec 2003 14:38:55 -0600

Hello,

I just thought I'd post that I finally got this issue resolved (with the
help of one of Microsoft's technical support representatives). It turns out
that since my project has a DLL named "security.dll" it was getting confused
with the Windows DLL named "security.dll". Once I renamed my DLL to
"nngsecurity.dll" the problem went away and all was fine.

I'm not sure why .NET gets confused and uses the incorrect DLL (the case
study sent to me by the tech. rep. wasn't very helpful in explaining the
underlying problem). I also don't know if it's a bug that will be resolved
in a subsequent release of the .NET framework, but at least I'm working now
:-)

-- 
Thanks, Jeff
"Jeff B." <jeff@nowhere.com> wrote in message
news:une7hBtqDHA.2304@TK2MSFTNGP11.phx.gbl...
> Hello,
>
> I have a situation I'm hoping someone can shed some light on...
>
> We have a Windows Forms application (.NET v1.1/VS.NET 2003) that makes
calls
> to various web services for data retrieval.  The web services make calls
to
> four different database servers of which two are MS SQL Server and the
other
> two are Oracle (8.x).  The MS SQL Server calls do not cause any issues,
> however, the Oracle servers require that our web services be running under
> specific Windows-authenticated user accounts (not the ASPNET or
IUSR_machine
> accounts).
>
> We setup impersonation in the web.config file using the following entry:
>
>         <identity impersonate="true" />
>
> I then set the credentials for the web services when the web service
object
> is created:
>
>         // Impersonate using current user's network credentials
>         webService.Credentials =
> System.Net.CredentialCache.DefaultCredentials;
>
> The above scenario works just fine in our DEV and TEST server
environments.
> However, I have the exact same configuration setup on my local development
> PC and I can't run without receiving an error.  When I run the application
> and attempt to communicate with a web service, I get a dialog with the
> following text:
>
>         An unhandled exception of type
'System.EntryPointNotFoundException'
> occurred in system.dll
>         Additional information: Unable to find an entry point named
> EnumerateSecurityPackagesW in DLL security.dll.
>
> Does anyone know what may be causing this to happen locally but not
anywhere
> else?  This was working initially but decided to stop working somewhere
> along the way and I'm not sure why.  I've compared IIS configuration as
well
> as NTFS permissions and can't seem to find any difference.
>
> -- 
> Thanks, Jeff
>
>


Relevant Pages

  • Re: C# Remoting ???
    ... a server using a dll. ... How u differentiate btw remoting and Web Services ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: URGENT! Error in web service function call - web services behavio
    ... When the HTTP request comes in, if a DLL has not ... directory* on the web server machine. ... "paul" wrote: ... > in javascriptusing web services ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Web Service/Impersonation Issue
    ... to various web services for data retrieval. ... The MS SQL Server calls do not cause any issues, ... We setup impersonation in the web.config file using the following entry: ... I've compared IIS configuration as well ...
    (microsoft.public.dotnet.security)
  • How to reference a remote DLL
    ... I think you'll need to use either COM+, .Net remoting, or ... web services - and each of these need to host the dll in a ... runtime on the server. ... dll on a different server without using one of these ...
    (microsoft.public.dotnet.framework.component_services)
  • Re: Please help
    ... Unable to open the Server service. ... DLL files to display messages from a remote computer. ... The NVIDIA Driver Helper Service service hung on starting. ... have the necessary registry information or message DLL ...
    (microsoft.public.windowsxp.perform_maintain)

Quantcast