Re: IIS permissions error sporadically occurs

From: Roger Abell (mvpNOSpam_at_asu.edu)
Date: 04/29/04

  • Next message: Derek Melber [MVP]: "Password filter"
    Date: Wed, 28 Apr 2004 21:12:44 -0700
    
    

    Cool, Amazing what search can sometimes do.
    For future reference, before removing an old dll it does not
    hurt to see if it can unregister itself first.
    regsvr32 -? for syntax, you would use -u and name the dll

    -- 
    Roger Abell
    Microsoft MVP (Windows Server System: Security)
    MCSE (W2k3,W2k,Nt4)  MCDBA
    "Rob" <rob@tconsult.com> wrote in message
    news:eR6gN6YLEHA.3332@TK2MSFTNGP10.phx.gbl...
    > I may have found the answer Roger.
    >
    > I met a guy in the UK this afternoon from CodeProject.com who I
    > think fixed my problem. It was to my understanding that the security.DLL
    > would cause a conflict if it were included in the same application as
    > the one I was working on. Since I know I do not have a custom security.dll
    > in there, I paid little concern. He then mentions there should not
    > be one "anywhere on the system." Well, guess what? I searched all
    > the files on the system and a security.dll that I named and used on
    another
    > website on the same server which was a stupid web service test from
    > eons ago. I deleted  it and I also deleted  the one from the "ASP.NET
    > Temporary files"
    > leaving the one in "System32" and the "System.Security.DLL" which
    > is in the "Framework" directory.
    >
    > So I believe I did in fact have a name conflict.
    > Now I have to wait to see if more than 4 days go by without this  error
    > happening
    > again to know it is fixed.
    >
    > Thanks for all your help Roger!
    >
    > Rob
    >
    >
    > "Roger Abell" <mvpNOSpam@asu.edu> wrote in message
    > news:%23SKbYCYLEHA.3696@TK2MSFTNGP09.phx.gbl...
    > > I am not so sure abont there being no error in their dll.
    > > Security.dll is from MS in the system32 dir, as it the
    > > System.Security.dll in the version in Microsoft.Net
    > > directory.  If an untrapped exception happens in IIS
    > > it will trash that web - but with IIS 6 it should be possible
    > > to intercept that and recycle that app. (does not help
    > > much for the lost transaction of course).
    > >
    > > Too bad this is so unpredictable, as it makes it hard for
    > > you to turn on trace output and get the full call sequence
    > > when this happens.
    > >
    > > Have you checked that OS service levels, .Net Framework
    > > versions, app versions are the same as on machine where
    > > this is not seen?  Are the machine.comfig and web.config
    > > the same for this website/web as on good machine ??
    > >
    > > I still think that the company will need to help you out here.
    > > -- 
    > > Roger
    > > "Rob" <rob@tconsult.com> wrote in message
    > > news:eSB89UTLEHA.2736@TK2MSFTNGP11.phx.gbl...
    > > > Hello Roger
    > > >
    > > > Man thanks for responding to me.  I appreciate it.  You sound like you
    > > > are up on this stuff.  Anyway, when I go to the event viewer on the
    > server
    > > > I have three sections - Applications, Security, and System.  Under the
    > > > security
    > > > section I do see "Failure Audits" from the past so I would say failure
    > > > auditing is on.
    > > > BUT there are no failure audits for this problem.  In fact, I do not
    > have
    > > > any failure
    > > > audits or errors listed in Application, Security, or System.  There is
    > > > nothing being
    > > > logged in the event viewer when this happens.  Not a thing.
    > > >
    > > > What I have been reading on this morning is EntryPoints and
    EntryPoints
    > > fail
    > > > as I have read when there is a name conflict with custom DLLs and
    System
    > > > DLLs
    > > > OR when a method of a DLL cannot be found.
    > > >
    > > > Well, the DLL is not mine.  It belongs to authorize.net.  AND I
    > guarantee
    > > > you, in fact I know,
    > > > that their DLL does not have bugs.  I believe somehow permissions are
    > > > getting distorted,
    > > > blocked, garbled, confused, whatever and that is why re-starting IIS
    > > solves
    > > > the issue.
    > > >
    > > > Thanks again for at least answering me :)  I have posted this problem
    > all
    > > > over the place
    > > > with little feedback.
    > > >
    > > > Rob
    > > >
    > > >
    > > >
    > > > "Roger Abell" <mvpNOSpam@asu.edu> wrote in message
    > > > news:etDkhLTLEHA.3016@tk2msftngp13.phx.gbl...
    > > > > "Rob" <rob@tconsult.com> wrote in message
    > > > > news:%23G6QGrRLEHA.4080@TK2MSFTNGP12.phx.gbl...
    > > > > > Thanks Roger.  It is hard to find people who are even willing to
    > post
    > > to
    > > > > > this.
    > > > > >
    > > > > No problem - it looked like you were really wanting
    > > > > some ideas or a sounding board.
    > > > >
    > > > > > Problem is if it were application related ten why would it not
    > > > > > happen every time?
    > > > > Very good point - import of which I did overlook in your post
    > > > >
    > > > > > That's one of the frustrating things - getting it to happen.  I
    have
    > > > > > to wait until it happens before I can do anything.
    > > > > >
    > > > > Is anything at all being writting into the security event log
    > > > > relating to the IIS backend accounts or ASPNET account ?
    > > > > (assuming you have failure auditing enabled).
    > > > >
    > > > >
    > > > > > Why does this exact same script work on other server?
    > > > > >
    > > > > ? The same codepath is not being triggered ?? but why ?
    > > > >
    > > > > > I may try to contact their support again (I did once and
    > > > > > they were clueless).
    > > > > >
    > > > > I can find info EnumerateSecurityPackages (note not W form)
    > > > > but am not dev in this area, but if true to form that would just
    > > > > be Unicode version.
    > > > > However, it seems that there is some errant call/marshalling
    > > > > happening in the authorization negotiation for their .Net remoting.
    > > > >
    > > > > > Rob
    > > > > >
    > > > > > "Roger Abell" <mvpNOSpam@asu.edu> wrote in message
    > > > > > news:OwaKODPLEHA.4052@TK2MSFTNGP11.phx.gbl...
    > > > > > > You likely need to talk with the authorize.net people
    > > > > > > as this appears due to some call they are making.
    > > > > > > It may be such as which version of the Framework you
    > > > > > > have installed on the IIS box, for example, but they will
    > > > > > > likely be able to guide you.  Else, perhaps if you have
    > > > > > > the trace so you could see what the caller is; or you could
    > > > > > > try posting to the specific newsgroup for asp.net in the
    > > > > > > inetserver newsgroups.
    > > > > > >
    > > > > > > -- 
    > > > > > > Roger
    > > > > > > "Rob" <rob@tconsult.com> wrote in message
    > > > > > > news:eShWM7MLEHA.1312@TK2MSFTNGP12.phx.gbl...
    > > > > > > > The error is
    > > > > > > >
    > > > > > > > Server Error in '/' Application.
    > > > > > >
    > > > > >
    > > > >
    > > >
    > >
    >
    > --------------------------------------------------------------------------
    > > > > > > --
    > > > > > > > ---- 
    > > > > > > >
    > > > > > > > Unable to find an entry point named EnumerateSecurityPackagesW
    > in
    > > > DLL
    > > > > > > > security.dll.
    > > > > > > >
    > > > > > > > Description: An unhandled exception occurred during the
    > execution
    > > of
    > > > > the
    > > > > > > > current web request. Please review the stack trace for more
    > > > > information
    > > > > > > > about the error and where it originated in the code.
    > > > > > > >
    > > > > > > > Exception Details: System.EntryPointNotFoundException: Unable
    to
    > > > find
    > > > > an
    > > > > > > > entry point named EnumerateSecurityPackagesW in DLL
    > security.dll.
    > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > > > "Rob" <rob@tconsult.com> wrote in message
    > > > > > > > news:ezqY12MLEHA.2388@TK2MSFTNGP09.phx.gbl...
    > > > > > > > > I have a .net page that connects to authorize.net to process
    > > > cards.
    > > > > > > > > When I put this page on this server I immediately got the
    > error
    > > > > below.
    > > > > > > To
    > > > > > > > > solve the problem, I added the ASPNET user group to the file
    > and
    > > > > gave
    > > > > > it
    > > > > > > > > modify permissions. I then re-started IIS. That fixed the
    > > problem
    > > > > and
    > > > > > I
    > > > > > > > was
    > > > > > > > > able to process cards.
    > > > > > > > >
    > > > > > > > > However; every few days the problem returns. In this case, I
    > > have
    > > > > > > control
    > > > > > > > > over the machine. I can easily fix the problem by
    re-starting
    > > > IIS -
    > > > > in
    > > > > > > IIS
    > > > > > > > > manager I right click on the machine name --> All Tasks -->
    > > > re-start
    > > > > > IIS
    > > > > > > > > That fixes the problem for another day or two. Then it
    > returns.
    > > > > > > > >
    > > > > > > > > *  There is not a custom DLL names security.dll
    > > > > > > > > *  There is no custom DLL.
    > > > > > > > >
    > > > > > > > > The error occurs on this line in the script
    > > > > > > > > myWriter = New StreamWriter(objRequest.GetRequestStream())
    > > > > > > > > Which gets the request stream from authorize.net which would
    > say
    > > > > > > approved,
    > > > > > > > > denied, etc...
    > > > > > > > >
    > > > > > > > > Thanks....Rob
    > > > > > > > >
    > > > > > > > >
    > > > > > > >
    > > > > > > >
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >
    

  • Next message: Derek Melber [MVP]: "Password filter"

    Relevant Pages

    • Re: IIS permissions error sporadically occurs
      ... I may have found the answer Roger. ... So I believe I did in fact have a name conflict. ... > I am not so sure abont there being no error in their dll. ... > to intercept that and recycle that app. ...
      (microsoft.public.windows.server.security)
    • Re: istream::good() in a dll
      ... William DePalo [MVP VC++] wrote: ... > Roger that. ... >> In our library, we have a string handling class, which contains the ... >> a dll, f.gooddoes nothing. ...
      (microsoft.public.dotnet.languages.vc)
    • Re: 16-bit subsystem VirtualDeviceDrivers?
      ... > The switch is /u for regsvr32 to unregister a dll ... > The key value was on this system named VDD, ... >>> I would suggest that you place a copy of the dll named in that reg ... >>> Roger ...
      (microsoft.public.windowsxp.security_admin)
    • Re: DllMain is called when....
      ... "Roger" wrote in message ... A newly created thread calls DllMain(DLL_THREAD_ATTACH) for every DLL ... OS makes no attempts to balance them. ... reference counting error (FreeLibrary called more times than LoadLibrary ...
      (microsoft.public.vc.language)
    • Re: Impressed
      ... Here we go, this is a classic now, the Rob K. wrong answer to my posts ... drivers and 32bits drivers for expansion cards. ... Nowadays most of the software is built over the concept of DLL ... still doesn't exsist on ROS, also if there is some experimental works ...
      (comp.sys.acorn.misc)