Re: ASP.NET not executing interop functions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I managed a work-around by giving the ASP.NET account increased security
priveledges, thanks for your help Rick.

"Rick Strahl [MVP]" wrote:

> Hi Jas,
>
> Your best bet likely will be to stick the COM component into a COM+
> Application and then assign an Impersonation to the COM+ Application.
>
> The problem most likely is that the ASP.NET account (ASPNET or NETWORK
> SERVICE by default) - which is doesn't have rights to access the DLL or
> access what ever the DLL needs to have access to. IF you don't use COM+ the
> DLL just inherits the ASP.NET security token.
>
> So the two choices are: Use COM+ as described or lower the security to give
> the ASP.NET account the rights it needs to access the DLL and anything the
> DLL accesses. If at all possible the former is probably the better approach.
> <g>
>
> +++ Rick ---
>
> --
>
> Rick Strahl
> West Wind Technologies
> www.west-wind.com
> www.west-wind.com/weblog
>
>
>
> "Jas Manghera" <JasManghera@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:58388DE7-7ECF-425B-8869-AA355B809F1C@xxxxxxxxxxxxxxxx
> > Hello everyone, Im having a rather strange problem with my custom ASP.NET
> > application. After deploying the application on a .NET v1.1 computer, the
> > first time the application is launched it can call an external interop and
> > excute commands with no problems. However, when the same system is
> > restarted
> > and my application is relauched the COM commands do not function (asp &
> > managed code still works fine).
> >
> > When I alter the permissions of any file in my application's web folder
> > the
> > COM interop functions begin working again. Sometimes I open up my web
> > config
> > add a blank space to the end of the file, save & exit, and voila the COM
> > interop works again (temporarily - until the next restart).
> >
> > What is going on, is the CLR not loading the COM interop correctly? How do
> > I
> > resolve this issue?
> >
> >
>
>
>
.



Relevant Pages

  • Re: Unmanged dll hangs
    ... Is the component itself hosted in Component Services? ... I'm trying to access an unmanged dll from ASP.Net. ... I've checked all the security, ... account has access to the System32and I've ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ASP Error 0178 - Please - way behind deadline... (yes - Ive done IUSR_XXX)
    ... The security log is still empty - I ... will revisit the settings for the Audit Policy. ... >>DLL. ... > SYSTEM is also an 'account' sort of but this account is in fact the ...
    (microsoft.public.inetserver.iis.security)
  • Re: avoid API calls inside a DLL
    ... Probably the right way to manage security is setup an account with limited ... > The question here was how to prevent a dll from making API calls. ...
    (borland.public.delphi.language.basm)
  • Risks Digest 25.73
    ... German electronic health card system failure ... Risks of the Cloud: Liquid Motors ... Oakland 2010, IEEE Symposium on Security and Privacy, CFP ... A friend's facebook account was hacked recently (a neat little short-term ...
    (comp.risks)
  • Re: MBSA, Office Update, Versions, Failures
    ... I apologize for posting this to three groups (MBSA, Windows Update, ... with Domain User account. ... Microsoft Baseline Security Advisor (? ... Office 2000 Security Patches - Red X's, ...
    (microsoft.public.officeupdate)