Re: 'Permission denied' when new'ing a vc6 atl com dll from vb6 when logged into an account with in user group

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Check if your DLL gets loaded at all. Could be a file system
issue...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Gary" <d> wrote in message news:uEvl86mVFHA.628@xxxxxxxxxxxxxxxxxxxxxxx
> When
> Set mobjRplMgr = New RPLMGRLib.RplMgr
> executes in VB6 I get 'Run-time error '70': Permission Denied'
>
> Part of the definition of the class that implements the COM object is
>
> class ATL_NO_VTABLE CRplMgr :
> public CComObjectRootEx<CComMultiThreadModel>,
> public CComCoClass<CRplMgr, &CLSID_RplMgr>,
> public IDispatchImpl<IRplMgr, &IID_IRplMgr, &LIBID_RPLMGRLib>
> {
> DECLARE_REGISTRY_RESOURCEID(IDR_RPLMGR)
> DECLARE_PROTECT_FINAL_CONSTRUCT()
> BEGIN_COM_MAP(CRplMgr)
> COM_INTERFACE_ENTRY(IRplMgr)
> COM_INTERFACE_ENTRY(IDispatch)
> END_COM_MAP()
> }
>
> The 'Permission denied' error never occurs when user is logged in to an
> account in the admin or poweruser group.
> The error only occurs on *some* machines when user is logged in to an
> account in the user group.
> On other machines the error does *not* occur even though user is only a
> member of the user group.
> I cannot determine the significant difference between machines on which
> the error occurs and those on which it doesn't.
> On machines where the error *does* occur the error can be avoided by using
> a debug version of the vc6 atl com dll.
> The error occurs before DLLMain is called and before the constructor of
> the class partly defined above can execute.
> Maybe it occurs in the constructor of CComModule or some other startup
> code.
>
> Help!
>
>
>
>


.



Relevant Pages

  • Re: ASP.NET and NTidy
    ... We ran into the same issues using NTidy...the DLL would work fine on ... > I have 2 machines where my application runs without any problems but on my ... Attempting download of new URL ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: COM component DLL producing different *.IDL file on different PCs.
    ... I realise that producing IDL output using OLE/COM Viewer doesn't change the ... difference in behaviour w.r.t. binary compatibility. ... I agree that if the DLLs were built on different machines, ... Is your DLL physically copied between the ...
    (microsoft.public.vb.com)
  • Re: COM component DLL producing different *.IDL file on different PCs.
    ... Is your DLL physically copied between the 2 ... machines, or is it rebuilt with binary ... compatibility on each of the 2 machines? ... Binary compatibility only ensures the GUIDs are all the ...
    (microsoft.public.vb.com)
  • Re: Webservice stub class not compiling
    ... I cannot edit that DLL and the code you ... The code works fine on other people's machines ... > - it happens only when CSC is run from an ASPX page ... > The basic problem seems to be that csc does not tolerate this syntax. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Win2k3 SP1 error: New transaction cannot enlist in the specifi
    ... This dll supports transactions, but does not initiate transaction calls. ... > It worked in both directions on both machines for DTC and RPC. ... >> Let's start changing the registry value for NetworkDTCAccess. ...
    (microsoft.public.windows.server.general)