Re: Web Service/Impersonation Issue - RESOLVED
From: Jeff B. (jeff_at_nowhere.com)
Date: 12/18/03
- Next message: BMermuys: "Re: A CryptoStream puzzler..."
- Previous message: Ken Roberts: "Problem creating registered objects like Word"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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 > >
- Next message: BMermuys: "Re: A CryptoStream puzzler..."
- Previous message: Ken Roberts: "Problem creating registered objects like Word"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|